View Single Post
04/12/15, 05:43 AM   #5
Adalan
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 20
Originally Posted by Ayantir View Post
What you serch is :

Lua Code:
  1. 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

Last edited by Adalan : 04/12/15 at 07:21 AM. Reason: GetSettingBool
  Reply With Quote