simple bot request

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

van
a lesser mummy
a lesser mummy
Posts: 37
Joined: Mon Jun 24, 2002 1:04 am

simple bot request

Post by van » Mon Jan 06, 2003 5:24 pm

i would just be happy to have a bot that takes comands from tells

*edit* to clear this up. have a bot that auto types in what i just told it. Dont want people thinking im asking for what i have found already.**

(from defined person only).
like hotkey out the following on the non-bot

follow
/tell bot /target me
/tell bot /follow

sit
/tell bot /sit

stand
/tell bot /sitt off


cheal me
/tell bot /target me
/tell bot /sit off
/tell bot /cast 8
/tell bot /sit on

gate
/tell bot /sit off
/tell bot cast 6
/tell bot /endmacro

you get the idea.. oh and pause would have to be added to the non-bot side. damn antispam code =)


i know how to do most of it but i figure somebody could do this in a few min and you could make it do most things.

also donno if ya can have a macro call another macro. somthing like tell macroquest /call attack.mac where it ends the current macro and starts another.

chain a few macros together to keep it simple. donno just a thought.

OldUI
decaying skeleton
decaying skeleton
Posts: 9
Joined: Wed Jan 08, 2003 12:01 am

Post by OldUI » Wed Jan 08, 2003 1:48 am

Havent tested, should work

Code: Select all

#chat tell 

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

Sub Event_Chat

/hot Temp $p2
/click left hotkey 0 
/click left 0,0
/click left hotkey 0


/return
You might run out of hotkeys, and i dont know how the /hot command works then.
[img]http://www.baybrokerage.com/ham.jpg[/img]

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Thu Jan 09, 2003 4:12 pm

I think you misunderstood what he said. he wants to set the hotkeys on his owner account and have the hotkeys tell the bot account what to do...

Code: Select all


#chat tell

#define owner "your owner name"


Sub Main
 :loop
  /doevents
 /goto :loop

Sub Event_Chat
 /if $p0==owner {
  /$p2
}
/return

Unsure if this works as I have no way to test it right now but in theory you should tell the bot "sit off" and it will type /sit off (leave the / out)

OldUI
decaying skeleton
decaying skeleton
Posts: 9
Joined: Wed Jan 08, 2003 12:01 am

Post by OldUI » Thu Jan 09, 2003 9:39 pm

WOW!

/$p2 would work?! Thats insanely uber, would have never that the varables are evaluated before command parsing; good thing that it is tho-- i guess.
[img]http://www.baybrokerage.com/ham.jpg[/img]

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Thu Jan 09, 2003 10:03 pm

Never read the manual?
Sub Event_Chat: Event callback for messages
$p0 - Channel of message (ooc etc., chat channels will callback with the name of the channel)
(ie. /join port ... callback will have $p0==port)
$p1 - Name of the person who sent the message
$p2 - Text they sent

van
a lesser mummy
a lesser mummy
Posts: 37
Joined: Mon Jun 24, 2002 1:04 am

Post by van » Fri Jan 10, 2003 7:17 pm

wow.. cant wait to test it out...
figured it would be somthing short like that.. but not that short=)

thanks!