summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-12 02:22:50 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-12 02:22:50 -0300
commitb7697d99d7a1e95f6d8c769871314e37a4dbfe2b (patch)
tree602b6260848f4bc66c7b9adcec6f53db7327e712
parent0c72c99bdb33ef8b68d31c5afb8de71be59acf2c (diff)
downloadserverdata-b7697d99d7a1e95f6d8c769871314e37a4dbfe2b.tar.gz
serverdata-b7697d99d7a1e95f6d8c769871314e37a4dbfe2b.tar.bz2
serverdata-b7697d99d7a1e95f6d8c769871314e37a4dbfe2b.tar.xz
serverdata-b7697d99d7a1e95f6d8c769871314e37a4dbfe2b.zip
Debug Information about Guilds on Estard
-rw-r--r--npc/003-2/estard.txt38
1 files changed, 37 insertions, 1 deletions
diff --git a/npc/003-2/estard.txt b/npc/003-2/estard.txt
index 95ae87597..c809a61d5 100644
--- a/npc/003-2/estard.txt
+++ b/npc/003-2/estard.txt
@@ -83,6 +83,38 @@
return;
}
+ function ginfo {
+ .@gid=getcharid(2);
+ mesn;
+ mesc l("You are on guild @@ - @@", .@gid, getguildname(.@gid));
+ next;
+ mesc l("Your guild is lv @@", getguildlvl(.@gid));
+ mesc l("@@ / @@ EXP", getguildexp(.@gid), getguildnxp(.@gid));
+ next;
+ mesc l("The average player level is @@", getguildavg(.@gid));
+ mesc l("@@ is the guild master.", getguildmaster(.@gid));
+ next;
+ mesc l("Get 100,000 GExp?"), 1;
+ if (askyesno() == ASK_YES) {
+ mes "";
+ guildgetexp(100000);
+ mesc l("Done");
+ next;
+ mesc l("Your guild is lv @@", getguildlvl(.@gid));
+ mesc l("@@ / @@ EXP", getguildexp(.@gid), getguildnxp(.@gid));
+ next;
+ }
+ mes "";
+ mesn;
+ mesc l("These are all guild info commands atm. Let's use mapreg now?");
+ next;
+ getguildinfo(.@gid);
+ mesn;
+ mesc l("Your guild is lv @@ and average player level is @@", $@guildinfo_lvl[.@gid], $@guildinfo_avg[.@gid]);
+ next;
+ return;
+ }
+
mesn;
mesq lg("Welcome miss.", "Good day sir.");
@@ -99,6 +131,7 @@
rif(!getq(General_Guild), l("I would like to create a party.")),
rif(getq(General_Guild) && getcharid(2) <= 0 && countitem(Emperium) == 0, l("I would like to create a guild.")),
rif(getq(General_Guild) && getcharid(2) > 0, l("I would like to open Guild Storage.")),
+ rif(is_admin() && getcharid(2) > 0, l("I would like to read Guild Information.")),
menuaction(l("Quit"));
switch (@menu)
@@ -115,8 +148,11 @@
case 4:
gstorage;
break;
+ case 5:
+ ginfo;
+ break;
}
- } while (@menu < 5);
+ } while (@menu < 6);
closedialog;
goodbye;