Creating a spell bot in lua

Posted by Oriol on Wed 25 Mar 2009 05:21 PM — 2 posts, 13,968 views.

#0
Hello all,
I need some help here. I'm trying to make a bot that will help me raise my character's spells. On alter aeon, the mud i play, if youmove around you have a higher chance at getting better at spells/skills. So what I'm trying to do is, run my character through a series of commands until soemthing happends, like me running out of mana and having to rest, or getting attacked or whatever. I tried using a coroutine, but coroutine.yield would give me some error that Ii was attempting to pass in a c function or something.. waht I have right now is, a separate script file with the function spellbot().
So, anyone got any ideas?
Thanks
Australia Forum Administrator #1
Check out this thread:

http://www.gammon.com.au/forum/?id=4957

That describes using coroutines to wait for things, and looping while waiting for something to happen.