Advertisement
existence_dev92

Untitled

Jul 8th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. - script auto_healbuff -1,{
  2.  
  3. OnPCLoadMapEvent:
  4. .@cur_map$ = strcharinfo(3);
  5. .@i = inarray(.map$, .@cur_map$);
  6.  
  7. if (getgroupid() >= 99)
  8. dispbottom "Current map : "+ .@cur_map$ +", is in array : "+ ((.@i == 1) ? "No" : "Yes") +".";
  9.  
  10. if (.@i > -1)
  11. {
  12. sc_start SC_BLESSING,240000,10; specialeffect2 EF_BLESSING;
  13. sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_INCAGILITY;
  14. // add more buffs here
  15. percentheal 100,100;
  16. }
  17. end;
  18.  
  19. OnInit:
  20. setarray .map$,
  21. "prontera",
  22. "morocc",
  23. "geffen",
  24. "payon",
  25. "alberta",
  26. "izlude",
  27. "aldebaran",
  28. "xmas",
  29. "comodo",
  30. "yuno",
  31. "amatsu",
  32. "gonryun",
  33. "umbala",
  34. "niflheim",
  35. "jawaii",
  36. "ayothaya",
  37. "dewata";
  38.  
  39. .size = getarraysize(.map$);
  40. for (.@i = 0; .@i < .size; .@i++)
  41. if (!getmapflag(.map$[.@i], MF_LOADEVENT)) // if load event is no active, activate it.
  42. setmapflag .map$[.@i], MF_LOADEVENT, 1;
  43. end;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement