Author | Message | |||||
---|---|---|---|---|---|---|
code for #compare command [release]
| I was ***** bored so i decided to code this useful command which let the user compare between the stats of two items by showing a virtual locker where the user adds the two items that he wants to compare.
*replace this http://pastebin.com/s0hT8fnc with this http://pastebin.com/h1djDmtk *in the same file after std::size_t lockermax = static_cast<int>(character->world->config["BaseBankSize"]) + character->bankmax * static_cast<int>(character->world->config["BankSizeStep"]); add 2-Go to character.hpp in headers/src *in the same file add this http://pastebin.com/BeniufBH after ~Character(); 3-Go to character.cpp , in sources/src *add this http://pastebin.com/TJ1dLPWy 4-If you already have a player command system make a #compare command including this (if you do have a command system for players and need help adding this just reply) : character->comp_locker.clear(); PacketBuilder reply(PACKET_LOCKER, PACKET_OPEN,2); reply.AddChar(0); reply.AddChar(0); character->Send(reply); *If you don't have a command system for normal players :
The only drawback is that opening a locker in pos 0,0 aka top corner will call this command instead of opening the locker.
|
Re: code for #compare command [release]
| Nice, Glad to see people are still working on EO related code and being generous enough to release it.
|
Re: code for #compare command [release]
| That's pretty cool. I never thought of doing something like that. Most of the codes I make rely on systems I put in the source as well, which means a lot of lines would need to be added if I released any. If that weren't the case I would release more code. ;.; Although I have released a few in the past which didn't require too many changes.
| |