mmm si no sabes programar amigo, no te recomendaría que toques source podrías causar daños ajenos a los comandos, pero responderé tu pregunta, se programa lado servidor, eso quiere decir que es en la solución Gameserver.sln, en commandManager.cpp
#if(GAMESERVER_UPDATE>=602)
if (_stricmp(tipo,"bless") == 0)
{
type = 0;
}
else if (_stricmp(tipo,"soul") == 0)
{
type = 1;
}
else if (_stricmp(tipo,"life") == 0)
{
type = 2;
}
else if (_stricmp(tipo,"creation") == 0)
{
type = 3;
}
else if (_stricmp(tipo,"guardian") == 0)
{
type = 4;
}
else if (_stricmp(tipo,"gem") == 0)
{
type = 5;
}
else if (_stricmp(tipo,"harmony") == 0)
{
type = 6;
}
else if (_stricmp(tipo,"chaos") == 0)
{
type = 7;
}
else if (_stricmp(tipo,"lowstone") == 0)
{
type = 8;
}
else if (_stricmp(tipo,"highstone") == 0)
{
type = 9;
}
else
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(820));
return 0;
}
#else
if (_stricmp(tipo,"bless") == 0)
{
type = 0;
}
else if (_stricmp(tipo,"soul") == 0)
{
type = 1;
}
else
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(820));
return 0;
}
#endif
if(type < 0 || type > 9)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(822));
return 0;
}
int level;
if(qtd == 10)
{
level = 0;
}
else if (qtd == 20)
{
level = 1;
}
else if (qtd == 30)
{
level = 2;
}
else
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(820));
return 0;
}
if(level < 0 || level > 2)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(822));
return 0;
}
lpObj->ChaosLock = 1;
int count = gItemManager.GetInventoryItemCount(lpObj,this->GetJewelSimpleIndex(type),0);
int JewelCount = (level+1)*10;
if(count < JewelCount)
{
lpObj->ChaosLock = 0;
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(822));
return 0;
}
gItemManager.DeleteInventoryItemCount(lpObj,this->GetJewelSimpleIndex(type),0,JewelCount);
GDCreateItemSend(lpObj->Index,0xEB,0,0,this->GetJewelBundleIndex(type),level,0,0,0,0,-1,0,0,0,0,0,0xFF,0);
lpObj->ChaosLock = 0;
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(823));
return 1;
}
cierra el tema y da por solucionado. ya se te respondió y se te aclaró la duda.