Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,146,171,5 script Mob Race Of The Day 445,{
- end;
- OnNPCKillEvent:
- if ( getmonsterinfo( killedrid, MOB_RACE ) == .todaymob )
- {
- if(getpartyleader(getcharid(1),2) == getcharid(0)) {
- getmapxy .@mapl$, .@xl, .@yl, 0;
- getpartymember(getcharid(3,strcharinfo(0)),2);
- for(set .@i,0; .@i<getarraysize($@partymemberaid); set .@i,.@i+1){
- if(!(getmapxy(.@mapm$, .@xm, .@ym, 0, $@partymemberaid[.@i])) && (.@mapm$ == .@mapl$)) {
- attachrid $@partymemberaid[.@i];
- getitem 506,1;
- getexp getmonsterinfo( killedrid, MOB_BASEEXP )/80, getmonsterinfo( killedrid, MOB_JOBEXP )/80;
- }
- }
- }
- }
- end;
- OnInit:
- OnHour00:
- set .todaymob, rand(10);
- setarray .@mobracename$,
- "Formless",
- "Undead",
- "Animal",
- "Plant",
- "Insect",
- "Fish",
- "Demon",
- "Demi-human",
- "Angel",
- "Dragon";
- announce "Today's extra exp race is "+ .@mobracename$[.todaymob] +". You get 20% more exp. Happy hunting", 0;
- waitingroom "[MROTD] "+ .@mobracename$[.todaymob],0;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement