Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. prontera,146,171,5 script Mob Race Of The Day 445,{
  2. end;
  3. OnNPCKillEvent:
  4. if ( getmonsterinfo( killedrid, MOB_RACE ) == .todaymob )
  5. {
  6. if(getpartyleader(getcharid(1),2) == getcharid(0)) {
  7. getmapxy .@mapl$, .@xl, .@yl, 0;
  8. getpartymember(getcharid(3,strcharinfo(0)),2);
  9. for(set .@i,0; .@i<getarraysize($@partymemberaid); set .@i,.@i+1){
  10. if(!(getmapxy(.@mapm$, .@xm, .@ym, 0, $@partymemberaid[.@i])) && (.@mapm$ == .@mapl$)) {
  11. attachrid $@partymemberaid[.@i];
  12. getitem 506,1;
  13. getexp getmonsterinfo( killedrid, MOB_BASEEXP )/80, getmonsterinfo( killedrid, MOB_JOBEXP )/80;
  14. }
  15. }
  16. }
  17. }
  18. end;
  19. OnInit:
  20. OnHour00:
  21. set .todaymob, rand(10);
  22. setarray .@mobracename$,
  23. "Formless",
  24. "Undead",
  25. "Animal",
  26. "Plant",
  27. "Insect",
  28. "Fish",
  29. "Demon",
  30. "Demi-human",
  31. "Angel",
  32. "Dragon";
  33. announce "Today's extra exp race is "+ .@mobracename$[.todaymob] +". You get 20% more exp. Happy hunting", 0;
  34. waitingroom "[MROTD] "+ .@mobracename$[.todaymob],0;
  35. end;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement