Script

2012-01-25

The basic macros: autorestore hp & sp - Advanced

At this time we have to improve the bot settings, with the macros we could make the bot more flexible, with the macros we can make the bot do whatever we want.

To begin with, we'll see these two simple but very useful macros: the first is for restoring the hp, the second is for sp, using the @go 5 command.
The mechanism is simply: when the bot have 30% or less hp (or 20% sp), it will use the @go 5 command to warp itself to Izlude. Once the bot warped to Izlude his hp and sp will be restored to the 100%. If in the control\config.txt the izlude map is not in the allowedMaps list and the teleportAuto_useChatCommand is setted, the bot will immediately teleport himself to the map.

# XILERO BOT - http://xilerobot.blogspot.com/

automacro autohp{
        hp <= 30%
        exclusive 1
        call {
                do c @go 5
        }
        timeout 3
}

# XILERO BOT - http://xilerobot.blogspot.com/

automacro autosp{
        sp < 20%
        exclusive 1
        call {
                do c @go 5
        }
        timeout 3
}
There are other ways to do this same thing, this is the easiest way.
If you want to know, just ask...

8 comments:

  1. Anonymous27/6/12 22:11

    How to use this macro's?? in which file do i need to save in order to enable this macro?? pls help.

    ReplyDelete
    Replies
    1. You have to install the macro plugin, read here

      Delete
  2. Anonymous28/6/12 21:46

    I have tried this macro..but does not work...so what can be the reason for this??and exactly what changes do i need to do in config.txt?? plz help me out...

    ReplyDelete
  3. Anonymous1/7/12 16:50

    I i want to warp after reaching izlude...then is there any other macro for this...i mean my bot dies and due to above macro to goes to izlude for HP/SP recovery, but after getting healed can i again made my bot to auto-warp to the desired map? pls help me with this, Thanks in advance.

    ReplyDelete
    Replies
    1. sure, you must set the allowedMaps and the allowedMaps_reaction like this:
      allowedMaps prt_maze01
      allowedMaps_reaction 0
      don't put here the izlude map!
      also set
      LockMap prt_maze01
      teleportAuto_useChatCommand @warp

      Delete
    2. Anonymous8/7/12 10:46

      i have tried as per above instruction but i get error saying unable to teleport as you dont have skill of buterfly wing.. pls help me what to do.

      Delete
    3. Yeah I have the same problem when I set allowedMaps_reaction 0, it say unable to warp bcos the butterflywing etc. and when i set it to allowedMaps_reaction 1, start.exe just crashes.

      Delete
    4. you must set the allowedMaps and the teleportAuto_useChatCommand commands and set allowedMaps_reaction to 0.
      And take a look at teleportAuto_useSkill values.

      Delete