EOSERV Forum > Lounge > Hidden Admin
Topic is locked.
Page: << 1 2 >>
Hidden Admin
Author Message
Post #81930 Hidden Admin

In Seose to be an admin without icon it was rank 12


but on eoserv seems not to work , is it a different rank??


if it is please reply wat rank

---
-.-
14 years, 2 weeks ago
Post #81931 Re: Hidden Admin


You can code your own into it.

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
14 years, 2 weeks ago
Post #81945 Re: Hidden Admin

Yeah, there is nothing in eoserv normally like this. You would have to add it on your own.

Hidden Admin = Ninja Admin

---
Former multi-server mapper.
14 years, 2 weeks ago
Post #81973 Re: Hidden Admin

mhm code a command like $nadmin playername [ninjaadmin] 
Than the player gets level 5 admin and no icon. It seems pretty easy for me. But im lazy ^_^

EDIT: There is a function that changes the icon with admin. So you would just make a new admin level like 5 or 6 and dont add the admin icon function but PLAYER_ICON instead and make a new command like $admin charname 5 / 6 and the icon will looks like a normal icon.

14 years, 2 weeks ago
Post #81977 Re: Hidden Admin

kk thxs

---
-.-
14 years, 2 weeks ago
Post #81980 Re: Hidden Admin
What does it do? If you promote yourself to admin level 5 ($promote helzfire 5) the icon will appear as aplayericon!

In eoconst.hpp find:

enum AdminLevel UTIL_EXTEND_ENUM(unsigned char)
{
ADMIN_PLAYER = 0,
ADMIN_GUIDE = 1,
ADMIN_GUARDIAN = 2,
ADMIN_GM = 3,
ADMIN_HGM = 4
};

Make it:

enum AdminLevel UTIL_EXTEND_ENUM(unsigned char)
{
ADMIN_PLAYER = 0,
ADMIN_GUIDE = 1,
ADMIN_GUARDIAN = 2,
ADMIN_GM = 3,
ADMIN_HGM = 4,
        ADMIN_HIDDEN = 5
};

look for:

namespace eoconst
{

inline void ScriptRegister(ScriptEngine &engine)
{

And add under:

SCRIPT_REGISTER_ENUM_VALUE(ADMIN_HGM);

this:

SCRIPT_REGISTER_ENUM_VALUE(ADMIN_HIDDEN);

in src/handers/paperdoll.cpp

look for:

else if (character->admin >= ADMIN_GUIDE)
{
if (character->party)
{
reply.AddChar(ICON_PARTY);
}
else
{
reply.AddChar(ICON_GM);
}
}

Add below:

else if (character->admin >= ADMIN_HIDDEN)
{
if (character->party)
{
reply.AddChar(ICON_PARTY);
}
else
{
reply.AddChar(ICON_NORMAL);
}
}

src/handlers/player.cpp

look for:

else if (character->admin >= ADMIN_GUIDE)
{
if (character->party)
{
reply.AddChar(ICON_GM_PARTY);
}
else
{
reply.AddChar(ICON_GM);
}
}

Add below:


else if (character->admin >= ADMIN_HIDDEN)
{
if (character->party)
{
reply.AddChar(ICON_PARTY);
}
else
{
reply.AddChar(ICON_NORMAL);
}
}


Talk.cpp command:

else if (command.length() >= 7 && command.compare(0,7,"promote") == 0 && this->player->character->admin >=static_cast<int>(this->server->world->admin_config["promote"]))
                    {
                    Character *victim = this->server->world->GetCharacter(arguments[0]);
                    if(arguments[1] == "0")
                    {
                        victim->player->character->admin = ADMIN_PLAYER;
                        Database_Result callbackdata;
                        victim->Save();
                        this->player->character->map->Effect(MAP_EFFECT_QUAKE, 1);
                        this->server->world->ServerMsg("Attention!! "+ victim->name+" has been demoted to aplayer!");
                    }
                    if(arguments[1] == "1")
                    {
                        victim->player->character->admin = ADMIN_GUIDE;
                        Database_Result callbackdata;
                        victim->Save();
                        victim->map->Effect(MAP_EFFECT_QUAKE, 1);
                        this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to LightGuide!");
                    }
                    if(arguments[1] == "2")
                    {
                        victim->player->character->admin = ADMIN_GUARDIAN;
                        Database_Result callbackdata;
                        victim->Save();
                        victim->map->Effect(MAP_EFFECT_QUAKE, 2);
                        this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted toGuardian!");
                    }
                    if(arguments[1] == "3")
                    {
                        victim->player->character->admin = ADMIN_GM;
                        Database_Result callbackdata;
                        victim->Save();
                        victim->map->Effect(MAP_EFFECT_QUAKE, 3);
                        this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to GameMaster!");
                    }
                    if(arguments[1] == "4")
                    {
                        victim->player->character->admin = ADMIN_HGM;
                        Database_Result callbackdata;
                        victim->Save();
                        victim->map->Effect(MAP_EFFECT_QUAKE, 4);
                        this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to High GameMaster!");
                    }
 if(arguments[1] == "5")
                    {
                        victim->player->character->admin =ADMIN_HIDDEN;
                        Database_Resultcallbackdata;
                        victim->Save();
                        victim->map->Effect(MAP_EFFECT_QUAKE,5);
                       this->server->world->ServerMsg("Attention!! "+ victim->name+" has been promoted to Hidden admin!");
                    }
                    }

14 years, 2 weeks ago
Post #81984 Re: Hidden Admin

You dont announce a hidden admin. Whats the point of being hidden? You should rather add a notification to the player instead "You've been promoted to a hidden admin rank! Now lets keep it a secret shall we? :P"

---
Skype: izumibluuh

I sincerely apologize for my posts from when I was 12.
14 years, 2 weeks ago
Post #81985 Re: Hidden Admin
iSnow posted: (7th Jun 2011 01:48 pm)

You dont announce a hidden admin. Whats the point of being hidden? You should rather add a notification to the player instead "You've been promoted to a hidden admin rank! Now lets keep it a secret shall we? :P"


LOL yes your right XD
14 years, 2 weeks ago
Post #81990 Re: Hidden Admin

you didn't have to do that, but thxs alot


---
-.-
14 years, 2 weeks ago
Post #81992 Re: Hidden Admin

mh np, I also figured that it isnt even working.. 

14 years, 2 weeks ago
Post #81994 Re: Hidden Admin

:O NOO!!!!!!!!!

---
-.-
14 years, 2 weeks ago
Post #81995 Re: Hidden Admin

I think this is what your asking and if so in Playerers.cpp find this line

if (character->admin >= ADMIN_HGM) change it to

 else if (character->admin >= ADMIN_HGM) and add this above it

if (character->admin == 5)
                {
                    if (character->party)
                    {
                        reply.AddChar(ICON_PARTY);
                       
                    }
                    else
                    {
                        reply.AddChar(ICON_NORMAL);
                       
                    }
                }

repeat the same thing in Paperdoll.cpp and Book.cpp and of course set your selected admin lvl to 5.

14 years, 2 weeks ago
Post #82005 Re: Hidden Admin

mhm insomniac i had the same idea but when i tested the code on my server it showed as an admin.

14 years, 2 weeks ago
Post #82008 Re: Hidden Admin

Just tested again as soon as I seen your post switching from hgm 4 to admin 5 shows no admin icon!

14 years, 2 weeks ago
Post #82015 Re: Hidden Admin

Ohh ok ;o

14 years, 2 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > Lounge > Hidden Admin