nexus
10-15-2019, 10:03 PM
guys , i have looter which is working, but when i add more items then i have error " a NIL VALUE"
lua script
local MerchantsAndItems =
{Feyrist = "small topaz"and"rainbow quartz"and"colorful snail shell"and"wild flowers"and"dandelion seeds"and"small enchanted amethyst"and"small enchanted ruby"and
"small enchanted emerald"and"butterfly ring"and"wooden spellbook" , "might ring"}
============== /\ When i try add here next one {for many items, }then i got error
Error: attempt to call method 'lower' (a nil value)
, when i set it like it is here i have he read only one item or says that i don't have one of this items and stopping on him
elseif (labelName == "Sell") then
Walker.Stop()
Self.SayToNpc({'hi','trade'}, 65)
wait(400)
for i = 1, #MerchantsAndItems.Feyrist do
if (Self.ShopGetItemSaleCount(MerchantsAndItems.Feyri st:lower()) >= 1) then
Self.ShopSellAllItems(MerchantsAndItems.Feyrist)
wait(300, 500)
end
end
Walker.Start()
lua script
local MerchantsAndItems =
{Feyrist = "small topaz"and"rainbow quartz"and"colorful snail shell"and"wild flowers"and"dandelion seeds"and"small enchanted amethyst"and"small enchanted ruby"and
"small enchanted emerald"and"butterfly ring"and"wooden spellbook" , "might ring"}
============== /\ When i try add here next one {for many items, }then i got error
Error: attempt to call method 'lower' (a nil value)
, when i set it like it is here i have he read only one item or says that i don't have one of this items and stopping on him
elseif (labelName == "Sell") then
Walker.Stop()
Self.SayToNpc({'hi','trade'}, 65)
wait(400)
for i = 1, #MerchantsAndItems.Feyrist do
if (Self.ShopGetItemSaleCount(MerchantsAndItems.Feyri st:lower()) >= 1) then
Self.ShopSellAllItems(MerchantsAndItems.Feyrist)
wait(300, 500)
end
end
Walker.Start()