
Originally Posted by
darrickyoung
I attempted to use this script. I placed 2 xbst script names where it is supposed to go and I am getting an error that reads:
Error:
01:36 You lose 5 hitpoints due to an attack by a crystal spider.
01:36 XenoScript Error:
Script: GOLD STOP CAP.lua
Line #: 8
Chunk: C:?Users?Darrick?DOCUME?1?XenoBot?Scripts??GOLDST? 1.LUA
Error: '(' expected near ')'
This is an error with user-input and should not be reported as a bug with XenoBot.
Script Text:
local Mainfile = "[ED] Formorgar Crystal Spiders.xbst" -- name of the main file without .xbst in the end
local NoGoldFile = "DROOD setup.xbst" -- name of the other file which doesn't loot gold
----------------------------
local MainLoaded = true
Module.New('Settings switcher', function(mod)
if Self.Cap() < 100 then
if MainLoaded then
loadSettings(NoGoldFile, 'Looter')
MainLoaded = false
end
elseif not MainLoaded then
loadSettings(MainFile, 'Looter')
MainLoaded = true
end
end
lua code:local Mainfile = "[ED] Formorgar Crystal Spiders.xbst" -- name of the main file without .xbst in the end
local NoGoldFile = "DROOD setup.xbst" -- name of the other file which doesn't loot gold
----------------------------
local MainLoaded = true
Module.New('Settings switcher', function(mod)
if Self.Cap() < 100 then
if MainLoaded then
loadSettings(NoGoldFile, 'Looter')
MainLoaded = false
end
elseif not MainLoaded then
loadSettings(MainFile, 'Looter')
MainLoaded = true
end
mod:Delay(500)
end)
You forgot to copy the last ")".