Page 1 of 1

How can I make a Bot do this?...

Posted: Thu Apr 29, 2004 4:28 pm
by Huggles
This is probably a very simple feature, but basically what ive been trying to figure out is this.


I would like to be able to

/tell Mybot say whatever

and then he will say whatever I put in place of whatever.

For example

/tell Myboy say wassup?
Mybot says, wassup?


if this makes sence, its probably something fairly simple im just not an accomplished macro writer, any help would be greatly appreciated

Thanks

Posted: Thu Apr 29, 2004 6:55 pm
by Zazoot
were you planning on using it as a sort of telnet or irc interface to send commands to your char while at school or work? there are some examples in the help forum i think of how to do it with the new datavars / types

i need to look at them some more before i can be sure of how to use them, it looked straightforward at a quick glance.

not much different from before.

http://macroquest2.com/phpBB2/viewtopic.php?t=6773

has an example

nooo

Posted: Thu Apr 29, 2004 7:20 pm
by Huggles
no it was more of like i box in a group some times, and dont want people to know im boxing, so i can load one char up on another computer across the house and sill have him throw comments out there.

Posted: Thu Apr 29, 2004 7:30 pm
by Preocts
1) Use a #Chat tell event
2) Make sure you run a check on who is sending the command to your bot so that only you can make it speak

Code: Select all

#Chat tell

Sub Main
:loop
/doevents
/delay 3
/goto :loop
/return

Sub Event_Chat blah blah blah there are plenty of example threads.

Posted: Sun May 02, 2004 10:26 pm
by Meatball
This should do what you're asking...

Code: Select all

#chat tell

Sub Main
   :Loop
   /doevents
   /goto :Loop
/return

Sub Event_Chat(ChatType,Sender,ChatText) 
   /if (${Sender.Equal[Soandso]}) {
      /say ${ChatText}
   }
/return

Posted: Mon May 10, 2004 5:14 pm
by theoneandonly
bump