summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassy1 <cassy.tmw@gmail.com>2014-11-26 21:33:56 +0100
committerCassy1 <cassy.tmw@gmail.com>2014-11-26 21:33:56 +0100
commitde846d448163f265a66e707624dcc04545826342 (patch)
tree708e78a9ab48c907b23d79072db9e05cf80f4595
parentd878d17c8e084fa81cb9d34cdc72be3d3a158b9a (diff)
downloadserverdata-de846d448163f265a66e707624dcc04545826342.tar.gz
serverdata-de846d448163f265a66e707624dcc04545826342.tar.bz2
serverdata-de846d448163f265a66e707624dcc04545826342.tar.xz
serverdata-de846d448163f265a66e707624dcc04545826342.zip
Crypt items release and boss drop changes
-rw-r--r--world/map/db/head_item_db.txt6
-rw-r--r--world/map/db/over_100_mob_db.txt6
-rw-r--r--world/map/npc/items/cryptitem.txt56
-rw-r--r--world/map/npc/scripts.conf1
4 files changed, 63 insertions, 6 deletions
diff --git a/world/map/db/head_item_db.txt b/world/map/db/head_item_db.txt
index 922ea4b3..be2609fe 100644
--- a/world/map/db/head_item_db.txt
+++ b/world/map/db/head_item_db.txt
@@ -180,6 +180,6 @@
4032, PanHat, Pan Hat, 5, 1000, 500, 400, 0, 13, 0, -20, 0, 2, 256, 0, 0, 0, {}, {}
4033, ChefHat, Chef Hat, 5, 1000, 500, 30, 0, 2, 0, 2, 0, 2, 256, 0, 0, 0, {}, {}
4042, RedNose, Red Nose, 5, 4000, 1000, 4, 0, 2, 0, 7, 0, 2, 256, 0, 0, 0, {}, {}
-5128, DarkHelm, DarkHelm, 5, 50000, 10000, 800, 0, 19, 0, -80, 0, 2, 256, 0, 0, 0, {}, {callfunc "UnreleasedItem"; bonus bMaxHPrate, 10; bonus bAtkRange, -((readparam(bAtkRange)/2)); bonus bInt, -(readparam(bInt));}
-5129, UnderworldMask, UnderworldMask, 5, 50000, 10000, 100, 0, 9, 0, -40, 0, 2, 256, 0, 0, 0, {}, {callfunc "UnreleasedItem"; bonus bAtkRange, 1; bonus bInt, -(readparam(bInt));}
-5130, Phylactery, Phylactery, 5, 50000, 10000, 20, 0, 1, 0, 5, 0, 2, 256, 0, 0, 0, {}, {callfunc "UnreleasedItem"; bonus bAspdRate, 10; bonus bDex, -(readparam(bDex)/2);}
+5128, DarkHelm, DarkHelm, 5, 50000, 25000, 900, 0, 17, 0, -80, 0, 2, 256, 0, 0, 0, {}, {set@minLvl, 80; callfunc "CryptItem";}
+5129, UnderworldMask, UnderworldMask, 5, 50000, 25000, 100, 0, 3, 0, 0, 0, 2, 256, 0, 0, 0, {}, {set@minLvl, 80; bonus bAgi, 1; callfunc "CryptItem";}
+5130, Phylactery, Phylactery, 5, 50000, 25000, 20, 0, 1, 0, 5, 0, 2, 256, 0, 0, 0, {}, {set@minLvl, 80; bonus bInt, 1; callfunc "CryptItem";}
diff --git a/world/map/db/over_100_mob_db.txt b/world/map/db/over_100_mob_db.txt
index 09362981..42953b5a 100644
--- a/world/map/db/over_100_mob_db.txt
+++ b/world/map/db/over_100_mob_db.txt
@@ -29,8 +29,8 @@
1122, DreadPirateMarley, DreadPirateMarley, 180, 10000, 0, 0, 20000, 4, 175, 250, 38, 32, 10, 20, 40, 20, 90, 80, 1, 30, 1, 0, 2, 175, 400, 700, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
1123, DreadPirateMarleyClone, DreadPirateMarleyClone, 150, 2000, 0, 0, 0, 4, 175, 250, 18, 22, 10, 40, 30, 20, 80, 40, 1, 30, 1, 0, 2, 175, 500, 1200, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
1126, PsiBrain, PsiBrain, 100, 10000, 0, 0, 4000, 2, 220, 500, 23, 30, 35, 15, 3, 50, 50, 50, 2, 2, 1, 1, 29, 175, 340, 1800, 672, 950, 775, 75, 775, 115, 776, 135, 631, 40, 5111, 700, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 20
-1127, GeneralKurkan, GeneralKurkan, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 1000, 776, 1000, 631, 1000, 5128, 2, 636, 6, 637, 25, 638, 50, 639, 8, 778, 500, 1198, 500, 0, 0, 0, 0, 0, 0, 6, 50
-1128, GeneralRazha, GeneralRazha, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 210, 775, 210, 776, 300, 631, 1000, 636, 3, 658, 2, 532, 35, 778, 500, 1198, 500, 0, 0, 0, 0, 0, 0, 0, 0, 4, 50
-1129, GeneralTerogan, GeneralTerogan, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 210, 775, 210, 776, 300, 631, 1000, 636, 3, 658, 2, 532, 35, 778, 500, 1198, 500, 0, 0, 0, 0, 0, 0, 0, 0, 4, 50
+1127, GeneralKurkan, GeneralKurkan, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 1000, 776, 1000, 631, 1000, 5128, 25, 636, 40, 637, 45, 638, 50, 639, 40, 778, 500, 0, 0, 0, 0, 0, 0, 0, 0, 6, 50
+1128, GeneralRazha, GeneralRazha, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 210, 5129, 25, 776, 300, 631, 1000, 636, 40, 658, 40, 532, 40, 778, 500, 1198, 500, 0, 0, 0, 0, 0, 0, 0, 0, 4, 50
+1129, GeneralTerogan, GeneralTerogan, 140, 40000, 0, 0, 1663, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 210, 5130, 25, 776, 300, 631, 1000, 636, 40, 658, 40, 532, 40, 778, 500, 1198, 500, 0, 0, 0, 0, 0, 0, 0, 0, 4, 50
1130, Moonshroom, Moonshroom, 110, 550, 0, 0, 35, 4, 70, 80, 4, 4, 16, 12, 10, 10, 35, 10, 1, 1, 1, 3, 22, 133, 800, 1800, 672, 480, 566, 500, 518, 500, 730, 300, 540, 100, 703, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 60
1132, LavaSlime, LavaSlime, 135, 4144, 0, 6000, 1111, 2, 105, 260, 75, 80, 30, 15, 35, 10, 70, 250, 1, 1, 1, 0, 43, 135, 900, 1300, 672, 100, 904, 10000, 703, 2500, 640, 1000, 701, 1000, 4001, 1000, 825, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 40
diff --git a/world/map/npc/items/cryptitem.txt b/world/map/npc/items/cryptitem.txt
new file mode 100644
index 00000000..7f8a1fed
--- /dev/null
+++ b/world/map/npc/items/cryptitem.txt
@@ -0,0 +1,56 @@
+// Script to boost Dark Helm, Underworld Mask and Phylactery when those are equipped while being in Graveyard or Crypt.
+function|script|CryptItem
+{
+ if (isin("027-1.gat", 0, 0, 0, 0)) // Graveyard
+ goto L_ItemCheck;
+ if (isin("027-2.gat", 0, 0, 0, 0)) // Graveyard Inn
+ goto L_ItemCheck;
+ if (isin("027-3.gat", 0, 0, 0, 0)) // Crypt Level 1
+ goto L_ItemCheck;
+ if (isin("027-4.gat", 0, 0, 0, 0)) // Crypt Level 2
+ goto L_ItemCheck;
+ if (isin("027-5.gat", 0, 0, 0, 0)) // Crypt Level 3
+ goto L_ItemCheck;
+ if (isin("027-6.gat", 0, 0, 0, 0)) // Crypt Miniboss 1
+ goto L_ItemCheck;
+ if (isin("027-7.gat", 0, 0, 0, 0)) // Crypt Miniboss 2
+ goto L_ItemCheck;
+ if (isin("027-8.gat", 0, 0, 0, 0)) // Crypt Miniboss 3
+ goto L_ItemCheck;
+ if (isin("070-1.gat", 0, 0, 0, 0)) // Underworld
+ goto L_ItemCheck;
+ if (isin("070-2.gat", 0, 0, 0, 0)) // Underworld Indoors
+ goto L_ItemCheck;
+ if (isin("070-3.gat", 0, 0, 0, 0)) // Reaper Battle
+ goto L_ItemCheck;
+ goto L_End;
+
+L_ItemCheck:
+ if (getequipid(equip_head) == 5128)
+ goto L_BoostDarkHelm;
+ if (getequipid(equip_head) == 5129)
+ goto L_BoostUnderworldMask;
+ if (getequipid(equip_head) == 5130)
+ goto L_BoostPhylactery;
+ goto L_End;
+
+L_BoostDarkHelm:
+ bonus bStr, 3;
+ bonus bVit, 1;
+ bonus bLuk, 1;
+ goto L_End;
+
+L_BoostUnderworldMask:
+ bonus bAgi, 2;
+ bonus bDex, 1;
+ bonus bLuk, 1;
+ goto L_End;
+
+L_BoostPhylactery:
+ bonus bVit, 2;
+ bonus bInt, 2;
+ goto L_End;
+
+L_End:
+ end;
+}
diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf
index d37a8c57..c33e4d9c 100644
--- a/world/map/npc/scripts.conf
+++ b/world/map/npc/scripts.conf
@@ -38,6 +38,7 @@ npc: npc/items/unequipcb.txt
npc: npc/items/launcher_ammo.txt
npc: npc/items/check_wand.txt
npc: npc/items/mirror.txt
+npc: npc/items/cryptitem.txt
import: npc/_import.txt
// GM Events