Solving the problem with login crash GS.
First of all, undo @ashlay fix.
Then open giocp.cpp go to:
And then add these lines above it:Code:gObj[ClientIndex].PerSocketContext->IOContext[0].wsabuf.buf = gObj[ClientIndex].PerSocketContext->IOContext[0].Buffer;
Then go to SProtocol.cpp in:Code:memset(&gObj[ClientIndex].PerSocketContext->IOContext[0].Overlapped, 0, sizeof(OVERLAPPED)); memset(&gObj[ClientIndex].PerSocketContext->IOContext[1].Overlapped, 0, sizeof(OVERLAPPED));
Replace the whole function with this:Code:void GJPBillCeckRecv(SDHP_BILLSEARCH_RESULT * lpMsg)
After this open SQL Management Studio and open PremiumData table on MuOnline database, put your AccountID, PayCode = 0, and to set time take a look at .Net Date Format, for example: ExpireDate = 2020-06-15T13:45:30Code:void GJPBillCeckRecv(SDHP_BILLSEARCH_RESULT * lpMsg) { int aIndex = lpMsg->Number ; char szId[11]; szId[10] = 0; memcpy(szId, lpMsg->Id, sizeof(lpMsg->Id)); if (gObjIsAccontConnect(aIndex, szId) == 0 ) { return ; } if ( m_ObjBill[aIndex].SetBill( lpMsg->PayCode, lpMsg->EndTime, &lpMsg->EndDays[0] ) == TRUE ) { gObjAddMsgSendDelay(&gObj[aIndex], 1000, aIndex, 100, 0); } }
This will solve this problem too:
![]()
I think PayCode is the same as Vip in other server files, changing 0 to 1 and setting ExpireDate to a future date
So, maybe, we need to edit functions around this
in multiservervoid RemoveBill(char* szId){
char szQuery[256];
#ifdef ZTEAMDB
sprintf(szQuery,"DELETE FROM PremiumData WHERE AccountID = '%s'",szId);
#else
sprintf(szQuery,"DELETE FROM MEMB_PREMIUM WHERE memb___id = '%s'",szId);
#endif
g_JoinServerConnectDB.Exec(szQuery);
int iIndex = gObjSearchUser(szId);
if(iIndex < 0 || iIndex >= MAX_USEROBJECT)
return;
SDHP_BILLKILLUSER pMsg;
pMsg.h.c = PMHC_BYTE;
pMsg.h.size = sizeof( pMsg );
pMsg.h.headcode = 0x07;
strcpy(pMsg.Id,szId);
pMsg.Number = gObj[iIndex].gaIndex;
DataSend(gObj[iIndex].GameServerIndex,(LPBYTE)&pMsg,sizeof( pMsg ));
g_Window.ServerLogAdd(ST_JOINSERVER,"[PREMIUM] Bill end usetime [%s][%d]",szId,gObj[iIndex].gaIndex);
}
i did all like the ol post. is there something missing??
![]()
Hello, i try to put a new event, i duplicate the BlueEvent and rename it, but when i try to build it gives me 4 errors
Error 1 error LNK2005: "int PlayMinute" (?PlayMinute@@3HA) already defined in BlueEvent.obj SunEvent.obj zGameServer
Warning 2 warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification zGameServer zGameServer
Error 3 error LNK2005: "int PlayMinute" (?PlayMinute@@3HA) already defined in BlueEvent.obj SunEvent.obj zGameServer
Error 4 fatal error LNK1169: one or more multiply defined symbols found C:\Users\Florin\Desktop\ffffffff\GameServer + New Update and Event\GameServer\Release\zGameServer.exe 1 zGameServer
Can you tell me what i am doing wrong? PLS
THK
LOL try to add "Divine Blade of Archangel" for MG. The visual display is when holding without wings are just like regular BK sword. Also name doesnt change to pink although already config same as Divine sword
Well at least it gives MG skill Power Splash
@AceMU.eu
![]()
i find bug you cannot trade the 4th wings
idk why.. anyone experiencing in that problem?