From a33edf8988c964cbee0cdcf640a8e1d7345b0611 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 May 2022 23:22:20 -0300 Subject: Scry the records --- npc/items/books.txt | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/npc/items/books.txt b/npc/items/books.txt index 696ae801a..e65dd9889 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -445,19 +445,31 @@ function myself { mesc l("Total time AFK'ed in Tulimshar: %d hours and %d minutes", .@afk_h, .@afk_m); dnext; - // FIXME - if (.@who != .@why) return 0; + /* Records Data */ + detachrid(); + attachrid(.@who); + .@candor = CRAZYPOINTS; + .@bloodbath = gettimetick(2)+SCANDORPTS; + .@ctf = CAPTURE_FLAG; + .@cod = getq2(LoFQuest_COD); + .@merc = MERCENARY_DAILYQUEST; + .@udt = UDTRANK; + .@egg = getq3(General_EasterEggs); + detachrid(); + attachrid(.@why); mes ".:: " + l("Personal Records") + " ::."; - mesc l("Candor Battle Score: %s", fnum(CRAZYPOINTS)); - mesc l("Candor Bloodbath Score: %s", FuzzyTime(gettimetick(2)+SCANDORPTS)); - mesc l("Times won Capture the Flag: %s", fnum(CAPTURE_FLAG)); - mesc l("Times won Call of Dusty: %s", fnum(getq2(LoFQuest_COD))); - mesc l("Mercenary Quests completed: %s", fnum(MERCENARY_DAILYQUEST)); - mesc l("Doppelganger Waves Won: %s", fnum(UDTRANK)); - mesc l("Easter Eggs found: %d", getq3(General_EasterEggs)); + mesc l("Candor Battle Score: %s", fnum(.@candor)); + mesc l("Candor Bloodbath Score: %s", FuzzyTime(.@bloodbath)); + mesc l("Times won Capture the Flag: %s", fnum(.@ctf)); + mesc l("Times won Call of Dusty: %s", fnum(.@cod)); + mesc l("Mercenary Quests completed: %s", fnum(.@merc)); + mesc l("Doppelganger Waves Won: %s", fnum(.@udt)); + mesc l("Easter Eggs found: %d", .@egg); dnext; + // FIXME + if (.@who != .@why) return 0; mes ".:: " + l("Personal Feats") + " ::."; -- cgit v1.2.3-60-g2f50