summaryrefslogtreecommitdiff
path: root/npc/guilds/management.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-19 22:50:48 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-19 22:50:48 -0300
commit1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c (patch)
treeab68668e479fc3ae697c1e1063599873480951b5 /npc/guilds/management.txt
parent55189d66c80ef2d561751a27857d0706feaa5b00 (diff)
downloadserverdata-1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c.tar.gz
serverdata-1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c.tar.bz2
serverdata-1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c.tar.xz
serverdata-1fcd481bd92c7971e37a6a4e08c71d45d2c8cd9c.zip
It's now possible to know how much EXP you're paying to your guild.
Diffstat (limited to 'npc/guilds/management.txt')
-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)