- 0
	
		 Sign in to follow this  
	
	
	
		
		
			Followers
			0
		
	
how to create npc that will use queue system/ countdown / start the event
				
				
					Asked by 
khenma
				
				
				
			
- 
Recently Browsing 0 membersNo registered users viewing this page. 
 

g_room1-3,64,185,3 script RFYL Event 668,{ // We need to use attachnpctimer because the mes command below // needs RID attach attachnpctimer; initnpctimer; npctalk "We will start in a short time, give me 15 seconds"; end; OnTimer15000: npctalk "Ok 5 seconds more"; end; OnTimer6000: npctalk "4"; end; OnTimer7000: npctalk "3"; end; OnTimer8000: npctalk "2"; end; OnTimer9000: npctalk "1"; end; OnTimer10000: stopnpctimer; mes "[Man]"; mes "Ok Let us start the RFYL Event"; mes "Good Luck to all participants!"; monster "g_room1-3",64,185,"Poring",1002,4,"NPCNAME::OnLabel"; for (set .@i, 0; .@i < .mobnumber; set .@i, .@i + 1){ set .@mobGID, monster "g_room1-3",64,185,"Killer Poring",1002,4; unitattack .@mobGID, getcharid(3); } close; detachnpctimer; // and remember attachnpctimer and detachnpctimer can only be used // while the NPC timer is not running! }Share this post
Link to post
Share on other sites