Im working on tweaking a macro (buffbot) while in and of its self it is a awsome macro it does have a few limitations.
NOTE:
Yes I have RTFM.
Yes I have Searched the board.
Yes I have read amost all the help forum.
While I have learned alot in doing this im getting close to figuring it out but there are a few things im missing.
This is how the buffbot macro searches incomming text to determine if it needs to buff.
Code: Select all
/varset RequestedBuff ${Text}
/if (${RequestedBuff.Right[50].Equal["Sorry, I am A.F.K. (Away From Keyboard) right now."]}) /varset RequestedBuff ${RequestedBuff.Left[-50]}
/if (${RequestedBuff.Left[12].Equal["can i get a "]}) /varset RequestedBuff ${RequestedBuff.Right[-12]}
/if (${RequestedBuff.Left[10].Equal["can i get "]}) /varset RequestedBuff ${RequestedBuff.Right[-10]}
/if (${RequestedBuff.Right[13].Equal[" when you can"]}) /varset RequestedBuff ${RequestedBuff.Left[-13]}
/if (${RequestedBuff.Right[3].Equal[" ty"]}) /varset RequestedBuff ${RequestedBuff.Left[-3]}
/if (${RequestedBuff.Right[4].Equal[" plz"]}) /varset RequestedBuff ${RequestedBuff.Left[-4]}
/if (${RequestedBuff.Right[4].Equal[" pls"]}) /varset RequestedBuff ${RequestedBuff.Left[-4]}
/if (${RequestedBuff.Right[5].Equal[" pls!"]}) /varset RequestedBuff ${RequestedBuff.Left[-5]}
/if (${RequestedBuff.Right[5].Equal[" plZ!"]}) /varset RequestedBuff ${RequestedBuff.Left[-5]}
/if (${RequestedBuff.Right[4].Equal[" wmp"]}) /varset RequestedBuff ${RequestedBuff.Left[-4]}
/if (${RequestedBuff.Right[8].Equal[" please!"]}) /varset RequestedBuff ${RequestedBuff.Left[-8]}
/if (${RequestedBuff.Right[7].Equal[" please"]}) /varset RequestedBuff ${RequestedBuff.Left[-7]}
/if (${RequestedBuff.Right[4].Equal[" wmp"]}) /varset RequestedBuff ${RequestedBuff.Left[-4]}
/if (${RequestedBuff.Right[3].Equal[" =)"]}) /varset RequestedBuff ${RequestedBuff.Left[-3]}
/if (${RequestedBuff.Right[3].Equal[" :)"]}) /varset RequestedBuff ${RequestedBuff.Left[-3]}
/if (${RequestedBuff.Right[2].Equal[" )"]}) /varset RequestedBuff ${RequestedBuff.Left[-2]}
/if (${RequestedBuff.Right[1].Equal["?"]}) /varset RequestedBuff ${RequestedBuff.Left[-1]} I found the ChatText.Find[] command. Thought I had it working but I guess I didnt put it in correctly.
I am trying to get the variables in the INI file to be loaded into an array and used in the find command and search the chat text that is incomming to search out the requested buffs.
I have no clue how to do this.
If I missed something and or over looked something its very probable. I just think that it would be nice to leave the macro alone and only worry about modifying the ini file.
Any help on this would be greatly appreciated.
TY in advance.


