You have to delete Loadsettings() from the LUA. Then load all the LUA's and XBST and save the XBST again.
And i also have a problem with opening doors etc. I think these funtions are intervering with the new xenobot functions.
Printable View
Hi DarkstaR,
I use this script for slime training but I get this message:
11:17 XenoScript Error:
Script: SlimeTrainer.lua
Line #: 1826
Chunk: C:\Program Files ?x86??XenoBot?Data?XenoLuaLib.lua
Error: attempt to compare number with table
This is an error with user-input and should not be reported as a bug with XenoBot.
here is the script:
]]--
while(true) do
if (Self.TargetID() == 0) then
if (getTargetsInArea(Self.Position(), 1, 0, 0) == 2) then
setTargetingEnabled(true)
wait(500)
setTargetingEnabled(false)
end
end
wait(2000,3000)
end
@Virse, while this is a minor backwards compat bug that will be fixed. I wrote you a better script in the mean time. Let me know if it works well for you.
You should be able to use it the exact same way.
[code=lua]Module.New('slime-trainer', function(mod)
if (Self.TargetID() == 0 and #Self.GetTargets(1) == 2) then
setTargetingEnabled(true)
mod:Delay(500)
setTargetingEnabled(false)
end
mod:Delay(math.random(2000,3000))
end)[/code]
Before the update the Self.Step"(EAST)" was working flawless. So I saw that with the update it would automaticly load the scripts now aswell, so I saved settings when I had all the needed scripts executed.
Then when it went to refill, it wouldnt go trough the teleporter at banuta main floor (with self.step)
So either way, Xenobot somehow corrupted the files when saving, or Self.Step isnt working proppely anymore.
Also, before speaking to npc's at like boats, it is waiting way longer now then before. Maybe because of the self.reachnpc? Did u change anything to one liners that could cause this bugs?
Self.ReachNpc Doesnt work at all.
Edit: I Downloaded the new version 3.00 At like 11;00 PM.
Edit 2: All Oneliners arent working properly.
Its slow.
Good to know I am not the only one. Thought I did something wrong. Any Moderator that could Enlighten Darkstar with the great news xD?
I will need your script to fix this, but it look like you're using Self.DropItems() incorrectly.
Nothing changed with the injector, you must be doing something wrong. Try a full re-install. There's no reason this should happen now if it didn't before.
I'll need the script.
Most people were using the open door functions incorrectly. Now that they have been properly updated, it is breaking peoples scripts. This is why I always yell at people for doing things wrong - I update thing properly and they break because they are used improperly.
Provide you script I'll see if I can fix it.
Self.Step"(EAST)" Is a very improper way to call it. Try Self.Step(EAST), works fine for me.
I have no clue what Self.ReachNpc is, I have not made a function like that so it must be a third party function using some shitty hack to reach the npc. Post it and I'll take a look.
One liners are working perfectly fine. Any problem with them are due to bad scripts.
Let me just reiterate that all of my scripts work FINE. All Infernal Bolts scripts work FINE and all of Spectrus' script work FINE. Most of your issues are poorly made scripts.