summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2023-02-17 17:51:40 +0100
committerHoraK-FDF <horak-fdf@web.de>2023-02-17 17:51:40 +0100
commit56268b8ec4cb8d423c55ee3e2f89873218159f39 (patch)
tree77aef42f9de587e5e8678ded36bec5e301c4fbfd
parent0dd682d4ba48d62ada93bdafea13a32bc6147fbd (diff)
downloadserverdata-56268b8ec4cb8d423c55ee3e2f89873218159f39.tar.gz
serverdata-56268b8ec4cb8d423c55ee3e2f89873218159f39.tar.bz2
serverdata-56268b8ec4cb8d423c55ee3e2f89873218159f39.tar.xz
serverdata-56268b8ec4cb8d423c55ee3e2f89873218159f39.zip
item-db provide missing item function
-rw-r--r--world/map/npc/items/underworld_troll.txt10
-rw-r--r--world/map/npc/scripts.conf1
2 files changed, 11 insertions, 0 deletions
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