summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-04 00:47:49 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-04 00:47:49 -0300
commit9efdc7de12093575e274e66a8835a63397a1da99 (patch)
tree142d568cbbb152182b5b53344133cff45dd822d2 /npc/commands
parentadf1c859900bec44f0b3db956be044427ce8a75d (diff)
downloadserverdata-9efdc7de12093575e274e66a8835a63397a1da99.tar.gz
serverdata-9efdc7de12093575e274e66a8835a63397a1da99.tar.bz2
serverdata-9efdc7de12093575e274e66a8835a63397a1da99.tar.xz
serverdata-9efdc7de12093575e274e66a8835a63397a1da99.zip
Upgrade ucp and Librarian (main storyline)r06.1_180803
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/ucp.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 96b9e3857..b0e537c5e 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -48,13 +48,13 @@ function script UserCtrlPanel {
if (@query)
break;
@query=1;
- query_sql("SELECT name,last_login,last_map,partner_id FROM `char` WHERE account_id="+getcharid(3)+"' LIMIT 9", .@name$, .@lastlogin$, .@map$, .@married);
- for (.@i = 1; .@i < getarraysize(.@name$); .@i++) {
- mesn .@name$[i-1];
- mes l("Last Seen: @@", .@lastlogin$[i-1]);
- mes l("Last map: @@", .@map$[i-1]);
- if (.@married[i-1])
- mes l("Married with @@", gf_charname(.@married[i-1]));
+ query_sql("SELECT name,last_login,last_map,partner_id FROM `char` WHERE account_id="+getcharid(3)+" LIMIT 9", .@name$, .@lastlogin$, .@map$, .@married);
+ for (.@i = 1; .@i <= getarraysize(.@name$); .@i++) {
+ mesn .@name$[.@i-1];
+ mes l("Last Seen: @@", FuzzyTime(.@lastlogin$[.@i-1]));
+ mes l("Last map: @@", .@map$[.@i-1]);
+ if (.@married[.@i-1])
+ mes l("Married with @@", gf_charname(.@married[.@i-1]));
mes "";
}
next;