PDA

View Full Version : Help with script *Stop looting gold when x cap, PLEASE HELP.. 1 week trying now



darrickyoung
02-16-2016, 04:16 PM
As the title says, I have been trying to get this script to work now for 1-2 weeks. I get an error that says it cannot find the scripts. Can someone please help. The two files that are MainFile & NoGoldFile, i have copied the xbst settings name for the 2 scripts and pasted them in there. I am getting an error that says that it cannot find the settings. Any ideas, anyone?

lua code:

local MainFile = "[ED] Formorgar Crystal Spiders" -- name of the main file without .xbst in the end
local NoGoldFile = "Formorgar Crystal Spiders No Gold" -- 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)