ever_boy_ wrote:Here's what I got for fiRO's recvpackets, BUT BE AWARE! This file may contain minor errors, most likely packet's length. There's a regex flaw which makes possible for a positive length to be replaced for a -1 length and vice-versa.
But on overall, it should be ok.
Oh, and it doesn't have replay factor, as I still couldn't figure out how it works on your exe. But as far as I know, this is not required by openkore, it's used for visual compare only.
http://pastebin.com/y8pcVmgM
My bot is working with this recvpackets using openkoreSVN. But the thing is, sometimes it recognize the monster then sometimes it recognize as npc. It didn't attack any long range or unmovable monsters like hydra, peco egg, mandragora etc..Also, I didn't recognize any NPC and all with wrong coordinates. My bot also have an error after 10min-4hrs.
Code: Select all
Error message:
Invalid arguments.
Stack trace:
Trace begun at src\Task\Route.pm line 80
Task::Route::new('Task::Route', 'actor', 'Actor::You=HASH(0x2718f34)', 'x', 74, 'y', 0, 'maxDistance', undef, 'maxTime', 4, 'avoidWalls', '', 'distFromGoal', undef, 'pyDistFromGoal', undef, 'notifyUponArrival', undef) called at src\Actor.pm line 776
Actor::route('Actor::You=HASH(0x2718f34)', undef, 74, 0, 'maxRouteTime', 4, 'attackID', 'M-^P.M-1^F', 'noMapRoute', 1, 'noAvoidWalls', 1) called at src\AI\Attack.pm line 526
AI::Attack::main at src\AI\Attack.pm line 97
AI::Attack::process at src\AI\CoreLogic.pm line 77
AI::CoreLogic::iterate at src\functions.pl line 736
main::mainLoop_initialized at src\functions.pl line 70
main::mainLoop at src\Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x12280e4)') called at openkore.pl line 97
main::__start at start.pl line 136
Died at this line:
* unless ($args{actor}->isa('Actor') and $args{x} != 0 and $args{y} != 0) {
ArgumentException->throw(error => "Invalid arguments.");