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 | 
 

 $promote command

Go down 
AuthorMessage
oxyda
Admin
avatar

Posts : 38
Join date : 2010-03-26

PostSubject: $promote command   Sun Mar 28, 2010 1:33 pm

This is the $promote command:



else if (command.length() >= 7 && command.compare(0,7,"promote") == 0 && this->player->character->admin >= static_cast<int>(this->server->world->admin_config["admin"]))
{
Character *victim = this->server->world->GetCharacter(arguments[0]);
if(arguments[1] == "0")
{
victim->player->character->admin = ADMIN_PLAYER;
victim->str = 0;
victim->intl = 0;
victim->wis = 0;
victim->agi = 0;
victim->con = 0;
victim->cha = 0;
victim->statpoints = this->player->character->level * util::to_int(this->server->world->config["StatPerLevel"]);
victim->StatSkill();
Database_Result callbackdata;
victim->hp = victim->maxhp;
victim->tp = victim->maxtp;
victim->Save();
victim->CalculateStats();
this->player->character->map->Effect(MAP_EFFECT_QUAKE, 1);
this->server->world->ServerMsg("Attention!! "+ victim->name+" has been demoted to a player!");
}
if(arguments[1] == "1")
{
victim->player->character->admin = ADMIN_GUIDE;
victim->str = 1000;
victim->intl = 1000;
victim->wis = 1000;
victim->agi = 1000;
victim->con = 1000;
victim->cha = 1000;
Database_Result callbackdata;
victim->hp = victim->maxhp;
victim->tp = victim->maxtp;
victim->StatSkill();
victim->CalculateStats();
victim->Save();
victim->map->Effect(MAP_EFFECT_QUAKE, 1);
this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to Light Guide!");
}
if(arguments[1] == "2")
{
victim->player->character->admin = ADMIN_GUARDIAN;
victim->str = 1000;
victim->intl = 1000;
victim->wis = 1000;
victim->agi = 1000;
victim->con = 1000;
victim->cha = 1000;
Database_Result callbackdata;
victim->hp = victim->maxhp;
victim->tp = victim->maxtp;
victim->StatSkill();
victim->CalculateStats();
victim->Save();
victim->map->Effect(MAP_EFFECT_QUAKE, 2);
this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to Guardian");
}
if(arguments[1] == "3")
{
victim->player->character->admin = ADMIN_GM;
victim->str = 1000;
victim->intl = 1000;
victim->wis = 1000;
victim->agi = 1000;
victim->con = 1000;
victim->cha = 1000;
Database_Result callbackdata;
victim->hp = victim->maxhp;
victim->tp = victim->maxtp;
victim->StatSkill();
victim->CalculateStats();
victim->Save();
victim->map->Effect(MAP_EFFECT_QUAKE, 3);
this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to GM");
}
if(arguments[1] == "4")
{
victim->player->character->admin = ADMIN_HGM;
victim->str = 1000;
victim->intl = 1000;
victim->wis = 1000;
victim->agi = 1000;
victim->con = 1000;
victim->cha = 1000;
Database_Result callbackdata;
victim->hp = victim->maxhp;
victim->tp = victim->maxtp;
victim->StatSkill();
victim->CalculateStats();
victim->Save();
victim->map->Effect(MAP_EFFECT_QUAKE, 4);
this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to HGM");
}
}
Back to top Go down
View user profile
 
$promote command
Back to top 
Page 1 of 1
 Similar topics
-
» Old Skewl PCG Texas, the first Phoenix Command Group creation
» AOE_Fan's RMS Command Tutorial
» UCI-Protocol
» Seraphim Class Frigate
» command line chess

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