# Thread: Help me please with setsettings().

1. ## Help me please with setsettings().

I have it.

PHP Code:
 local ITEMS = {"halberd")if x<cap thensetsettings("Settings\\Looting\\List"ITEMS[0]"\\Destination","ground")end  
What to do to set settings item from table loot destination using name from table "ITEMS"?

I want change current loot destination to "ground" using setsettings() function?

Thx for help

2. if u dont have much items just make different lines with item names

3. PHP Code:
 if cap < X thensetsettings("Settings\\Looting\\List\\halberd\\Destination","ground")setsettings("Settings\\Looting\\List\\item2\\Destination","ground")setsettings("Settings\\Looting\\List\\item3\\Destination","ground")...elsesetsettings("Settings\\Looting\\List\\halberd\\Destination","2")setsettings("Settings\\Looting\\List\\item2\\Destination","2")setsettings("Settings\\Looting\\List\\item3\\Destination","2")...end  
or just same
PHP Code:
 if cap < X thensetsettings("Settings\\Looting\\List\\halberd\\Destination","ground")setsettings("Settings\\Looting\\List\\item2\\Destination","ground")setsettings("Settings\\Looting\\List\\item3\\Destination","ground")...end  

4. i have much item. This is only for example.

5. PHP Code:
 local ITEMS = {"item1","item2"} if cap < 100 then     for ITEM = 1, #ITEMS do         setsettings("Settings\\Looting\\List\\"..ITEMS[ITEM].."\\Destination","ground")     end else     for ITEM = 1, #ITEMS do         setsettings("Settings\\Looting\\List\\"..ITEMS[ITEM].."\\Destination","2")     end end  

6. Ty man very much. I solve this problem.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•