-
Notifications
You must be signed in to change notification settings - Fork 84
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
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
de846d4
Crypt items release and boss drop changes
Cassy1 6771c84
fix cryptitem script
9758a09
Merge pull request #3 from mekolat/crypt-cassy
Cassy1 b8ae5c4
Fix the Unequip part of script
wushin 8f3c488
Merge pull request #4 from wushin/crypt-head-armor
Cassy1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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