PDA

View Full Version : Opposite to Dofile()



Raziol
02-25-2014, 11:18 PM
Is there something like undofile()?? or something to kill script when i want to?

Spectrus
02-26-2014, 12:13 AM
:rolleyes:

That's not what the dofile function does. You want the script to end? It will if it runs out of stuff to do.

Raziol
02-26-2014, 02:54 AM
i got messed up aoe script in some case it stops attacking, i want to reload it. i helped myself by doing
Module.New("autoscript", function(module)
dofile("[Mage 220+] Hot Spot Spellcaster.lua")
module:Delay(100000)
end)

will it be ok or can i improve it somehow?

Spectrus
02-26-2014, 05:43 AM
No, that won't work. The edit needs to be made in the spell caster file. Either fix the bug, or post the whole code and I'll take a look at it if I have time.

dinmamma
02-26-2014, 10:34 AM
No, that won't work. The edit needs to be made in the spell caster file. Either fix the bug, or post the whole code and I'll take a look at it if I have time.
The problem is that scripts sometimes randomly stop working (maybe not random, maybe there is a reason). I had that issue alot on my old laptop, more often when running several bots simultaneously.

(I think it's same case here)

Raziol
02-26-2014, 02:36 PM
code:
http://pastebin.com/j8vWjSS7

i pmed furpan but he's busy, i tried to look into but too messy for me(for now), code i set exactly how i put on bot.(only 1 char uses script)

i sent you rest of settings i set up. if you would be so kind to recreate bug yourself.

xux
02-27-2014, 07:01 PM
I`m actually also searching for a code line to stop executing the lua.

For example i got a lua which put's bow off and shield on if a certain amount of monsters is on screen...
This is because i run a long way towards the hunt spot.

But is it possible to shutdown that lua if i`m at my huntspot, and later on if i`m done hunting put that script back to work again?