From 1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 19 Oct 2019 22:50:48 -0300 Subject: It's now possible to know how much EXP you're paying to your guild. --- npc/guilds/management.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'npc/guilds') diff --git a/npc/guilds/management.txt b/npc/guilds/management.txt index daa7aa5ce..02cff3309 100644 --- a/npc/guilds/management.txt +++ b/npc/guilds/management.txt @@ -8,8 +8,9 @@ guilds,35,30,0 script Guild Management NPC_NO_SPRITE,{ function gmaster; .@gid=getcharid(2); .@admin=(getguildrole(.@gid, getcharid(3)) == GPOS_GUILDMASTER); + .@pos=getguildrole(.@gid, getcharid(3)); - if (is_admin()) { + if (is_admin() && strcharinfo(0) == "Monster King") { 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; @@ -30,7 +31,11 @@ guilds,35,30,0 script Guild Management NPC_NO_SPRITE,{ mesc l("Guild Lv @@, @@/@@ EXP to level up", getguildlvl(.@gid), format_number(getguildexp(.@gid)), "???"); // mesc l("The average player level is @@", getguildavg(.@gid)); - mesc l("Your position on the guild: @@", getguildrole(.@gid, getcharid(3), true)); + //mesc l("Your position on the guild: @@", getguildrole(.@gid, getcharid(3), true)); + mesc l("You are the guild's \"%s\", and you contribute with %02d%% EXP.", + getguildrole(.@gid, getcharid(3), true),//getguildpostitle(.@gid, .@pos), + getguildpostax(.@gid, .@pos)); + //getguildpostitle(.@gid, .@pos) // I forgot a function to get player title and allow any guildmaster to change this if (.@admin) @@ -61,6 +66,8 @@ guilds,35,30,0 script Guild Management NPC_NO_SPRITE,{ .@idx=0+@menuret; if (.@idx < 0) return; + //mesc l("The guild's \"%s\" currently contribute with %02d%% EXP.", getguildpostitle(.@gid, .@idx), getguildpostax(.@gid, .@idx)); + mesc l("The guild's \"%s\" currently contribute with %02d%% EXP.", getguildrole(.@gid, getcharid(3), true), getguildpostax(.@gid, .@idx)); mesc l("Please write how much in percent is EXP Tax for member (range: 0~50)"), 1; input .@exptax; if (.@exptax < 0 || .@exptax > 50) -- cgit v1.2.3-60-g2f50