diff options
-rw-r--r-- | npc/items/books.txt | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/npc/items/books.txt b/npc/items/books.txt index d3fc75d8a..efe63a90b 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -370,21 +370,41 @@ function myself { if (.@who == .@why) ShowAbizit(true); dnext; - // FIXME - if (.@who != .@why) return 0; + /* Rogue Data */ + detachrid(); + attachrid(.@who); + .@rank$ = thiefrank(); + if (.@all) { + .@exp = THIEF_EXP; + .@rank= THIEF_RANK; + } + detachrid(); + attachrid(.@why); + mes ".:: " + l("Rogue Status") + " ::."; - mesc l("Your current rank: %s", thiefrank()); - if (.@all && THIEF_EXP > (THIEF_RANK*2)**5) + mesc l("Your current rank: %s", .@rank$); + if (.@all && .@exp > (.@rank*2)**5) mesc l("An upgrade is available."), 2; dnext; + /* Craft Data */ + detachrid(); + attachrid(.@who); + .@skill = getskilllv(TMW2_CRAFT); + .@score = CRAFTING_SCORE_COMPLETE/40; + .@milis = CRAFTING_SCORE_COMPLETE%40*100; // Broken? + detachrid(); + attachrid(.@why); + mes ".:: " + l("Crafting Status") + " ::."; - mesc l("Skill Level: %d", getskilllv(TMW2_CRAFT)); - mesc l("Crafting Score: %d.%02d", CRAFTING_SCORE_COMPLETE/40, CRAFTING_SCORE_COMPLETE%40*100); + mesc l("Skill Level: %d", .@skill); + mesc l("Crafting Score: %d.%02d", .@score, .@milis); dnext; + // FIXME + if (.@who != .@why) return 0; mes ".:: " + l("Miscellaneous Status") + " ::."; |