diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-19 13:35:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-19 13:35:46 -0300 |
commit | 98b5f7f49a9c2f44c978c60ae0267087afbea53c (patch) | |
tree | c2e9b9df4b8eaeeafd8e0842cf48c36a2de12c7e /npc/items/books.txt | |
parent | 1779226a7877006c6f436637719de43786bf828e (diff) | |
download | serverdata-98b5f7f49a9c2f44c978c60ae0267087afbea53c.tar.gz serverdata-98b5f7f49a9c2f44c978c60ae0267087afbea53c.tar.bz2 serverdata-98b5f7f49a9c2f44c978c60ae0267087afbea53c.tar.xz serverdata-98b5f7f49a9c2f44c978c60ae0267087afbea53c.zip |
Add trait list to Grimorium (not scryable)
Diffstat (limited to 'npc/items/books.txt')
-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; |