Hello there, i have a little question for those who really know what i am talking about here...
I have been developing my Season 3 Episode 2 server and i made some fixes/addons etc.
The really annoying thing is, that i have tried to fix the check trade function. I a player plays a bit with the packets, he is able to trade anything, like NPC`s or monsters, thus crashing the gamesever.
This is what i have been able to come up with ( with the help of a good friend alin ):
But the problem is, sometimes it`s able to block, sometimes not... i need to fix the code to 100% block that annoying packet, or maybe make another check trade function?Code:case 0x37: OBJECTSTRUCT *tintaObject = (OBJECTSTRUCT*)OBJECT_POINTER(gObj->TargetNumber); if(tintaObject->Type !=1) { MsgAll("[SYSTEM] :'%s' Has tried to Crash Our Server!",gObj->Name); MsgAll("[SYSTEM] :Instead He got Banned! Hahaha!"); MuOnlineQuery.ExecQuery("UPDATE Character SET CtlCode = 1 WHERE Name = '%s'",gObj->Name); CloseClient(aIndex); return false; } break;
Please help :)






