Can someone help me?
Code: Select all
# Macro por Revok
# Todas as alterações para funcionalidade completa do bot por Raptor
automacro reload {
location bat_room
console /Você está sentando/
exclusive 1
call {
do reload macros.txt
do conf autoTalkCont 0
[
log ** Macros reloaded e autoTalkCont ajustado para 0 **
]
release reload
}
}
automacro OfereceBuffs {
location bat_c01
console /Você está sentando/
exclusive 1
run-once 1
call {
pause @rand(2,3)
do c @random("-","_","[","]",".",",","(",")")
release reload
}
}
automacro Cura {
location bat_c01
pubm /[Cc][Uu][Rr][Aa]||[Hh][Ee][Aa][Ll]||[Mm][Aa][Ii][Ss]||[Bb][Uu][Ff][Ff][Ss]||[Bb][Uu][Ff][Ff]/
exclusive 1
call {
pause @rand(2,3)
do stand
do sp 28 $.lastpub
pause 1
do sp 28 $.lastpub
pause 1
do sp 28 $.lastpub
pause 1
do sp 28 $.lastpub
pause 2
do sp 34 "$.lastpub"
pause 1
do sp 29 "$.lastpub"
[
log ** Player curado e buffado **
]
pause 2
release Cura
}
}
automacro foradoMapa {
location not prontera
location not bat_room
location not bat_c01
run-once 1
call {
[
log ** Um filho da puta me deu portal pra outro lugar **
]
do stand
do respawn
do move prontera
release foradoMapa
}
}
automacro Join_BG-AnyCity {
eval $field && $field->isCity()
exclusive 1
call {
do move bat_room
release all
}
}
automacro army_is_Unset {
exclusive 1
var army unset
call {
$army = @random ("Croix", "Guillaume")
log Iniciando em $army !
}
}
automacro mainROOM_pause {
hook in_game
location bat_room
priority 50
exclusive 1
call {
pause 1
}
}
automacro mainROOM_route_to_NPC_Croix {
location bat_room
location not bat_room 164 131 175 124
location not bat_room 164 175 167 170
location not bat_room 166 211 173 204
location not bat_room 166 227 173 220
var army == Croix
exclusive 1
#run-once 0
call {
do conf route_randomWalk 0
do move bat_room @rand (164,167) @rand (124, 129)
pause 0.5
}
}
automacro mainROOM_route_to_NPC_Guillaume {
location bat_room
location not bat_room 164 131 175 124
location not bat_room 164 175 167 170
location not bat_room 166 211 173 204
location not bat_room 166 227 173 220
exclusive 1
var army == Guillaume
call {
do conf route_randomWalk 0
do move bat_room @rand (164,167) @rand (175, 170)
pause 0.5
}
}
automacro miniROOM_NPC_Access_Guillaume {
location bat_room 164 175 167 170
exclusive 1
run-once 0
var army == Guillaume
call {
pause 0.2
do talknpc 164 178 c r0 c
pause 2
stop
}
}
automacro miniROOM_NPC_Access_Croix {
location bat_room 164 131 175 124
exclusive 1
run-once 0
var army == Croix
call {
pause 0.2
do talknpc 164 121 c r0 c
pause 2
stop
}
}
automacro miniROOM_get_my_cell_Guillaume {
location bat_room 169 223
exclusive 1
run-once 0
var army == Guillaume
call {
do move @rand (166,173) @rand (224,227)
pause 0.5
}
}
automacro miniROOM_get_my_cell_Croix {
location bat_room 169 207
exclusive 1
run-once 0
var army == Croix
call {
do move @rand (166,173) @rand (204,208)
pause 0.5
}
}
automacro miniROOM_join_chat {
macro_delay 0.5
timeout 0.3
location bat_room 166 211 173 204, bat_room 166 227 173 224
location not bat_room 169 207
exclusive 0
run-once 1
call {
do chat join 0
release miniROOM_join_chat
}
}
automacro miniROOM_join_chat_LOCK {
console /Você já está em uma sala./i
priority 5
exclusive 1
call {
$chatLocked = 1
log Entrei na sala!
pause 2
do c @random ("-","_","[","]","(",")")
lock miniROOM_join_chat
}
}
automacro miniROOM_join_chat_UNLOCK {
var chatLocked == 1
mapchange any
call {
$chatLocked = 0
release miniROOM_join_chat
}
}
automacro miniROOM_join_chat_UNLOCK_ingame {
var chatLocked == 1
hook in_game
call {
$chatLocked = 0
release miniROOM_join_chat
}
}
automacro insideROOM_get_points {
location bat_c01 50 131 56 125, bat_c01 144 57 149 52
console /O Oficial dará pontos nos próximos 30 segundos./i
priority 4
run-once 1
macro_delay 1
call {
[
log talk 9
]
do talk 9
[
log talk 10
]
do talk 10
[
log talk 11
]
do talk 11
[
log talk 12
]
do talk 12
[
log talk 13
]
do talk 13
[
log talk 14
]
do talk 14
log talk 9
do talk 9
log talk 10
do talk 10
log talk 11
do talk 11
log talk 12
do talk 12
log talk 13
do talk 13
log talk 14
do talk 14
release insideROOM_get_points
}
}
automacro insideROOM_battle_results_lost {
exclusive 1
priority 5
console /Você ganhou pontos pela derrota\: 1./i
call {
$points = @eval(@config(kvmPoints) + 1)
log $points
do eval configModify(kvmPoints, $points )
$oldarmy = $army
if ($army == Croix) goto changeToGuil
if ($army == Guillaume) goto changeToCroix
:changeToGuil
$army = Guillaume
goto end
:changeToCroix
$army = Croix
goto end
:end
log Perdemos no $oldarmy .\nAgora somos $army .\nPontos da sessão: [ @config(kvmPoints) ] .
release miniROOM_join_chat
release insideROOM_get_points
}
}
automacro insideROOM_battle_results_draw {
exclusive 1
priority 5
console /Você ganhou pontos pelo empate\: 1./i
call {
$points = @eval(@config(kvmPoints) + 1)
log $points
do eval configModify(kvmPoints, $points )
log Empatamos no $army \nPontos da sessão: [ @config(kvmPoints) ] .
release miniROOM_join_chat
release insideROOM_get_points
}
}
automacro insideROOM_battle_results_victory {
exclusive 1
priority 5
console /Você ganhou pontos pela vitória\: 5./i
call {
$points = @eval(@config(kvmPoints) + 5)
log $points
do eval configModify(kvmPoints, $points )
log Ganhamos no $army \nPontos da sessão: [ @config(kvmPoints) ] .
release miniROOM_join_chat
release insideROOM_get_points
}
}
automacro insideROOM_fakeAI_walking {
location not bat_c01 144 57 149 52
location not bat_c01 50 131 56 125
location bat_c01
exclusive 1
run-once 0
timeout 10
call {
do conf route_randomWalk 0
do move @rand (70, 76) @rand (114, 120)
}
}
automacro insideROOM_fakeAI_squareAttack {
location bat_c01 70 120 76 114
exclusive 1
run-once 0
timeout 5
priority 1
call {
do kill @rand (0, 6)
}
}