//@unloadnpc Exit#livecast
//@unloadnpc progamestv#1
//@loadnpc npc/valhalla/livestream/exit.txt


office,288,129,2	script	Exit#livecast	4_F_OPERATION,{
	mes(.npc$);
	mes("You are about to exit this room.");
	mes("^ff0000- - - ProGames TV Live - - -^000000");
	mes("Thank you for joining our Live Streaming Event. You will receive:");
	mes "^ff0000350x^000000 Light White Potion";
	mes "^ff0000350x^000000 Light Blue Potion";
	mes "Do you want to claim it now?";
	next;
	if (select("^ff0000No^000000", "^28bf00Yes.^000000") == 1) {
		mes(.npc$);
		mes ("Okay, let me know when you are ready.");
		close();		
	}
	getitem Light_White_Pot_F,350;
	getitem Light_Blue_Pot_F,350;
	warp("morocc",156,93); 
	close();


OnInit:
	disablenpc "Exit#livecast";
	.npc$ = "[ GM Assistant ]";
	delwaitingroom;
	waitingroom "Exit",0;
	end;
}

-	script	progamestv#1	-1,{
end;

OnGateOn:
	enablenpc "Exit#livecast";
	end;
OnGateOff:
	disablenpc "Exit#livecast";
	end;
OnLetMeIn:
	mes(.npc$);
	mes "You will be warp to our holding room";
	mes "Do you wish to enter?";
	next;
	if(select("No","Yes") == 2) {
		close2;
		warp("office",285,131);
		end;
	}
	close;
OnInit:
	disablenpc "Exit#livecast";	
	.npc$ = "[ GM Assistant ]";
	bindatcmd("gateon" ,"progamestv#1::OnGateOn",99,99,0);
	bindatcmd("gateoff","progamestv#1::OnGateOff",99,99,0);
	bindatcmd("warpme" ,"progamestv#1::OnLetMeIn",99,99,0);
	add_group_command("gateon",1,true,false);
	add_group_command("gateoff",1,true,false);
	add_group_command("warpme",1,true,false);
	end;
}