diff options
Diffstat (limited to 'npc')
-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 |