;'God - Track Item' - timed skill script

UserID = #PARAM1
ITEM = #PARAM2
CURRENT_ID = #PARAM3

MaxLoop = 500

i = 0
While i < MaxLoop
	CURRENT_ID = GetNextUser(CURRENT_ID)
	If CURRENT_ID = 0
		GoTo END
	EndIf
	
	If HasItem(CURRENT_ID, ITEM) = 1
		SendMessageToUser(UserID,GetUserName(CURRENT_ID),#MSG_EMOTE)
	EndIf
	
	i=i+1
Wend

Timer(534, 100, UserID, ITEM, CURRENT_ID)

Label END

Continue = 1