From 98b5f7f49a9c2f44c978c60ae0267087afbea53c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 19 Jan 2024 13:35:46 -0300 Subject: Add trait list to Grimorium (not scryable) --- npc/items/books.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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; -- cgit v1.2.3-70-g09d2