Emistry icon

[RO] Bosslair Room with Party Warp

Emistry | PRO | 10/15/16 07:06:27 PM UTC | 0 ⭐ | 616 👁️ | Never ⏰ | []
text |

810 B

|

None

|

0 👍

/

0 👎

// https://rathena.org/board/topic/107637-bosslair-mvp-room-please/
 prontera,155,181,5	script	Sample#bosslair	4_F_KAFRA1,{
	doevent "boss_lair_main::OnTalk";
}
  -	script	boss_lair_main	-1,{
 	OnTalk:
		mes "You need "+.amount+"x "+getitemname( .item_id );
		if ( countitem( .item_id ) >= .amount ) {
			.@party_id = getcharid(1);
			if ( !.@party_id ) {
				mes "Form a party.";
			}
			else if ( getmapusers( .map$ ) >= 1 ) {
				mes "The room is currently occupied.";
			}
			else {
				warpparty .map$,0,0,.@party_id;
				donpcevent .npc_name$+"::OnSpawn";
			}
		}
		close;
 	OnInit:
		.map$ = "guild_vs5";
		.item_id = 7227;
		.amount = 10;
		.npc_name$ = strnpcinfo(3);
		end;
 	OnKill:
		sleep 60000;
	OnSpawn:
		monster  .map$,0,0,"--ja--",-3,1,.npc_name$+"::OnKill";
		end;
 }

Comments