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

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Huggles
orc pawn
orc pawn
Posts: 11
Joined: Wed Apr 21, 2004 6:13 pm

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

Post by Huggles » Thu Apr 29, 2004 4:28 pm

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

Zazoot
a hill giant
a hill giant
Posts: 163
Joined: Sat Feb 07, 2004 11:02 am

Post by Zazoot » Thu Apr 29, 2004 6:55 pm

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

Huggles
orc pawn
orc pawn
Posts: 11
Joined: Wed Apr 21, 2004 6:13 pm

nooo

Post by Huggles » Thu Apr 29, 2004 7:20 pm

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.

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Thu Apr 29, 2004 7:30 pm

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.

Meatball
orc pawn
orc pawn
Posts: 14
Joined: Sun Feb 22, 2004 8:39 am

Post by Meatball » Sun May 02, 2004 10:26 pm

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

theoneandonly
orc pawn
orc pawn
Posts: 26
Joined: Sun Apr 11, 2004 6:39 pm

Post by theoneandonly » Mon May 10, 2004 5:14 pm

bump