Copy and paste this to macro.txt
location aldebaran
exclusive 1
run-once 1
call {
do move 151 110
do talknpc 146 109 c c r0 n
release Maroll
}
}
automacro GoHome {
location not aldebaran
location not bat_room
location not bat_a01
location not bat_a02
exclusive 1
run-once 1
call {
do move aldebaran
release GoHome
}
}
automacro BGroomEntry {
location bat_room
exclusive 1
priority 1
run-once 0
call {
$randomMap = @eval($::config{Battle_Random})
if ($randomMap == 0) goto ContBGRoom
if ($randomMap == 1) goto RandomMapTierra
:RandomMapTierra
$RandomMapChoice = @random ("tierra1","tierra2","tierra3","tierra4")
do conf Battle_Map $RandomMapChoice
goto ContBGRoom
:ContBGRoom
call CharPos
}
}
automacro TalkNPC1 {
location bat_room 132 175 135 169
exclusive 1
run-once 0
call TalkBGnpc
}
automacro TalkNPC2 {
location bat_room 148 175 151 170
exclusive 1
run-once 0
call TalkBGnpc
}
automacro TalkNPC3 {
location bat_room 132 131 135 125
exclusive 1
run-once 0
call TalkBGnpc
}
automacro TalkNPC4 {
location bat_room 148 132 151 125
exclusive 1
run-once 0
call TalkBGnpc
}
automacro SpawnPubT1 {
location bat_room 57 223
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubT2 {
location bat_room 114 223
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubT3 {
location bat_room 57 207
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubT4 {
location bat_room 114 207
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubF1 {
location bat_room 85 223
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubF2 {
location bat_room 141 224
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubF3 {
location bat_room 85 207
exclusive 1
run-once 0
call EnterPub
}
automacro SpawnPubF4 {
location bat_room 141 207
exclusive 1
run-once 0
call EnterPub
}
automacro tierraEntry1 {
location bat_a01
exclusive 1
run-once 0
priority 1
call TierraAI
}
automacro tierraEntry2 {
location bat_a02
exclusive 1
run-once 0
priority 1
call TierraAI
}
automacro PKAtk {
console /Player (.*) \((\d+)\) attacks You.*/i
exclusive 1
run-once 1
call RespondPK
}
automacro PKSkill {
console /Player (.*) \((\d+)\) uses (.*) on you.*/i
exclusive 1
run-once 1
call RespondPK
}
automacro TierraExit1 {
location bat_a01 50 374
exclusive 1
run-once 0
call GetBadge
}
automacro TierraExit2 {
location bat_a01 43 17
exclusive 1
run-once 0
call GetBadge
}
automacro TierraExit3 {
location bat_a02 50 374
exclusive 1
run-once 0
call GetBadge
}
automacro TierraExit4 {
location bat_a02 43 17
exclusive 1
run-once 0
call GetBadge
}