Or, the op can become even smarter and learn some Torquescript to prevent that event from even working.
$CityRPG::bannedEvent["Player", "addHealth"] = true;
Aaaaaaand the server crashed.RIP
function gameConnection::onClientEnterGame(%client) { if(!isObject(CityRPGData.getData(%client.bl_id))) CityRPGData.addData(%client.bl_id); if(!isObject(CityRPGData.user[%client.bl_id])) CityRPGData.user[%client.bl_id] = CityRPGData.getData(%client.bl_id); parent::onClientEnterGame(%client); if(isObject(CityRPGMini)) CityRPGMini.addMember(%client); else CityRPG_BuildMinigame(); if(CityRPGData.getData(%client.bl_id).valueGender $= "ambig") { messageClient(%client, '', "\c6You have been set as a male by default. Type \c3/loveChange\c6 to be known as female."); CityRPGData.getData(%client.bl_id).valueGender = "Male"; } %client.gender = CityRPGData.getData(%client.bl_id).valueGender; %client.doIPKTest(); %client.schedule(1000,applyForcedBodyParts); %client.schedule(1000,applyForcedBodyColors); }function Sassy::getData(%this, %ID){ if(isObject(CityRPGData.user[%id])) return CityRPGData.user[%id]; for(%a = 0; %a <= %this.dataCount; %a++) { if(%this.data[%a].ID == %ID) { return %this.data[%a]; } } return false;}
Is it true that the server was crashed by someone?
User StiXil (ID:46369) Crashed the server, quote "You'll regret not unbanning my friend"
StiXil was recently auto-banned for attempting to crash my server as well.
The gamemode will start to lag when around 1000 clients have data objects created; to prevent this append the bold lines to the OnClientEnterGame function in the package.cs and the getData function in saving.cs. Position is important.Quote function gameConnection::onClientEnterGame(%client) { if(!isObject(CityRPGData.getData(%client.bl_id))) CityRPGData.addData(%client.bl_id); if(!isObject(CityRPGData.user[%client.bl_id])) CityRPGData.user[%client.bl_id] = CityRPGData.getData(%client.bl_id); parent::onClientEnterGame(%client); if(isObject(CityRPGMini)) CityRPGMini.addMember(%client); else CityRPG_BuildMinigame(); if(CityRPGData.getData(%client.bl_id).valueGender $= "ambig") { messageClient(%client, '', "\c6You have been set as a male by default. Type \c3/loveChange\c6 to be known as female."); CityRPGData.getData(%client.bl_id).valueGender = "Male"; } %client.gender = CityRPGData.getData(%client.bl_id).valueGender; %client.doIPKTest(); %client.schedule(1000,applyForcedBodyParts); %client.schedule(1000,applyForcedBodyColors); }function Sassy::getData(%this, %ID){ if(isObject(CityRPGData.user[%id])) return CityRPGData.user[%id]; for(%a = 0; %a <= %this.dataCount; %a++) { if(%this.data[%a].ID == %ID) { return %this.data[%a]; } } return false;}Thank you! This should prove to be pretty damn helpful. All the server really needs as of now is a good autosave