Hello.
There are 3 errors in your script:
Line #1 -> attackingme('p')
This error is the one that's being told on console and the error message says pretty much everything: "invalid arguments to method call".
|Only Registered members can see download links. | Click here to buy subscription or here to register.
attackingme(number lastMILLISECONDS, optional string filter) [number]: Returns the amount of creatures (players and/or monsters) that are attacking you or attacked you in last milliseconds according parameters. Filter must be: 'p' => players, 'm' => monsters or 'pm' => players and monsters.
Example:
if cap() < 30 or attackingme(1000, 'p') > 0 then
Line #2 -> setsettings('Targeting/Creatures/Mutated Rat/Only if trapped', true)
You probably used the "Copy Path" and this induced or generated this error because SETTING is missing in that path. It would not generate an error, but simply would not work.
So you would notice only if you think about this path in a logical way or when the bot did not change that option.
Example:
setsettings('Targeting/Creatures/Mutated Rat/Setting1/Only if trapped', true)
Line #3 -> waypoint() > 29
The waypoint function returns a LUA TABLE, but you are comparing it to a number, because you probably want to compare with the waypoint's id.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
waypoint() [table]
.id [number]: ID number of waypoint.
.name [string]: Wapoint label/name.
.type [string]: Waypoint type (drop, action, node, stand, etc.).
.x [number]: Waypoint X position.
.y [number]: Waypoint Y position.
.z [number]: Waypoint Z position.
Example:
if waypoint().id > 29 then