diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-05-06 23:15:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-05-06 23:15:49 -0300 |
commit | ad5b0f0b782ee659d31174dbdbbe6bddbad65a46 (patch) | |
tree | e660e9f1acaaea39b8bdef9940081e98ef2a8d7f | |
parent | d78fd4be981fbc36b51a26e042029602c61a1754 (diff) | |
download | serverdata-ad5b0f0b782ee659d31174dbdbbe6bddbad65a46.tar.gz serverdata-ad5b0f0b782ee659d31174dbdbbe6bddbad65a46.tar.bz2 serverdata-ad5b0f0b782ee659d31174dbdbbe6bddbad65a46.tar.xz serverdata-ad5b0f0b782ee659d31174dbdbbe6bddbad65a46.zip |
Craft and Rogue data to scrying
-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") + " ::."; |