summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-06 23:20:11 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-06 23:20:11 -0300
commit013b7fe5d819363c66b2b1728e1d1e9aa8317650 (patch)
tree20515a1256d1365ea47594ada439f5ec5c5fec23 /npc/items
parentad5b0f0b782ee659d31174dbdbbe6bddbad65a46 (diff)
downloadserverdata-013b7fe5d819363c66b2b1728e1d1e9aa8317650.tar.gz
serverdata-013b7fe5d819363c66b2b1728e1d1e9aa8317650.tar.bz2
serverdata-013b7fe5d819363c66b2b1728e1d1e9aa8317650.tar.xz
serverdata-013b7fe5d819363c66b2b1728e1d1e9aa8317650.zip
Scry miscellaneous data
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/books.txt42
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") + " ::.";