i made a script for the current event where the turtles attack a bunny and i have to kill them before reaching me (or the bunny). Very similar to andor race minigame.
problem is, that my script starts, waits for the turtles to appear, they appear, it kills some of them, then the game crashes. here is the unfinished script (i need to att quest repeating parts yet.)
any ideas why it crashes the game? does it enter an infinite loop somewhere? could it be that this is not in an instance and too many objects are found in the area, and crashes the memory? it is near varanas gate.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
<![CDATA[
function killTurtles()
repeat
tortoise = player:findNearestNameOrId({120553,120554,120555}) -- tortoises
player:target(tortoise)
RoMScript("UseExtraAction(1)")
yrest(200)
until not player:findNearestNameOrId(120553,120554,120555)
end
print("Waiting for turtles.")
repeat
yrest(100)
until player:findNearestNameOrId(120553)
print("The turtles are coming!")
repeat
killTurtles()
player:update()
yrest(100)
until not player:hasBuff(622174)
error("Success! Going to hand in.")
]]>
</onLoad>
</waypoints>