;'Kings' Arena Guild War Gm Event' - Timed Script for warping

i=#PARAM1*300
While i < 300+#PARAM1*300
	If IsOnline(i) = 1
		If GetUserGuildRank(i) <> #GUILDRANK_INVITED
			If GetUserGuild(i) = #PARAM2
				WarpUser(i,997,4,10)
			ElseIf GetUserGuild(i) = #PARAM3
				WarpUser(i,997,16,10)
			EndIf
		EndIf
	EndIf
	i=i+1
Wend

If #PARAM1 < 7
	Timer(335,100,#PARAM1+1,#PARAM2,#PARAM3)
EndIf

Continue = 1