Originally Posted by Ayantir
What you serch is :
Lua Code:
GetSettingBool(SETTING_TYPE_LOOT, LOOT_SETTING_AUTO_LOOT_STOLEN)
To get list of settings, search " settings" in http://wiki.esoui.com/Globals
|
I will test it out.
On my tests, i used SETTING_TYPE_LOOT and got alot integer values when i used it by a loop to test out what happen, but i had no idea of from where to get the second value.
I thought it could go by such like "GetNumSettings(...)", but i couldnt find any of such command nor anything like that on Wiki.
Sometimes i am wondering from where you guys getting all those infos i cant find on WiKi :-)
Btw, i played sometimes a bit with commands or events seen on wiki, wich are not known in how to use.
But for my MasterThief i needed a solution and used at first "EVENT_CLOSE_FENCE", but it wasnt triggered by the system, so i used an other way to solve the problem.
Just want to let you know.
Thanks alot for your help.
Greets,
Adalan
EDIT:
GetSettingBool(...) gave an Error: "function expected instead of nil"
But to change settings i used the way below, which worked:
local sIsAutoLootEnabled = GetSetting(SETTING_TYPE_LOOT, LOOT_SETTING_AUTO_LOOT_STOLEN)
if (sIsAutoLootEnabled == "1") then -- needs to set OFF
SetSetting(SETTING_TYPE_LOOT, LOOT_SETTING_AUTO_LOOT_STOLEN, "0")
end
|