Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypt items release and boss drop changes #224

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions world/map/db/head_item_db.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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";}
6 changes: 3 additions & 3 deletions world/map/db/over_100_mob_db.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
56 changes: 56 additions & 0 deletions world/map/npc/items/cryptitem.txt
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using lots of isin() I would put all the maps in an array and then check with getmap()

isin() is to detect if the player is in a square area within a map but in your case you want to know the map

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;
}
1 change: 1 addition & 0 deletions world/map/npc/scripts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down