summaryrefslogtreecommitdiff
path: root/npc/commands/ucp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/ucp.txt')
-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;