i have the same problem with yours
raine101. but i revised the code that
ever_boy_ did yesterday.
Code: Select all
automacro countBoats {
console /^NPC \[Quest\] Port Manager# \(\d+\) shown minimap indicator/i
call {
$i++
}
call answerBoats
}
macro answerBoats {
pause 2
do talk text $i
do c $i
$i = 0
release countBoats
}
that script tells OpenKore that after
countBoats has been finished counting the minimap indicators, it will call now the
answerBoats macro. it works at first but after you pick the first crate and the character will talk the NPC again, the macro answerBoats will not trigger.
EDIT: the macro will only work at the start but after the bot talked the first crate and will go back to the same NPC, the
answerBoats will not trigger, thus disconnecting the bot to the server. here is the code that i revised. BTW, this macro came from
noobotter.
Code: Select all
automacro AlbertaCargoDeliveryQuest {
priority 1
run-once 1
location alberta
call {
$randomHX = @random ("94","95","96","97","98")
$randomHY = @random ("60","61","62","63","64")
do move alberta $randomHX $randomHY
do talknpc 90 62 c c c r0 c c n
stop
}
}
automacro countBoats {
console /^NPC \[Quest\] Port Manager# \(\d+\) shown minimap indicator/i
call {
[
$i++
]
}
}
automacro answerBoats {
console /^\[Quest\] Port Manager#: Type 'talk text'/i
call {
do talk text $i
$i = 0
}
}
automacro 1stBracket {
console /You can easily recognize the first crate/
base >= 1
base <= 20
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
log Quest Complete!
stop
}
}
automacro 2ndBracket {
console /You can easily recognize the first crate/
base >= 21
base <= 40
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
call 2ndCrate
call HomeNPC
log 2nd Crate done!
log Quest Complete!
stop
}
}
automacro 3rdBracket {
console /You can easily recognize the first crate/
base >= 41
base <= 60
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
call 2ndCrate
call HomeNPC
log 2nd Crate done!
call 3rdCrate
call HomeNPC
log 3rd Crate done!
log Quest Complete!
stop
}
}
automacro 4thBracket {
console /You can easily recognize the first crate/
base >= 61
base <= 80
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
call 2ndCrate
call HomeNPC
log 2nd Crate done!
call 3rdCrate
call HomeNPC
log 3rd Crate done!
call 4thCrate
call HomeNPC
log 4th Crate done!
log Quest Complete!
stop
}
}
automacro 5thBracket {
console /You can easily recognize the first crate/
base >= 81
base <= 97
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
call 2ndCrate
call HomeNPC
log 2nd Crate done!
call 3rdCrate
call HomeNPC
log 3rd Crate done!
call 4thCrate
call HomeNPC
log 4th Crate done!
call 5thCrate
call HomeNPC
log 5th Crate done!
log Quest Complete!
stop
}
}
automacro 6thBracket {
console /You can easily recognize the first crate/
base >= 98
exclusive 1
run-once 1
call {
call 1stCrate
call HomeNPC
log 1st Crate done!
call 2ndCrate
call HomeNPC
log 2nd Crate done!
call 3rdCrate
call HomeNPC
log 3rd Crate done!
call 4thCrate
call HomeNPC
log 4th Crate done!
call 5thCrate
call HomeNPC
log 5th Crate done!
call 6thCrate
call HomeNPC
log 6th Crate done!
log Quest Complete!
stop
}
}
macro 1stCrate {
$randomX1 = @random ("187","188","189","190","191")
$randomY1 = @random ("164","165","166","167","168")
do move $randomX1 $randomY1
pause 2
$i = 0
while ($i < 5) as loop
do talknpc 188 173 c n
$i++
end loop
stop
}
macro 2ndCrate {
$randomX2 = @random ("224","225","226","227","228")
$randomY2 = @random ("102","103","104","105","106")
do move $randomX2 $randomY2
pause 2
$i = 0
while ($i < 5) as loop
do talknpc 232 104 c n
$i++
end loop
stop
}
macro 3rdCrate {
$randomX3 = @random ("238","239","240","241","242")
$randomY3 = @random ("88","89","90","91","92")
do move $randomX3 $randomY3
pause 2
$i = 0
while ($i < 5) as loop
do talknpc 246 87 c n
$i++
end loop
stop
}
macro 4thCrate {
$randomX4 = @random ("238","239","240","241","242")
$randomY4 = @random ("64","65","66","67","68")
do move $randomX4 $randomY4
pause 2
$i = 0
while ($i < 5) as loop
do talknpc 245 67 c n
$i++
end loop
stop
}
macro 5thCrate {
$randomX5 = @random ("235","236","237","238","239")
$randomY5 = @random ("40","41","42","43","44")
do move $randomX5 $randomY5
pause 2
$i = 0
while ($i < 5) as loop
do talknpc 243 43 c n
$i++
end loop
stop
}
macro 6thCrate {
$randomX6 = @random ("114","115","116","117","118")
$randomY6 = @random ("215","216","217","218","219")
do move alberta 105 153
pause 2
do move alberta 110 221
pause 2
do move $randomX6 $randomY6
pause 2
do talknpc 123 221 c n
pause 2
do move alberta 110 221
pause 2
do move alberta 105 153
pause 2
stop
}
macro HomeNPC {
$randomHX = @random ("94","95","96","97","98")
$randomHY = @random ("60","61","62","63","64")
do move $randomHX $randomHY
pause 2
do talknpc 90 62 c n
stop
}
i just change the regexp in
answerBoats because after the bot correctly answer the number of boats, the NPC will ask again the bot with two questions, thus triggering the
answerBoats again. im sorry if my english or my grammar was bad.