summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/ucp.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 58d873522..167a3a9f7 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -16,6 +16,7 @@ function script UserCtrlPanel {
l("Rules"),
l("Game News"),
l("Account Information"),
+ rif(getcharid(2) > 0, l("Guild Information")),
l("Change Language"),
rif(is_admin() && $@GM_OVERRIDE, l("LoF Merge")),
l("Quit");
@@ -66,6 +67,20 @@ function script UserCtrlPanel {
break;
case 4: asklanguage(LANG_IN_SHIP); break;
case 5:
+ .@gid=getcharid(2);
+ mesc (".:: "+getguildname(.@gid)+" ::."), 1;
+ mesc l("Guild Master: @@", getguildmaster(.@gid)), 3;
+ if (getguildnxp(.@gid) > 0)
+ mesc l("Guild Lv @@, @@/@@ EXP to level up", getguildlvl(.@gid), getguildexp(.@gid), getguildnxp(.@gid));
+ else
+ mesc l("Guild Lv @@, @@/@@ EXP to level up", getguildlvl(.@gid), getguildexp(.@gid), "???");
+
+ mes "";
+ mesc l("Average player level: @@", getguildavg(.@gid));
+ mesc l("Your position on the guild: @@", getguildrole(.@gid, getcharid(3), true));
+ next;
+ break;
+ case 6:
mesn "Jesusalva";
mesq l("What do you think you are doing, anyway?!");
next;