Page 1 of 1

Conversion of a sub

Posted: Mon Jun 14, 2004 12:47 pm
by Goofmester1
I have tried several variations of this sub to get it converted 100% and am having no luck..

Code: Select all

Sub Event_Chat(ChatType,Sender,ChatText)

   /if "@ChatText"~~"assist" {
      /target @Sender
      /assist
}
After searching for some time the best possible one I found was

Code: Select all

Sub Event_Chat(string ChatType,string Sender,string ChatText)

    /if (${ChatText}.Equal[assist]}) {
        /target ${Sender} 
        /delay 1s 
        /assist 
        /delay 1s 
      }
The problem is if there is any other word in the sentence then it ignores the tell since it is not equal.. I can't seem to find the way to get it to ignore the rest and just look for the word assist in a sentence.

Re: Conversion of a sub

Posted: Mon Jun 14, 2004 1:16 pm
by Azum

Code: Select all

/if (${ChatText.Find[assist]}) {


Posted: Mon Jun 14, 2004 4:03 pm
by wassup

Code: Select all

/if (${ChatText}.Equal[assist]}) {
is incorrect.

Code: Select all

/if (${ChatText.Equal[assist]}) {
Would be the right way of using this method, if only looking for the word assist, or if you want to find the word assist in the chat text use the method in the post above.

Posted: Mon Jun 14, 2004 7:45 pm
by Goofmester1
Thanks alot