Issue information

Issue ID
#5405
Status
Invalid
Severity
None
Started
Hercules Elf Bot
Mar 8, 2012 3:51
Last Post
Hercules Elf Bot
Apr 19, 2012 9:13
Confirmation
N/A

Hercules Elf Bot - Mar 8, 2012 3:51

Originally posted by [b]MusiDex[/b]
Seems the delay for infinity loops was decreased,
because it happens that I need one "sleep2 1" for each loop pass to avoid the infinity loop,
and when I let my script sleep for 1 Millisecond 16 times, it allready takes over a second to pass the loop instead of a split second.
I don't think this lock was made to slow down the processing :P

Hercules Elf Bot - Mar 8, 2012 4:48

Originally posted by [b]Xantara[/b]
Semi-related response:
Hmm.. I remember Ind implementing a prevent infinity loop as a script command but there doesn't seem to be documentation from it other than the commit message in [rev=15340]

[quote][b][color=#000000][font=Verdana, Arial,]* freeloop(<toggle>)[/font][/color][/b]
[color=#000000][font=Verdana, Arial,]-- lets you to enable/disable (1 or 0) the loop infinity protection for that specific npc instance, allowing your script to loop as much as it may need.[/font][/color][/quote]

This post has been edited by Xantara on Mar 8, 2012 4:49

Hercules Elf Bot - Mar 8, 2012 8:41

Originally posted by [b]JayPee[/b]
thanks Xantara for letting us know the [b]freeloop [/b]I was also experiencing that problem in my script when i made a loop within a loop

Hercules Elf Bot - Mar 8, 2012 18:30

Originally posted by [b]MusiDex[/b]
Perfect thing, didn't know about this, thanks!
I don't think there is a need to change anything with this command :)