Advertisement
Emistry

[RO] Bosslair Room with Party Warp

Oct 15th, 2016
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // https://rathena.org/board/topic/107637-bosslair-mvp-room-please/
  2.  
  3. prontera,155,181,5 script Sample#bosslair 4_F_KAFRA1,{
  4. doevent "boss_lair_main::OnTalk";
  5. }
  6.  
  7.  
  8. - script boss_lair_main -1,{
  9.  
  10. OnTalk:
  11. mes "You need "+.amount+"x "+getitemname( .item_id );
  12. if ( countitem( .item_id ) >= .amount ) {
  13. .@party_id = getcharid(1);
  14. if ( !.@party_id ) {
  15. mes "Form a party.";
  16. }
  17. else if ( getmapusers( .map$ ) >= 1 ) {
  18. mes "The room is currently occupied.";
  19. }
  20. else {
  21. warpparty .map$,0,0,.@party_id;
  22. donpcevent .npc_name$+"::OnSpawn";
  23. }
  24. }
  25. close;
  26.  
  27. OnInit:
  28. .map$ = "guild_vs5";
  29. .item_id = 7227;
  30. .amount = 10;
  31. .npc_name$ = strnpcinfo(3);
  32. end;
  33.  
  34. OnKill:
  35. sleep 60000;
  36. OnSpawn:
  37. monster .map$,0,0,"--ja--",-3,1,.npc_name$+"::OnKill";
  38. end;
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement