Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script auto_healbuff -1,{
- OnPCLoadMapEvent:
- .@cur_map$ = strcharinfo(3);
- .@i = inarray(.map$, .@cur_map$);
- if (getgroupid() >= 99)
- dispbottom "Current map : "+ .@cur_map$ +", is in array : "+ ((.@i == 1) ? "No" : "Yes") +".";
- if (.@i > -1)
- {
- sc_start SC_BLESSING,240000,10; specialeffect2 EF_BLESSING;
- sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_INCAGILITY;
- // add more buffs here
- percentheal 100,100;
- }
- end;
- OnInit:
- setarray .map$,
- "prontera",
- "morocc",
- "geffen",
- "payon",
- "alberta",
- "izlude",
- "aldebaran",
- "xmas",
- "comodo",
- "yuno",
- "amatsu",
- "gonryun",
- "umbala",
- "niflheim",
- "jawaii",
- "ayothaya",
- "dewata";
- .size = getarraysize(.map$);
- for (.@i = 0; .@i < .size; .@i++)
- if (!getmapflag(.map$[.@i], MF_LOADEVENT)) // if load event is no active, activate it.
- setmapflag .map$[.@i], MF_LOADEVENT, 1;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement