summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/guilds/management.txt11
1 files changed, 9 insertions, 2 deletions
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)