I'm making a script for myself and I'm having two problems so far:
1.When looting werewolves:
My looting was working perfectly, even when I had 5+ monster around me, bot would open all the dead bodies and loot all stuff with no mistake, but, there is a respawn where there are some werewolves, after killing them and begining looting, the bot just stop working well!Sometimes it takes long to open a single body,sometimes it opens,loot, and open the same body again, sometimes it stands there doing nothing,after sometime it goes to the next waypoint, comes back and open again, in other words, it mess up the whole looting.The problem does not happen with only werevoles bodies, but when there are werevoles bodies around, (problem occours with other creature's bodies, if there are werevolves bodies around)
I know it sounds really wierd that a looting problem occurs to a specific creature, but , after killing them and going to other respaws, the looting starting working flawless once again, the problem really only happens at the werewolves respawn!
I don't think the problem is with my OpenBodyTime (I use default time: 300), since the bot is working perfectly with other creatures, also, my problem is not related with picking up the loot, but opening the bodies.
At first sight, I highly doubted that the problem was linked to werewolves, it not likely the bot would have problems opening a single kind of monster.But, has anyone experienced something similar to this?
2.Problem with getcreature()
When I try to use getcreature() the following problem happens:
My debug window shows this message:PHP Code:
local m = getcreature("creatures name")
if m.dist <= 5 then
LUA:PersistentAction - LuaInterface LuaScriptException: [String: "chunck"]: attempt to compare string with number
- My CPU usage don't go more than 15%
- I'm using iBot v1.1.7
- I have Sirmate's library latest version