Code: Select all
automacro giveheal {
pm /heal/i
class Priest
exclusive 1
call {
if ($off == 1) goto off
do sp 28 $.lastpm
:off
call botoff
}
}
automacro giveagi {
pm /agi/i
class Priest
exclusive 1
call {
if ($off == 1) goto off
do sp 29 $.lastpm
:off
call botoff
}
}
automacro givebless {
pm /bless/i
class Priest
exclusive 1
call {
if ($off == 1) goto off
do sp 34 $.lastpm
:off
call botoff
}
}
automacro giveall {
pm /all/i
class Priest
exclusive 1
call {
if ($off == 1) goto off
do sp 34 $.lastpm
do sp 29 $.lastpm
:off
call botoff
}
}
automacro giveloc {
pm /location/i
class Priest
call {
do pm "$.lastpm" $.map ($.pos)
}
}
automacro giveschedule {
pm /schedule/i
class Priest
call {
do pm "$.lastpm" --- All times are on EST (GMT-5) ---
do pm "$.lastpm" Prontera: 1:00PM - 2:00PM, 8:00PM - 9:00PM
do pm "$.lastpm" Morocc: 2:00PM - 3:00PM, 9:00PM - 10:00PM
do pm "$.lastpm" Geffen: 3:00PM - 4:00PM, 10:00PM - 11:00PM
do pm "$.lastpm" Al De Baran: 4:00PM - 5:00PM, 11:00PM - 12:00AM
do pm "$.lastpm" Payon: 5:00PM - 6:00PM, 12:00AM - 1:00AM
do pm "$.lastpm" Comodo: 6:00PM - 7:00PM, 1:00AM - 2:00AM
do pm "$.lastpm" Juno: 7:00PM - 8:00PM, 2:00AM - 3:00AM
}
}
automacro announceonline {
console /.*in-game\./
class Priest
call {
do c @main Public buffbot now online at $.map ($.pos).
}
}
automacro lowsp {
sp < 5%
class Priest
var $off == 0
call {
do c My SP is low. Please wait.
do sit
$off = 1
}
}
automacro highsp {
sp > 90%
var $off == 1
class Priest
call {
do c SP regen completed.
do stand
$off = 0
}
}
automacro reachdest {
location prontera, morocc, geffen, aldebaran, payon, comodo, yuno
call {
$moveType = 0
$off = 0
if ($moveType == 1) goto :pron
if ($moveType == 2) goto :mor
if ($moveType == 3) goto :gef
if ($moveType == 4) goto :alde
if ($moveType == 5) goto :pay
if ($moveType == 6) goto :como
if ($moveType == 7) goto :yuno
:pron
do c @main Buffbot is now active in Prontera ($.pos)
stop
:mor
do c @main Buffbot is now active in Morocc ($.pos)
stop
:gef
do c @main Buffbot is now active in Geffen ($.pos)
stop
:alde
do c @main Buffbot is now active in Al De Baran ($.pos)
stop
:pay
do c @main Buffbot is now active in Payon ($.pos)
stop
:como
do c @main Buffbot is now active in Comodo ($.pos)
stop
:yuno
do c @main Buffbot is now active in Juno ($.pos)
stop
}
}
automacro movepront {
localtime >= 13:00
localtime < 14:00
localtime >= 20:00
localtime < 21:00
location not prontera
class Priest
call {
$off = 1
$moveType = 1
do c @main Buffbot now moving to Prontera.
do move prontera
}
}
automacro movemor {
localtime >= 14:00
localtime < 15:00
localtime >= 21:00
localtime < 22:00
location not morocc
class Priest
call {
$off = 1
$moveType = 2
do c @main Buffbot now moving to Morocc.
do move morocc
}
}
macro botoff {
if ($moveType > 0) goto :dest
do c Please wait while I regen SP.
stop
:dest
do c You'll have to wait until I reach my destination.
}