What difference between this http://forum.ragezone.com/f508/commu...-team-1014591/ ?
Printable View
What difference between this http://forum.ragezone.com/f508/commu...-team-1014591/ ?
confuse about zTeam S6 files there are more post but no 1 know what is latest or better to use :D....
any want to share his/her Updated source with fixes that posted in different thread of zTeam season 6?
suggestion? ^^
thanks :)
Hi there, im trying to add vip bonus for npc reset..
I make this in joinserver:
But now im not sure how to get this from gameserver.. when i compile the gameserver, not show any error, but it always give me "0" as vip status (instead of 30 vip days for example)...Quote:
if (Result == ACC_REQ_SUCCESS) {
gDataBase.ExecFormat("SELECT DATEDIFF(day,getdate(),out__days) as datevip FROM MEMB_INFO WHERE memb___id=LOWER('%s')", szAccountID);
OutDays = gDataBase.GetInt("datevip");
if (BlocCode > 0)
{
Result = ACC_REQ_ACC_BANNED;
}
else
{
UserNumber = gJoinServer_Manager.AddUser(aIndex, szAccountID, szIp, lpMsg->Number, DBNumber);
if (UserNumber == -1)
{
Result = ACC_REQ_20000;
}
}
}
}
else
{
LogAddC(eError, "[Error] Account [%s] does not exits", szAccountID);
Result = ACC_REQ_WRONG_ID;
}
}
else
{
LogAddC(eError, "[Error] Failed ExecFormat [%s]", szAccountID);
Result = ACC_REQ_TEMP_BLOCK;
}
gDataBase.Clear();
}
else
{
LogAddC(eError, "[Error] Account [%s] already connected", szAccountID);
Result = ACC_REQ_ALREADY_CONNECT;
}
}
else
{
LogAddC(eError, "[Error] Account [%s] antihack check fail", szAccountID);
Result = ACC_REQ_TEMP_BLOCK;
}
JOIN_SERVER_ACC_REQ_RESULT Msg = { 0 };
Msg.h.Set(0x01, sizeof(JOIN_SERVER_ACC_REQ_RESULT));
Msg.Result = Result;
Msg.aIndex = Number;
Msg.UserNumber = UserNumber;
Msg.DBNumber = DBNumber;
Msg.IsVip = OutDays;
Msg.Magumsa = 0;
Msg.m_iPCRoom = 1;
memcpy(Msg.AccountID, szAccountID, sizeof(Msg.AccountID));
memcpy(Msg.JoominNumber, JoominNumber, sizeof(Msg.JoominNumber));
gJoinServer_Manager.DataSend(aIndex, (LPBYTE)&Msg, Msg.h.Size);
ResetSystem.cpp
user.hQuote:
lpUser->LevelUpPoint = 500 * (lpUser->Reset + 1);
if( lpUser->IsVip > 0 )
{
lpUser->LevelUpPoint = 1000 * (lpUser->Reset + 1);
}
SProtocol.hQuote:
struct OBJECTSTRUCT{
int IsVip;
SProtocol.cppQuote:
struct SDHP_IDPASSRESULT
{
PBMSG_HEAD h;
unsigned char result; // 3
short Number; // 4
char Id[10]; // 6
int UserNumber;
int DBNumber;
char JoominNumber[13];
int ukn_30;//NEW
int IsVip;
BYTE PcBangRoom;//NEW
};
Quote:
void JGPAccountRequest(SDHP_IDPASSRESULT * lpMsg)
{
char szId[11];
int aIndex;
char szJN[14]="";
memset(szId, 0, sizeof(szId));
memcpy(szId, lpMsg->Id , sizeof(lpMsg->Id));
memcpy(szJN, lpMsg->JoominNumber , sizeof(lpMsg->JoominNumber));
aIndex = lpMsg->Number;
IsVip = lpMsg->IsVip;
I hope someone can teach me, cuz im newbie in this things..
Here you can download: http://forum.ragezone.com/f508/couga...world-1037477/.
how to disable level 80 for mu helper start ?
please share me hp bar code like clip
https://www.youtube.com/watch?v=IbdwT58ezKk