Advertisement
Emistry

[RO] PUBG Style 1.1

May 26th, 2018
891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. // https://rathena.org/board/topic/115802-pubg-style-help/
  2.  
  3.  
  4. prontera,155,181,5 script Battle Royale 4_F_KAFRA1, {
  5. end;
  6.  
  7. OnInit:
  8. // only level 1 char can join.
  9. waitingroom("Battle Royale", 100, "pubg_main::OnStart", 5, 0, 1, 1);
  10. end;
  11. }
  12.  
  13. - script pubg_main -1,{
  14.  
  15. OnInit:
  16. .map$ = "prontera";
  17. end;
  18.  
  19. OnStart:
  20. .@count = min(getwaitingroomstate(0, "Battle Royale"), (100 - getmapusers(.map$)));
  21. if (.@count > 0) {
  22. warpwaitingpc .map$, 0, 0, .@count;
  23. mapannounce .map$, "Another " + .@count + " player entered.", bc_map;
  24. }
  25. else {
  26. kickwaitingroomall("Battle Royale");
  27. npctalk "Battle Royale is full now.";
  28. }
  29. end;
  30.  
  31. OnPCDieEvent:
  32. if (strcharinfo(3) == .map$) {
  33. nude;
  34. getinventorylist();
  35. while (.@i < @inventorylist_count) {
  36. delitem2 @inventorylist_id[.@i], @inventorylist_amount[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i];
  37. makeitem2 @inventorylist_id[.@i], @inventorylist_amount[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], .map$, .@x, .@y, 3;
  38. .@i++;
  39. }
  40. }
  41. end;
  42.  
  43. }
  44.  
  45.  
  46. // change mob id and their drops
  47. prontera,0,0,0,0 monster Supplies 1 1845,10,60000,60000,1
  48. prontera,0,0,0,0 monster Supplies 2 1845,10,60000,60000,1
  49. prontera,0,0,0,0 monster Supplies 3 1845,10,60000,60000,1
  50. prontera,0,0,0,0 monster Supplies 4 1845,10,60000,60000,1
  51.  
  52. // change mob id and their drops
  53. prontera,0,0,0,0 monster Armory 1 1845,10,60000,60000,1
  54. prontera,0,0,0,0 monster Armory 2 1845,10,60000,60000,1
  55. prontera,0,0,0,0 monster Armory 3 1845,10,60000,60000,1
  56. prontera,0,0,0,0 monster Armory 4 1845,10,60000,60000,1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement