summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-08 17:15:51 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-08 17:15:51 -0300
commitc342c020190d64a9a5d19b6005e88ac68f02dec5 (patch)
treef6f11f96b96f94d3e725efeb59ce421764f18848
parentcfb86d24b4f89563c8cbe9d539d86a02bd86a1f9 (diff)
downloadserverdata-c342c020190d64a9a5d19b6005e88ac68f02dec5.tar.gz
serverdata-c342c020190d64a9a5d19b6005e88ac68f02dec5.tar.bz2
serverdata-c342c020190d64a9a5d19b6005e88ac68f02dec5.tar.xz
serverdata-c342c020190d64a9a5d19b6005e88ac68f02dec5.zip
Missing NPC file (???) and update Iilia
-rw-r--r--npc/017-9/_warps.txt2
-rw-r--r--npc/051-3/_mobs.txt4
-rw-r--r--npc/items/nobow_item.txt29
3 files changed, 32 insertions, 3 deletions
diff --git a/npc/017-9/_warps.txt b/npc/017-9/_warps.txt
index 1c8f826c..e8b3e303 100644
--- a/npc/017-9/_warps.txt
+++ b/npc/017-9/_warps.txt
@@ -2,6 +2,6 @@
// Map 017-9: GM Lounge warps
017-9,39,24,0 warp #017-9_39_24 0,0,020-1,60,75
017-9,36,25,0 warp #017-9_36_25 0,0,009-1,43,45
-017-9,31,24,0 warp #017-9_31_24 0,0,001-1,54,118
+017-9,31,24,0 warp #017-9_31_24 0,0,001-1,55,118
017-9,41,24,0 warp #017-9_41_24 0,0,027-2,46,110
017-9,33,24,0 warp #017-9_33_24 0,0,029-1,34,95
diff --git a/npc/051-3/_mobs.txt b/npc/051-3/_mobs.txt
index e348ab86..7632787b 100644
--- a/npc/051-3/_mobs.txt
+++ b/npc/051-3/_mobs.txt
@@ -6,13 +6,13 @@
051-3,61,102,1,1 monster Spider 1012,1,100000,250000
051-3,65,102,1,1 monster Spider 1012,1,100000,250000
051-3,71,109,2,1 monster Black Scorpion 1009,1,100000,250000
-051-3,59,56,6,18 monster Bandit 1064,47,100000,10000
+051-3,59,56,6,18 monster Bandit 1064,37,100000,10000
051-3,59,44,6,6 monster Bandit Lord 1065,4,100000,20000
051-3,60,69,9,4 monster Bandit Lord 1065,4,100000,20000
051-3,63,94,0,0 monster Sleeping Bandit 1099,1,100000,60000
051-3,53,93,0,0 monster Sleeping Bandit 1099,1,100000,60000
051-3,48,71,0,0 monster Sleeping Bandit 1099,1,100000,60000
-051-3,38,30,8,6 monster Bandit 1064,12,100000,10000
+051-3,38,30,8,6 monster Bandit 1064,8,100000,10000
051-3,39,33,5,4 monster Bandit Lord 1065,2,100000,20000
051-3,80,101,5,6 monster Copper Slime 1098,7,100000,60000
051-3,60,94,9,2 monster Copper Slime 1098,7,100000,60000
diff --git a/npc/items/nobow_item.txt b/npc/items/nobow_item.txt
new file mode 100644
index 00000000..0584c524
--- /dev/null
+++ b/npc/items/nobow_item.txt
@@ -0,0 +1,29 @@
+
+function script NoBowItem {
+ .@me = getarg(0);
+
+ // Developers are always allowed to use this item
+ if (is_dev())
+ return;
+
+ // If you can equip *anything*, this restriction is moot
+ if (has_permission(PERM_USE_ALL_EQUIPMENT, getcharid(3)))
+ return;
+
+ // Bows which are not allowed
+ if (countitem(BansheeBow))
+ goto L_Abort;
+ if (countitem(DesertBow))
+ goto L_Abort;
+ if (countitem(ForestBow))
+ goto L_Abort;
+ // Don't care with Bow/ShortBow/slings and darts
+
+ return;
+
+// Has to be a goto so `.@me` is loaded properly
+L_Abort:
+ message strcharinfo(0), l("This item is too cumbersome to use and could potentially break your valuable bow by accident. So you give up.");
+ unequip(.@me);
+ return;
+}