Page 1 of 1

LUA for auto using a hotkey/skill after parsing chat

Posted: Mon Nov 23, 2009 5:17 am
by silinky
hy guys!
i play the game for a long time now, and have using the bot successfully :)

however i do have a question: i want my bot to run with a healer after him, and heal him when necessary.

so i made a macro of each of the fighters, to automatically send a help message to the party chat, for example:

"healerchar heal"

and i would like a simple addon, that parses that message, and if the character is healerchar, then he should either press the hotkey assigned to his heal spell, or somehow do the useaction to use an action button, or just use the spell with the UseSkill(1,1); function.

i would be very grateful if someone would write an addon that does that, bc i am very noob in LUA, or if its too long, just to tell me how should i do that.

i think it would be useful for others too, that use the bot+dualboxing a priest to heal.

thx for reading i hope some1 can help :oops:

EDIT i know i can use an autoheal addon for thet, but that doesnt work anymore, and i do want priests to cast other spells as well, depending on the situation :)

Re: LUA for auto using a hotkey/skill after parsing chat

Posted: Mon Nov 23, 2009 8:10 am
by S3v3n11
Not sure if it still works but you can check:

http://rom.curseforge.com/addons/multib/

Re: LUA for auto using a hotkey/skill after parsing chat

Posted: Mon Nov 23, 2009 8:51 am
by silinky
thank you for the answer, i tried that, and it should do exactly what i want, but it doesnt work now :( i tried to repair it, but got lost in all the code :oops:
and it does way too much i don't even use. i would have loved a simple addon, that parses text, recognises if the message is meant for that char, and if it is meant, then execute the sent command.

still, if smone knows what should be done with the nkmultib addon to be fixed, its perfect also.
like for example changing the function that uses the useAction command wit one that uses keybinding, to simulate a bress of a button, or use a skill defined exactly in the chat command, like "Flame", or the UseSkill form, with the numbers of the slot and tab (1,1) = normal attack.

Re: LUA for auto using a hotkey/skill after parsing chat

Posted: Thu Jan 28, 2010 10:37 am
by silinky
nvm, i learned some lua and wrote myself a fully featured multiboxing addon, that works with the bot :D

Re: LUA for auto using a hotkey/skill after parsing chat

Posted: Thu Jan 28, 2010 10:51 am
by S3v3n11
Care to share it with the group?

Re: LUA for auto using a hotkey/skill after parsing chat

Posted: Wed Feb 03, 2010 3:17 am
by silinky
i am thinking about posting it on rom.curse.com, as multiboxing is allowed by ToS.
needs a GUI though lol it looks awful yet. but works like a charm.

i am afraid to make it public though in fear of they nerfing this one as well as nkMultiB :(