Envenom script

Post Reply
Israafiyl
Posts: 56
Joined: Mon Jul 16, 2012 12:29 am

Envenom script

Post by Israafiyl »

I was wondering if someone could help me, I am trying to make a function script called envenom() and have it in my attack aliases so that whenever I attack envenom checks my envenom table that has different combos for different situations, is this possible and if so how can I go about doing this? I have yet been able to find any manule help on the subject

Delrayne
Posts: 159
Joined: Tue Jun 07, 2011 7:07 pm
Contact:

Re: Envenom script

Post by Delrayne »

The way I did this was first make a toxin tracker, that would track what you toxins you think your target has. Then have a table of toxins you want to use, and in your envenom function loop through you toxin table to see if your target has that toxin on them, the first one it comes that the target doesn't have make it choose that toxin.

Israafiyl
Posts: 56
Joined: Mon Jul 16, 2012 12:29 am

Re: Envenom script

Post by Israafiyl »

oh wow Ill try and do that, I just learned how to make tables today and load/save them Ill try and read up on it some more. I am not sure if that will work in achaea but maybe

Delrayne
Posts: 159
Joined: Tue Jun 07, 2011 7:07 pm
Contact:

Re: Envenom script

Post by Delrayne »

It works in Imperian, should work in Achaea. Also, tables are the bread and butter of Lua. Learn em and love me.

Post Reply