How does event1 trigger and at the same time event2 triggers, and have event1 collect information given from event2?
ON *:TEXT:!testcmd:#echo: {
msg #opers !locate
.timer 1 2 msg $chan I was told the location is: %var
}
ON *:TEXT:Location is*:#opers: { set %var $3- }
I have 2 bots. One is the mIRC bot I'm implementing this system into and the other is a PAWN scripted bot that is in a different channel from my mIRC bot. If someone from #echo types !testcmd, I want the mIRC bot to message a command in #opers which the PAWN bot will pick up on and respond, then I want my mIRC bot to store what the other bot says and return that information given back into #echo. So basically...
(#echo) Joe_Dean: !testcmd
(#opers) mIRCbot: !locate
(#opers) PAWNbot: Location is Salt Lake City
(#echo) mIRCbot: I was told the location is: Salt Lake City
I've made many attempts of doing this, from setting a var to writing to a file in the second event, and it all works except at the last part of the script where the mIRCbot reports back to #echo, it returns nothing but the info is stored. It's almost as if the info needed is stored AFTER the mIRCbot reports back to #echo. I tried setting up a timer (as you can see) to prevent this but that doesn't seem to work either.
Tbh I confused myself while posting this and if I confused you, please join my network so I can actually show you (irc.lvrcr.com) and then just PM me (Joe_Dean).
Thanks