Endless-Guide v.2
This forum as just been made please give us time while our staff members work on it we are still lookin for moderators(staffs) please email ''endless-guide@hotmail.com'' for application


The Guide for Endless-Online Players
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Ruthless Aggression
Tue Oct 05, 2010 9:21 am by Microchip

» Copycat command
Tue Oct 05, 2010 9:16 am by Microchip

» #title command
Fri Sep 03, 2010 5:49 pm by michael032777

» Rev 187 character creation error
Fri Sep 03, 2010 5:38 pm by michael032777

» Modernwarfare2pwns.no-ip.org
Tue Aug 24, 2010 4:29 pm by artsyfartsy

» Want Hacks for Endless Online? Join EO-Hackers!
Fri Aug 06, 2010 7:48 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

» Want Hacks for Endless Online? Join EO-Hackers!
Wed Aug 04, 2010 11:21 am by Slymask3

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Affiliates
free forum
 

Share | 
 

 $hide/ $show command

Go down 
AuthorMessage
oxyda
Admin
avatar

Posts : 38
Join date : 2010-03-26

PostSubject: $hide/ $show command   Sun Mar 28, 2010 6:35 pm

Ok first let me start by saying this one requires a lot of careful changes and this isn't the code to make mistakes on.

first add this in character.cpp to prevent a glitch with the next login being "hidden" if the last logout was "hidden":

under void character::Save()

{

add this:

this->player->character->hidden = 0;

in eoserv.hpp under class Character add this:

int hidden;

next, if you are using code blocks, go to search>find in files. type the word "visible" in the search field and get the results.

for every time you see this:

builder.AddChar(0); //visable

change it to this:

builder.AddChar(character->hidden); //visable

*note there is one exception to that line and it is in the map.cpp file where the line above calls for (from->sitting) change the AddChar to (from->hidden) instead.

now it's time to talk


else if (command.length() >= 4 && command.compare(0,4,"hide") == 0 && arguments.size() >= 0 && this->player->character->admin >= static_cast<int>(admin_config["warptome"]))
{

this->player->character->hidden = 1;
this->player->character->Warp(this->player->character->mapid, this->player->character->x, this->player->character->y, WARP_ANIMATION_FADE);

PacketBuilder builder;
builder.SetID(31, PACKET_PLAYER);
builder.AddShort(this->player->id);
builder.AddShort(24);
builder.AddChar(0);
UTIL_FOREACH(the_world->characters, character)
{
character->player->client->SendBuilder(builder);
}


}
else if (command.length() >= 4 && command.compare(0,4,"show") == 0 && arguments.size() >= 0 && this->player->character->admin >= static_cast<int>(admin_config["warptome"]))
{
this->player->character->hidden = 0;
this->player->character->Warp(this->player->character->mapid, this->player->character->x, this->player->character->y, WARP_ANIMATION_FADE);

PacketBuilder builder;
builder.SetID(31, PACKET_PLAYER);
builder.AddShort(this->player->id);
builder.AddShort(24);
builder.AddChar(0);
UTIL_FOREACH(the_world->characters, character)
{
character->player->client->SendBuilder(builder);
}

}

Note to everyone: I have been unable to call the proper animation associated with $hide and $show so I have placed those builders to at least call the effect, those builders will not show on everyone's screen much less your own screen. This form of hide/show cannot be broken by f12. Make sure you follow the steps carefully in order for this to work properly. If anyone knows how to set the warp animation up for this please contact me and I will add that in to this guide.
Back to top Go down
View user profile
 
$hide/ $show command
Back to top 
Page 1 of 1
 Similar topics
-
» i think i know who the mystery chloe show guests are!
» [FS]That 70's Show Season's 1-8 + Bonus EP's DVDRip XviD,avi(1 LInk ep's)
» Victoria Justice on the Chloe Show
» THE NEXT STAR ON CHLOE ROCKS SHOW IS...
» Fashion Show Theme Ideas.

Permissions in this forum:You cannot reply to topics in this forum
Endless-Guide v.2 :: Softwares :: EOSERV-
Jump to: