Author | Message | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ![]() If i use the Eo Source Command Generator to make a Player command. Is it possible to put it into eoserv? Because I need a #info (name) < (For Players)
|
| ![]() If you have open source, just code it in there.
|
| ![]() Dont have a clue what u mean xD
|
| ![]() What rev are you using?
|
| ![]() Custom Rev 303 (Well i edited some things)
|
| ![]() Then code that command in it. Use the search bar ---->
|
| ![]() I tried i can find a code for strip command but not #info (Name)
|
| ![]() Just searched "Player commands" and "how to make player commands" on the forum search bar, didn't help much at all except for a guide on revs 190 or below :) --- “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.†- Albert Einstein Owner of the original Culio PK - PK Worldz
|
| ![]() Same ^
|
| ![]() If I was use I would use Lewis999 189 Rev. Here's the link if your interested Download Here <-- Very easy to compile and add code!
|
| ![]() here is the #info for players. else { character->map->Msg(character, message, false); } -------------------------------------- add this ------------------------------------------- else if( message[0] == '#' ) { std::string command; std::vector<std::string> arguments = util::explode(' ', message); command = arguments.front().substr(1); arguments.erase(arguments.begin()); if (command.length() >= 3 && command.compare(0,3,"inf")==0&& arguments.size() >= 1) { Character *victim = character->world->GetCharacter(arguments[0]); if (victim) { std::string name = util::ucfirst(victim->name); PacketBuilder reply(PACKET_ADMININTERACT, PACKET_TELL, 85 + name.length()); if (victim->admin >= 4) { reply.AddString("High Game Master "); } else if (victim->admin >= 3) { reply.AddString("Game Master "); } else if (victim->admin >= 2) { reply.AddString("Guardian "); } else if (victim->admin >= 1) { reply.AddString("Light Guide "); } reply.AddString(name); reply.AddString(" "); reply.AddBreakString(util::trim(victim->PaddedGuildTag())); reply.AddInt(victim->Usage()); reply.AddByte(255); reply.AddByte(255); reply.AddInt(victim->exp); reply.AddChar(victim->level); reply.AddShort(victim->mapid); reply.AddShort(victim->x); reply.AddShort(victim->y); reply.AddShort(victim->hp); reply.AddShort(victim->maxhp); reply.AddShort(victim->tp); reply.AddShort(victim->maxtp); reply.AddShort(victim->str); reply.AddShort(victim->intl); reply.AddShort(victim->wis); reply.AddShort(victim->agi); reply.AddShort(victim->con); reply.AddShort(victim->cha); reply.AddShort(victim->maxdam); reply.AddShort(victim->mindam); reply.AddShort(victim->accuracy); reply.AddShort(victim->evade); reply.AddShort(victim->armor); reply.AddShort(0); // light reply.AddShort(0); // dark reply.AddShort(0); // fire reply.AddShort(0); // water reply.AddShort(0); // earth reply.AddShort(0); // wind reply.AddChar(victim->weight); reply.AddChar(victim->maxweight); character->Send(reply); } } }----------------------------------------------------------------------------------------------
|
| ![]() nevermind Sin99 Came to rescue xD
|
| ![]() In what cpp file do we find this in? --- “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.†- Albert Einstein Owner of the original Culio PK - PK Worldz
|
| ![]() sin99 posted: (15th Jun 2012, 11:43 pm) Next time use pastebin..
| |