Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Código Borrar inventario MuEmu  (Visto 4246 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline KrizR Posteado: September 30, 2017, 09:19:30 AM | Modificado: January 05, 2018, 09:43:43 PM by RASTAA

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 265
  • Gracias recibida: 12747
  • ve

Gracias:

osvaldotl, amadeusx2, Xysad, musunblack, ScottLy, gonrocca, zerg24, HayllanderBR, drakulla, tomaslautaro995, bogart, joaovithor1, jeuzinn, usersa, eraclio1, chapulaz, Taddx, voladito, Almdar, Rouge, alexrz, gabriell, heberty, darkfenix2023, josuedavud, Liaon, Shaper, 2str0kE, lunaticodeveloper, ThseDeath1, trinidad191817, xxwillians, KillDragonFr117, cesar22, walter17, kaffa25, Beelzebub, skinmuonline, Taivadu, xiazaipw, visionmu, victorrz17, tkstriker, ezesosa, heppgonza, ziza, MADRUGA, pablouarez, zhangjianle865, luciferlg, Crowley, kurtbangu, carmax, LikeMike, Assv, peff, weberson, wiljipa, antiblood, ricoimer, MaquiOmii, siebenpatricio, TidusDW, mudevsbr, darkfire22, mulatinox, davidrcj, robkaguerou, showmax, louisfdp, petrec, Jarel, musokoban, Dragonvl15, MsotoC, ByCash, o0karlos0o, frandkz, xlockee, mijailmj, jcouti, nahueleb, KhongGianOL, weverton233, juan24, azpirin4, chumbazo, ezequielmqg, Exclusive88, luisrobles, Plate98, rank, NeoElement, Genilson23, Percyman20, Ravoc, olape, danger12, stark98, Gaboo;, anmufriz, fer1992, pichulas30, jeison123, cad666, Mido182, famoire, jkmbaby, gastic15, enriquexp, fenospro, rodriattaque92, dlawls662, neicer, Felipe0211, tangyi90, kyuzojusti, josecola, Yasser, wolffrox, marvisur, MafiaPy, RafhaelSouza, jaschingsa, hiep, muarcontes, jhonavidr, dasgrid, Berlan Barbalho, nnDoug, nenegamcas, nivekskc, tieugiao, mazingerbk, copixx, abraao, marian500, fukpim, nxx, Censored, mochaso05, axeman192, Mph1405, Tony, Coder-Z, Neptuno, zikus, alecorvlan, nonnan005, dark32, stas51447, slipp, SkullDs, 1732313, MiniBestia, melly23, pote3, Celical, patarra201, Darkwarmu, Look, kai1702, conter, Sentairo, deivifalle, cooler, skarious, djnecio, Mr.HChaos888, robyury, leal891, agtanalata, datos32, djagripnos, valusmu, NoobDK, ethondev, MrSoftware, gauyeutho, pquintal, samsunggon, alexytoo, kreadeth, pclcaetano, TroYaN, darklateg, MOYOne, c4nhsatcodong, lokura, Ryuno, Azzlaer, mugoldens8, ediiinson, JonathanRm, Tester1838a, neeck1234, licano, Ashita111235, Apostle, megaboom, GabrielDev, josrob21, emanuel, santanaxd, systemsmag, h3yShOk, jonamix, bach102, viticob, RTDEV, cobyzero, linkwo, dnmasterza, deathsquad, GATITO, scfmt, bmss01, PachoRasta, ARCKANO, juni0rr, higlans, benjaboca, piscis007, pandarox, fedrock, BlackSoul, kksky, inax123, LTP Team, Pyke, maslon, laulinh2, rogeralexander, thienthan1117, humito, pravednik, quyanxu, xpam, fernando07, DeilanSasame, -Rastaa.TSM☢, MuHosting, iShutUp, Bruce, ZabiinoOo, darkjano

Offline sombe30 #1 Posteado: September 30, 2017, 11:17:28 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 103
  • Gracias recibida: 2254
  • cl
se agrega en el cCommand.cpp   y donde mas amigo


Offline seedmaker #2 Posteado: October 17, 2017, 01:02:11 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 140
  • Gracias recibida: 573
  • ph
How to Fix this ? Error   1   error C2039: 'CommandClearInventory' : is not a member of 'CCommandManager'   D:\My MU Files\Server Files\[ Extra ] Source Files\Package [SOURCE] MuEmu\Package [SOURCE] MuEmu\eMU\GameServer\GameServer\CommandManager.cpp   1396   1   GameServer
Error   2   error C2039: 'm_CommandClearINVSwitch' : is not a member of 'CServerInfo'   D:\My MU Files\Server Files\[ Extra ] Source Files\Package [SOURCE] MuEmu\Package [SOURCE] MuEmu\eMU\GameServer\GameServer\CommandManager.cpp   1398   1   GameServer
Error   3   error C2039: 'm_CommandClearINVEnable' : is not a member of 'CServerInfo'   D:\My MU Files\Server Files\[ Extra ] Source Files\Package [SOURCE] MuEmu\Package [SOURCE] MuEmu\eMU\GameServer\GameServer\CommandManager.cpp   1403   1   GameServer
Error   4   error C2039: 'm_CommandClearINVMoney' : is not a member of 'CServerInfo'   D:\My MU Files\Server Files\[ Extra ] Source Files\Package [SOURCE] MuEmu\Package [SOURCE] MuEmu\eMU\GameServer\GameServer\CommandManager.cpp   1409   1   GameServer
Error   5   error C2039: 'm_CommandClearINVMoney' : is not a member of 'CServerInfo'   D:\My MU Files\Server Files\[ Extra ] Source Files\Package [SOURCE] MuEmu\Package [SOURCE] MuEmu\eMU\GameServer\GameServer\CommandManager.cpp   1415   1   GameServer
   6   IntelliSense: class "CCommandManager" has no member "CommandClearInventory"   d:\my mu files\server files\[ extra ] source files\package [source] muemu\package [source] muemu\emu\gameserver\gameserver\commandmanager.cpp   1396   23   GameServer
   7   IntelliSense: class "CServerInfo" has no member "m_CommandClearINVSwitch"   d:\my mu files\server files\[ extra ] source files\package [source] muemu\package [source] muemu\emu\gameserver\gameserver\commandmanager.cpp   1398   19   GameServer
   8   IntelliSense: class "CServerInfo" has no member "m_CommandClearINVEnable"   d:\my mu files\server files\[ extra ] source files\package [source] muemu\package [source] muemu\emu\gameserver\gameserver\commandmanager.cpp   1403   19   GameServer
   9   IntelliSense: class "CServerInfo" has no member "m_CommandClearINVMoney"   d:\my mu files\server files\[ extra ] source files\package [source] muemu\package [source] muemu\emu\gameserver\gameserver\commandmanager.cpp   1409   42   GameServer
   10   IntelliSense: class "CServerInfo" has no member "m_CommandClearINVMoney"   d:\my mu files\server files\[ extra ] source files\package [source] muemu\package [source] muemu\emu\gameserver\gameserver\commandmanager.cpp   1415   32   GameServer


Offline Lude #3 Posteado: October 18, 2017, 07:47:50 PM

  • MAESTRO

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 388
  • Gracias recibida: 19153
  • us
Me gustaría aclarar que el código esta incompleto ya que solo está aportando el CommandManager.cpp, falta su respectiva declaración en h, también falta el ServerInfo.cpp y h, también falta agregarlo al Message.txt y al GameServer-Commands.dat

Gracias:


Offline DeilanSasame #4 Posteado: January 05, 2018, 10:17:07 PM | Modificado: January 06, 2018, 10:00:59 AM by DeilanSasame

  • 3D Maker
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 310
  • Gracias recibida: 1409
  • ar
Codigo Full:

+ = Agregar Linea
- = Eliminar Linea

CommandManager.h
Code: [Select]
-#define MAX_COMMAND 31
+#define MAX_COMMAND 32


COMMAND_CUSTOM_ATTACK_OFFLINE = 31,
+ COMMAND_CLEAR_INV = 32,

commandmanager.cpp
Code: [Select]
	this->Add(gCustomAttack.m_CustomAttackOfflineCommandSyntax,COMMAND_CUSTOM_ATTACK_OFFLINE);
+ this->Add(gMessage.GetMessage(59),COMMAND_CLEAR_INV);

case COMMAND_CUSTOM_ATTACK_OFFLINE:
gCustomAttack.CommandCustomAttackOffline(lpObj,argument);
break;
+ case COMMAND_CLEAR_INV:
+ this->CommandClearInv(lpObj,argument);
+ break;
default:
return 0;


Al Final Agregar lo Siguiente:

Code: [Select]
void CCommandManager::CommandClearInv(LPOBJ lpObj,char* arg) // OK
{

if(gServerInfo.m_CommandClearInvSwitch == 0)
{
return;
}

if(lpObj->Money < ((DWORD)gServerInfo.m_CommandClearInvZen[lpObj->AccountLevel]))
   {
      gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(492),gServerInfo.m_CommandClearInvZen[lpObj->AccountLevel]);
      return;
   }

   lpObj->Money -= gServerInfo.m_CommandClearInvZen[lpObj->AccountLevel];

   GCMoneySend(lpObj->Index,lpObj->Money);

   int MaxValue = gItemManager.GetInventoryMaxValue(lpObj);

    for (int i = INVENTORY_WEAR_SIZE; i < MaxValue; i++)
   {
      gItemManager.InventoryDelItem(lpObj->Index,i);
      gItemManager.GCItemDeleteSend(lpObj->Index,i,1);
   }

   gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(493));

   gLog.Output(LOG_COMMAND,"[Command Clear Iventory] Use for:[%s][%s]",lpObj->Account,lpObj->Name);

}

serverinfo.h

Code: [Select]
	int m_CommandHideGameMasterLevel;
+ int m_CommandClearInvSwitch;
+ int m_CommandClearInvZen[MAX_ACCOUNT_LEVEL];

ServerInfo.cpp
Code: [Select]
this->m_CommandHideGameMasterLevel = GetPrivateProfileInt(section,"CommandHideGameMasterLevel",0,path);

+ this->m_CommandClearInvSwitch = GetPrivateProfileInt(section,"CommandClearInvSwitch",0,path);

+ this->m_CommandClearInvZen[0] = GetPrivateProfileInt(section,"CommandClearInvMoney_AL0",0,path);
+ this->m_CommandClearInvZen[1] = GetPrivateProfileInt(section,"CommandClearInvMoney_AL1",0,path);
+ this->m_CommandClearInvZen[2] = GetPrivateProfileInt(section,"CommandClearInvMoney_AL2",0,path);
+ this->m_CommandClearInvZen[3] = GetPrivateProfileInt(section,"CommandClearInvMoney_AL3",0,path);
+ this->m_CommandClearInvZen[4] = GetPrivateProfileInt(section,"CommandClearInvMoney_AL4",0,path);
}

Messager.txt
Code: [Select]
57        "/re"
58        "/hide"
+ 59        "/clearinv"

491       "%s won %d Jewel of Bless"
+ 492       "You must have at least %d Zen to use this command"
+ 493       "Inventory Cleaned Successfully"
end

GameServerInfo - Command.dat
Code: [Select]
;==================================================
; Hide Command Settings
;==================================================
CommandHideSwitch = 1
CommandHideGameMasterLevel = 0

+ ;==================================================
+ ; Inv Clear Command Settings
+ ;==================================================
+ CommandClearInvSwitch = 1
+ CommandClearInvMoney_AL0 = 1000000
+ CommandClearInvMoney_AL1 = 1000000
+ CommandClearInvMoney_AL2 = 1000000
+ CommandClearInvMoney_AL3 = 1000000
+ CommandClearInvMoney_AL4 = 1000000


Gracias:


Offline inax123 #5 Posteado: January 19, 2018, 07:54:52 PM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 197
  • Gracias recibida: 1755
  • ar
.......


Solamente te falto agregar en CommandManager.h
Code: [Select]
void CommandResetAutoProc(LPOBJ lpObj);
+void CommandClearInv(LPOBJ lpObj,char* arg);

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
10 Replies
2383 Views
Last post July 30, 2022, 10:42:22 AM
by MaxVoll
2 Replies
2114 Views
Last post March 27, 2018, 01:45:19 AM
by Azzlaer
2 Replies
1193 Views
Last post May 15, 2020, 09:41:51 PM
by darkfox300892
2 Replies
619 Views
Last post September 03, 2020, 03:57:24 PM
by mukentarus
2 Replies
1237 Views
Last post September 10, 2020, 08:45:00 PM
by NasLy