... A hora que quiser gato ^^
sobre o sistema de premiação nas patentes, você modificou ou deixou como estava na source da fteam?
Por que do jeito que estava fixo, não tem como desabilitar ou alterar, sempre será esse valor. Não sei pq quem fez não usou o CustomRankUser.txt para criar um sistema de premiação flexivel. Muita coisa desnecessária.
Código:
if(lpObj->Reset == 51)
{
// aqui
int type;
int value;
type = 1;
value = 2;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(764),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(743),lpObj->Name);
}
if(lpObj->Reset == 101)
{
// aqui
int type;
int value;
type = 1;
value = 4;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(765),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(744),lpObj->Name);
}
if(lpObj->Reset == 151)
{
// aqui
int type;
int value;
type = 1;
value = 6;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(766),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(745),lpObj->Name);
}
if(lpObj->Reset == 201)
{
// aqui
int type;
int value;
type = 1;
value = 8;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(767),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(746),lpObj->Name);
}
if(lpObj->Reset == 251)
{
// aqui
int type;
int value;
type = 1;
value = 10;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(768),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(747),lpObj->Name);
}
if(lpObj->Reset == 301)
{
// aqui
int type;
int value;
type = 1;
value = 12;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(769),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(748),lpObj->Name);
}
if(lpObj->Reset == 351)
{
// aqui
int type;
int value;
type = 1;
value = 14;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(770),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(749),lpObj->Name);
}
if(lpObj->Reset == 401)
{
// aqui
int type;
int value;
type = 1;
value = 16;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(771),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(750),lpObj->Name);
}
if(lpObj->Reset == 451)
{
// aqui
int type;
int value;
type = 1;
value = 18;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(772),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(751),lpObj->Name);
}
if(lpObj->Reset == 501)
{
// aqui
int type;
int value;
type = 1;
value = 20;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(773),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(752),lpObj->Name);
}
if(lpObj->Reset == 551)
{
// aqui
int type;
int value;
type = 1;
value = 22;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(774),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(753),lpObj->Name);
}
if(lpObj->Reset == 601)
{
// aqui
int type;
int value;
type = 1;
value = 24;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(775),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(754),lpObj->Name);
}
if(lpObj->Reset == 651)
{
// aqui
int type;
int value;
type = 1;
value = 26;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(776),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(755),lpObj->Name);
}
if(lpObj->Reset == 701)
{
// aqui
int type;
int value;
type = 1;
value = 28;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(777),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(756),lpObj->Name);
}
if(lpObj->Reset == 751)
{
// aqui
int type;
int value;
type = 1;
value = 30;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(778),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(757),lpObj->Name);
}
if(lpObj->Reset == 801)
{
// aqui
int type;
int value;
type = 1;
value = 32;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(779),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(758),lpObj->Name);
}
if(lpObj->Reset == 851)
{
// aqui
int type;
int value;
type = 1;
value = 34;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(780),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(759),lpObj->Name);
}
if(lpObj->Reset == 901)
{
// aqui
int type;
int value;
type = 1;
value = 36;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(781),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(760),lpObj->Name);
}
if(lpObj->Reset == 951)
{
// aqui
int type;
int value;
type = 1;
value = 38;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(782),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(761),lpObj->Name);
}
if(lpObj->Reset == 1001)
{
// aqui
int type;
int value;
type = 1;
value = 40;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(783),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(762),lpObj->Name);
}
if(lpObj->Reset == 1101)
{
// aqui
int type;
int value;
type = 1;
value = 45;
char name[11] = {0};
this->GetString(lpObj->Name,name,sizeof(name),0);
LPOBJ lpTarget = gObjFind(name);
SDHP_COMMAND_COIN_RESET pMsg;
pMsg.header.set(0x0F,0x05,sizeof(pMsg));
pMsg.index = lpObj->Index;
memcpy(pMsg.account,lpTarget->Account,sizeof(pMsg.account));
pMsg.Type = type;
pMsg.Value = value;
gDataServerConnection.DataSend((BYTE*)&pMsg,pMsg.header.size);
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(784),lpObj->Name);
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(763),lpObj->Name);
}