diff options
-rw-r--r-- | npc/items/books.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/items/books.txt b/npc/items/books.txt index 4027e922c..928bca018 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -452,6 +452,29 @@ function myself { } mesc l("Total time AFK'ed in Tulimshar: %d hours and %d minutes", .@afk_h, .@afk_m); + if (.@all) { + .@trait$ = ""; + if (PCBONUS & PCB_ATKBONUS) .@trait$ += "ATK+ "; + if (PCBONUS & PCB_DEFBONUS) .@trait$ += "DEF+ "; + if (PCBONUS & PCB_EVDBONUS) .@trait$ += "EVA+ "; + if (PCBONUS & PCB_HITBONUS) .@trait$ += "HIT+ "; + if (PCBONUS & PCB_HPBONUS) .@trait$ += "MHP+ "; + if (PCBONUS & PCB_MPBONUS) .@trait$ += "MMP+ "; + if (PCBONUS & PCB_MATKBONUS) .@trait$ += "MATK+ "; + if (PCBONUS & PCB_MDEFBONUS) .@trait$ += "MDEF+ "; + if (PCBONUS & PCB_CRITBONUS) .@trait$ += "CRI+ "; + if (PCBONUS & PCB_ALLSTATS) .@trait$ += "STAT+ "; + if (PCBONUS & PCB_ASPDBONUS) .@trait$ += "ASPD+ "; + if (PCBONUS & PCB_WSPDBONUS) .@trait$ += "WALK+ "; + if (PCBONUS & PCB_WEIGHTBONUS) .@trait$ += "WEIGHT+ "; + if (PCBONUS & PCB_RANGEMASTER) .@trait$ += "RANGE+ "; + if (PCBONUS & PCB_EXPBONUS) .@trait$ += "EXP+ "; + if (PCBONUS & PCB_NOKNOCKBACK) .@trait$ += "No-Knockback "; + if (PCBONUS & PCB_DOUBLEATK) .@trait$ += "Double-Attack "; + if (PCBONUS & PCB_SPLASHMASTER) .@trait$ += "AoE "; + if (PCBONUS & PCB_LEGENDARY) .@trait$ += "Legendary "; + mesc l("Traits: %s", .@trait$); + } dnext; |