From 577bb18e2a769896a5747db534e3a9f556f58898 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 29 Jun 2019 01:45:08 -0300 Subject: Admin override on Guild System (in case it is needed) --- npc/guilds/management.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'npc') 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 -- cgit v1.2.3-70-g09d2