Advertisement
chriser

Untitled

Oct 16th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. valh_1,0,0,0 script valhalla#stage1 -1,{
  2. end;
  3. OnInstanceInit:
  4. 's1warp = 0;
  5. end;
  6. OnStart:
  7. disablenpc instance_npcname("valhalla#s1warp");
  8. sleep2 2000;
  9. instance_announce -1,"Kill 20 monster of each kind, 100 in total.",0;
  10. 'monster = 100;
  11. getpartymember 'partyid,2;
  12. attachrid $@partymemberaid[0];
  13. doevent instance_npcname(strnpcinfo(0))+"::OnKill";
  14. announce instance_npcname(strnpcinfo(0))+"::OnKill",0;
  15. monster instance_mapname("valh_1"),0,0,"Bad Fury",3016,20,instance_npcname(strnpcinfo(0))+"::OnKill";
  16. monster instance_mapname("valh_1"),0,0,"Garden Keeper",3095,20,instance_npcname(strnpcinfo(0))+"::OnKill";
  17. monster instance_mapname("valh_1"),0,0,"Green Teen Chipmunk",3109,20,instance_npcname(strnpcinfo(0))+"::OnKill";
  18. monster instance_mapname("valh_1"),0,0,"Hell Apocalypse",3118,20,instance_npcname(strnpcinfo(0))+"::OnKill";
  19. monster instance_mapname("valh_1"),0,0,"Chung E",3052,20,instance_npcname(strnpcinfo(0))+"::OnKill";
  20. 'alive = callfunc("partyAlive", 'partyid, instance_mapname("valh_1"));
  21. end;
  22. OnKill:
  23. if('alive == 0) end;
  24. 'monster = 'monster - 1;
  25. instance_announce -1,'monster + " monsters remaining.",0;
  26. if('monster == 0)
  27. {
  28. sleep2 2000;
  29. instance_announce -1, "Kill the final MVP to complete your challenge!",0;
  30. callfunc("partyViewpoint",'partyid,1,273,266,1,0xFF0000);
  31. monster instance_mapname("valh_1"),273,266,"Addax",3002,1,instance_npcname(strnpcinfo(0))+"::OnMVPKill";
  32. }
  33. end;
  34. OnMVPKill:
  35. if('alive == 0) end;
  36. callfunc("partyViewpoint",'partyid,2,273,266,1,0xFF0000);
  37. instance_announce -1,"Step trough the portal for the next challenge!",0;
  38. enablenpc instance_npcname("valhalla#s1warp");
  39. end;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement