Autor Tema: Comando /makeset (MuEmu)  (Leído 4022 veces)

Desconectado Louis

  • *
  • *


  • 1267

    178

    26067
  • br
  • Louis Emulator
    • +55 15 997401274 +55 15 997401274
    • louisemulator louisemulator
Comando para crear un set completo

Uso:
(Type | Level | Skill | Luck | Option | Exe)
/makeset 1 15 0 1 7 63 = SET DRAGON FULL

Código
void CCommandManager::CommandMakeSet(LPOBJ lpObj,char* arg) // OK
{
if(gServerInfo.m_CommandMakeSwitch == 0)
{
return;
}

if(gGameMaster.CheckGameMasterLevel(lpObj,gServerInfo.m_CommandMakeGameMasterLevel) == 0)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(106));
return;
}

int type = this->GetNumber(arg,0);
int level = this->GetNumber(arg,1);
int skill = this->GetNumber(arg,2);
int luck = this->GetNumber(arg,3);
int option = this->GetNumber(arg,4);
int exc = this->GetNumber(arg,5);
int set = this->GetNumber(arg,6);

GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(7,type),level,0,skill,luck,option,-1,exc,set,0,0,0,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(8,type),level,0,skill,luck,option,-1,exc,set,0,0,0,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(9,type),level,0,skill,luck,option,-1,exc,set,0,0,0,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(10,type),level,0,skill,luck,option,-1,exc,set,0,0,0,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(11,type),level,0,skill,luck,option,-1,exc,set,0,0,0,0xFF,0);

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

gLog.Output(LOG_COMMAND,"[CommandMakeSet][%s][%s] - (Type: %d, Level: %d, Skill: %d, Luck: %d, Option: %d, Exc: %d, Set: %d)",lpObj->Account,lpObj->Name,type,level,skill,luck,option,exc,set);

}

Créditos:
Louis
Update 44 ready
www.jogandomu.com.br
Discord: louisemulator

Gracias:


 

.