I need to use creaturescripts instead of globalevents because there, we can register events to the creatures we want
Added this function so far
and this is what I have in xml file:
It does print the message, but every one second. Even in the console, the interval = 1000 instead of the one specified in creaturescripts.xml, which is 2000
I know interval works just right when it comes to globalevents but not here. Any help appreciated, thanks!
Added this function so far
Lua:
function onThink(cid, interval)
print(interval)
end
and this is what I have in xml file:
XML:
<event type="think" name="printMsg" interval="2000" script="printMsg.lua"/>
It does print the message, but every one second. Even in the console, the interval = 1000 instead of the one specified in creaturescripts.xml, which is 2000
I know interval works just right when it comes to globalevents but not here. Any help appreciated, thanks!