From de846d448163f265a66e707624dcc04545826342 Mon Sep 17 00:00:00 2001 From: Cassy1 Date: Wed, 26 Nov 2014 21:33:56 +0100 Subject: Crypt items release and boss drop changes --- world/map/npc/items/cryptitem.txt | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 world/map/npc/items/cryptitem.txt (limited to 'world/map/npc/items') 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; +} -- cgit v1.2.3-70-g09d2