Emistry icon

[RO] PUBG Style 1.1

Emistry | PRO | 05/26/18 10:58:46 AM UTC | 0 ⭐ | 1238 👁️ | Never ⏰ | []
text |

1.88 KB

|

None

|

0 👍

/

0 👎

// https://rathena.org/board/topic/115802-pubg-style-help/
  prontera,155,181,5	script	Battle Royale	4_F_KAFRA1, {
	end;
 	OnInit:
		// only level 1 char can join.
		waitingroom("Battle Royale", 100, "pubg_main::OnStart", 5, 0, 1, 1);
		end;
}
 -	script	pubg_main	-1,{
 	OnInit:
		.map$ = "prontera";
		end;
 	OnStart:
		.@count = min(getwaitingroomstate(0, "Battle Royale"), (100 - getmapusers(.map$)));
		if (.@count > 0) {
			warpwaitingpc .map$, 0, 0, .@count;
			mapannounce .map$, "Another " + .@count + " player entered.", bc_map;
		}
		else {
			kickwaitingroomall("Battle Royale");
			npctalk "Battle Royale is full now.";
		}
		end;
 	OnPCDieEvent:
		if (strcharinfo(3) == .map$) {
			nude;
			getinventorylist();
			while (.@i < @inventorylist_count) {
				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];
				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;
				.@i++;
			}
		}
		end;
 }
  // change mob id and their drops
prontera,0,0,0,0	monster	Supplies 1	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Supplies 2	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Supplies 3	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Supplies 4	1845,10,60000,60000,1
 // change mob id and their drops
prontera,0,0,0,0	monster	Armory 1	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Armory 2	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Armory 3	1845,10,60000,60000,1
prontera,0,0,0,0	monster	Armory 4	1845,10,60000,60000,1

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎