• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Help] I need help with onThink.

NorbisS

Came back from ether
Joined
Jun 8, 2007
Messages
130
Reaction score
0
Location
Poland, Warsaw
Hello, I have a lil problem with onThink creaturescript.
Code:
function onThink(cid, interval)
	doSendAnimatedText(getPlayerPosition(cid),"onThink Test",149)
return TRUE
end
I don't know, how to use "interval" in this code. When I change "interval" to number, I get an error. How i can change speed of execute that action?
Sry, for bad English :S
 
i think it works like this

Code:
function onThink(cid, interval)
	if interval == INTERVAL_IN_NUMBER then
		doSendAnimatedText(getPlayerPosition(cid),"onThink Test",149)
	end
return TRUE
end
 
Try to send the interval on the animated text.

interval isn't a var you can change. If I'm not mistaken, it has always the value of 500(0,5 sec)
 
Back
Top