mIRC Homepage

prob with on text

Posted By: chump

prob with on text - 12/11/06 12:44 AM

hi peeps i got a lil prob with two on text scripts i am running
they are conflicting
one uses the trigger [real] and the other [unreal] relayed to my scriopt from a chan i sit in..they both trigger on either of those words..iam trying to get it so [unreal] triggers the next part of the unreal script and so on..i am trying to get them to trigger on the keywords there supposes to and not both at the same time...if u catch my drfit..thx peeps hope someone can point me in the right direction

forgot to mention the the words are in colour also ie word unreal is in green and the word real is in red..thx peeps

oh forgot to mention the bot it triggers from has looks somthign like this [ UNREAL]
Posted By: Riamus2

Re: prob with on text - 12/11/06 01:24 AM

basic on text stuff...
Code:
on *:text:*:#: {
  if ($strip($1) == unreal) { do this }
  elseif ($strip($1) == real) { do this }
}
Posted By: chump

Re: prob with on text - 12/11/06 01:35 AM

i triedd that no luck...its still picking up on both scripts
Posted By: Riamus2

Re: prob with on text - 12/11/06 03:43 PM

You are going to need to be more specific. What I gave you cannot trigger both things because of the elseif. Show what you're using as a script and we can fix it.
© 2021 mIRC Discussion Forums