checkii wrote:Is there anyway for the bot to automatically continue or restart the script once it gets this error?
Just keep restarting the script? This error is pretty momentary, not to mention the client hasn't crashed yet. A simple restart will put the bot back on track. And when I say restart i mean something like Shift UP, Enter
If you're sure the error is momentary and would like to see if it can continue, try putting that whole section into a "repeat until" loop and see what happens.
To do this, find this line around line 161;
Code: Select all
tmp = debugAssert(memoryReadByte(proc, self.Address + addresses.charAlive_offset), memerrmsg);
and add a repeat above it like this;
Code: Select all
repeat
tmp = debugAssert(memoryReadByte(proc, self.Address + addresses.charAlive_offset), memerrmsg);
Next change this code around line 272;
Code: Select all
if( self.Alive ==nil or self.HP == nil or self.MaxHP == nil or self.MP == nil or self.MaxMP == nil or
self.MP2 == nil or self.MaxMP2 == nil or self.Name == nil or
self.Level == nil or self.Level2 == nil or self.TargetPtr == nil or
self.X == nil or self.Y == nil or self.Z == nil or self.Attackable == nil ) then
error("Error reading memory in CPawn:update()");
end
to
Code: Select all
yrest(100)
until ( self.Alive ==nil or self.HP == nil or self.MaxHP == nil or self.MP == nil or self.MaxMP == nil or
self.MP2 == nil or self.MaxMP2 == nil or self.Name == nil or
self.Level == nil or self.Level2 == nil or self.TargetPtr == nil or
self.X == nil or self.Y == nil or self.Z == nil or self.Attackable == nil )
--error("Error reading memory in CPawn:update()");
--end
See what that does.
Edit: Just realized I should add a pause between loops.