diff options
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/books.txt | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/npc/items/books.txt b/npc/items/books.txt index efe63a90b..696ae801a 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -403,22 +403,38 @@ function myself { mesc l("Skill Level: %d", .@skill); mesc l("Crafting Score: %d.%02d", .@score, .@milis); dnext; - // FIXME - if (.@who != .@why) return 0; + + + /* Misc Data */ + detachrid(); + attachrid(.@who); + if (.@all) { + .@mpt = Mobpt; + .@gp = (Zeny+BankVault); + } + .@die = PC_DIE_COUNTER; + .@reborn = REBIRTH; + .@honor = HONOR; + .@kills = MONSTERS_KILLED; + .@gid = getcharid(2); + .@afk_h = AFKING/1200; + .@afk_m = AFKING%1200/60*3; + detachrid(); + attachrid(.@why); + mes ".:: " + l("Miscellaneous Status") + " ::."; if (.@all) - mesc l("Monster Points: %s", fnum(Mobpt)); - mesc l("Times died: %s", fnum(PC_DIE_COUNTER)); - mesc l("Times reborn: %d", REBIRTH); + mesc l("Monster Points: %s", fnum(.@mpt)); + mesc l("Times died: %s", fnum(.@die)); + mesc l("Times reborn: %d", .@reborn); if (.@all) - mesc l("Total Gold: %s", fnum((Zeny+BankVault))); - mesc l("Honor Points: %s", fnum(HONOR)); - mesc l("Monsters killed: %s", fnum(MONSTERS_KILLED)); - if (getcharid(2) > 0) { - .@gid=getcharid(2); - .@pos=getguildrole(.@gid, getcharid(3)); + mesc l("Total Gold: %s", fnum(.@gp)); + mesc l("Honor Points: %s", fnum(.@honor)); + mesc l("Monsters killed: %s", fnum(.@kills)); + if (.@gid > 0) { + .@pos=getguildrole(.@gid, .@who); mesc l("Current Guild: %s", getguildname(.@gid)); mesc l("Guild Master: @@", getguildmaster(.@gid)); if (.@all) @@ -427,8 +443,10 @@ function myself { getguildpostax(.@gid, .@pos)); } mesc l("Total time AFK'ed in Tulimshar: %d hours and %d minutes", - AFKING/1200, AFKING%1200/60*3); + .@afk_h, .@afk_m); dnext; + // FIXME + if (.@who != .@why) return 0; mes ".:: " + l("Personal Records") + " ::."; |