From 56268b8ec4cb8d423c55ee3e2f89873218159f39 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Fri, 17 Feb 2023 17:51:40 +0100 Subject: item-db provide missing item function --- world/map/npc/items/underworld_troll.txt | 10 ++++++++++ world/map/npc/scripts.conf | 1 + 2 files changed, 11 insertions(+) create mode 100644 world/map/npc/items/underworld_troll.txt diff --git a/world/map/npc/items/underworld_troll.txt b/world/map/npc/items/underworld_troll.txt new file mode 100644 index 00000000..afa22f6f --- /dev/null +++ b/world/map/npc/items/underworld_troll.txt @@ -0,0 +1,10 @@ +function|script|UnderworldTroll +{ + if (getequipid(equip_hand1) != KidBook) goto L_Return; + bonus bStr, 10; + bonus bAtkRange, 1; + goto L_Return; + +L_Return: + return; +} diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index 49804a10..c17ae367 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -57,6 +57,7 @@ npc: npc/items/max_stat.txt npc: npc/items/nobow_item.txt npc: npc/items/love_potion.txt npc: npc/items/manapearl_item.txt +npc: npc/items/underworld_troll.txt import: npc/_import.txt // magic -- cgit v1.2.3-60-g2f50