Need help with auto macro

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

azoroik
Noob
Noob
Posts: 11
Joined: 05 May 2009, 10:55
Noob?: No

Need help with auto macro

#1 Post by azoroik »

Can anyone tell me what to write in config.txt for starting macro (its in macros.txt)

like for auto login command we use cmdOnLogin c @autoloot

like that what to use to run the below macro

automacro healer {
sp < 20
hp < 300
map einbroch
call {
do talknpc 85 202 n
}
timeout 10
}

its used for using healer when respawned after death

please dont give the macro plugin help link i didnt understand anything from that
Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: Need help with auto macro

#2 Post by Mortimal »

First af all? post code in "code" tags:

Code: Select all

automacro healer {
sp < 20
hp < 300
map einbroch
call {
do talknpc 85 202 n
}
timeout 10
}
Than, better to use automacro with named macro:

Code: Select all

automacro healer {
  sp < 20
  hp < 300
  map einbroch
  timeout 10
  call heal
}

macro heal {
  do talknpc 85 202 n
}
after that you must ask yourself - "Do we need to walk some distance to talk to npc or not?" and if it is "yes", add some do move to your macro...

p.s. instead of timeout you better use:

Code: Select all

automacro healer {
  sp < 20
  hp < 300
  map einbroch
  run-once 1
  call heal
}

macro heal {
  do talknpc 85 202 n
  release healer
}
Please use pin function for uploading your file contents!