EOSERV Forum > EOSERV > Eo Source Command Generator (Question)
Topic is locked.
Page: << 1 2 >>
Eo Source Command Generator (Question)
Author Message
Post #145259 Eo Source Command Generator (Question)

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)

12 years, 47 weeks ago
Post #145260 Re: Eo Source Command Generator (Question)

If you have open source, just code it in there.

12 years, 47 weeks ago
Post #145261 Re: Eo Source Command Generator (Question)

Dont have a clue what u mean xD

12 years, 47 weeks ago
Post #145262 Re: Eo Source Command Generator (Question)

What rev are you using?

12 years, 47 weeks ago
Post #145264 Re: Eo Source Command Generator (Question)

Custom Rev 303 (Well i edited some things)

12 years, 47 weeks ago
Post #145266 Re: Eo Source Command Generator (Question)

Then code that command in it.

Use the search bar ---->

12 years, 47 weeks ago
Post #145267 Re: Eo Source Command Generator (Question)

I tried i can find a code for strip command but not #info (Name)

12 years, 47 weeks ago
Post #145268 Re: Eo Source Command Generator (Question)

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
12 years, 47 weeks ago
Post #145269 Re: Eo Source Command Generator (Question)

Same ^

12 years, 47 weeks ago
Post #145270 Re: Eo Source Command Generator (Question)

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!

12 years, 47 weeks ago
Post #145271 Re: Eo Source Command Generator (Question)

here is the #info for players.


---------------------------------- Beforethis ----------------------------------------

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);

}

}

}



----------------------------------------------------------------------------------------------
12 years, 47 weeks ago
Post #145272 Re: Eo Source Command Generator (Question)

nevermind Sin99 Came to rescue xD

12 years, 47 weeks ago
Post #145273 Re: Eo Source Command Generator (Question)

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
12 years, 47 weeks ago
Post #145274 Re: Eo Source Command Generator (Question)
sin99 posted: (15th Jun 2012, 11:43 pm)

here is the #info for players.


---------------------------------- Beforethis ----------------------------------------

}


// Admin chat message

void Talk_Admin(Character *character, PacketReader &reader)

{

-------------------------------------- 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);

}

}

}



----------------------------------------------------------------------------------------------

Next time use pastebin..
12 years, 47 weeks ago
Post #145275 Re: Eo Source Command Generator (Question)

forgot to tell u to put it in talk.cpp

Edit: @hazard it wasn't that big ....

12 years, 47 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Eo Source Command Generator (Question)