summaryrefslogtreecommitdiff
path: root/world/map/npc/items/cryptitem.txt
blob: e45ebaad2ef773b2e1f7a875af8dd437d30d7a2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Script to boost Dark Helm, Underworld Mask and Phylactery when those are equipped while being in Graveyard or Crypt.
function|script|CryptItem
{
    cleararray @crypt_maps$, "", getarraysize(@crypt_maps$);
    setarray @crypt_maps$, "027-1", "027-2", "027-3", "027-4", "027-5", "027-6", "027-7", "027-8", "070-1", "070-2", "070-3";
    set @loop, 0;
    goto L_Loop;

L_Loop:
    if(@crypt_maps$[@loop] == getmap()) goto L_Return;
    set @loop, @loop + 1;
    if(@loop == getarraysize(@crypt_maps$)) end;
    goto L_Loop;

L_Return:
    return;
}