diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-29 01:45:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-29 01:45:08 -0300 |
commit | 577bb18e2a769896a5747db534e3a9f556f58898 (patch) | |
tree | 345df9eecd84cebfa2debba43b9537a10abbbd1d /npc/guilds/management.txt | |
parent | 7bb356e716aca6471b4745cadbc681fcaf8af83a (diff) | |
download | serverdata-577bb18e2a769896a5747db534e3a9f556f58898.tar.gz serverdata-577bb18e2a769896a5747db534e3a9f556f58898.tar.bz2 serverdata-577bb18e2a769896a5747db534e3a9f556f58898.tar.xz serverdata-577bb18e2a769896a5747db534e3a9f556f58898.zip |
Admin override on Guild System (in case it is needed)
Diffstat (limited to 'npc/guilds/management.txt')
-rw-r--r-- | npc/guilds/management.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/guilds/management.txt b/npc/guilds/management.txt index c1fc02616..daa7aa5ce 100644 --- a/npc/guilds/management.txt +++ b/npc/guilds/management.txt @@ -7,6 +7,21 @@ guilds,35,30,0 script Guild Management NPC_NO_SPRITE,{ function gmaster; .@gid=getcharid(2); + .@admin=(getguildrole(.@gid, getcharid(3)) == GPOS_GUILDMASTER); + + if (is_admin()) { + mesc ".:: Jesusalva's Interface ::.", 1; + mesc "Write Guild ID to modify - DO NOT INPUT IF YOU DON'T KNOW EXACTLY WHAT YOU ARE DOING", 1; + mesc "THAT IS IRREVERSIBLE, DON'T BE A DUMMY", 1; + next; + mesc("Correct gid: " + .@gid); + input .@gid; + if (.@gid <= 0) + close; + .@admin=true; + logmes(strcharinfo(0)+" logged in as super user in guild: "+getguildname(.@gid), LOGMES_ATCOMMAND); + } + mesc (".:: "+getguildname(.@gid)+" ::."), 1; mesc l("Guild Master: @@", getguildmaster(.@gid)), 3; if (getguildnxp(.@gid) > 0) @@ -18,7 +33,7 @@ guilds,35,30,0 script Guild Management NPC_NO_SPRITE,{ mesc l("Your position on the guild: @@", getguildrole(.@gid, getcharid(3), true)); // I forgot a function to get player title and allow any guildmaster to change this - if (getguildrole(.@gid, getcharid(3)) == GPOS_GUILDMASTER) + if (.@admin) { next; do |