zbizu
Legendary OT User
How do I set custom interval for onThink creaturescript?
I did that registering stuff, etc. and it's always 1000 when it's executed.
no interval in creaturescripts.xml:
print(interval) -> 1000
any number(0, 100, 2000):
print(interval) -> 1000
Does it even care about other intervals than 1000? I can't find where the number is set in sources.
(actually I needed interval smaller than 1000, did workaround with addEvents in a loop. I'm still curious if it's possible to set custom interval without source edits, though)
Code:
<event type="think" name="eventThink" interval="7000" script="event.lua" />
I did that registering stuff, etc. and it's always 1000 when it's executed.
no interval in creaturescripts.xml:
print(interval) -> 1000
any number(0, 100, 2000):
print(interval) -> 1000
Does it even care about other intervals than 1000? I can't find where the number is set in sources.
(actually I needed interval smaller than 1000, did workaround with addEvents in a loop. I'm still curious if it's possible to set custom interval without source edits, though)
Last edited: