Log in

View Full Version : How can i fix loot from script . lua ?



taituvn
08-03-2016, 01:40 PM
i get down load script from get script xeno
i dont want to loot mace , axe , board sword
but i fix in file script.xbst for no looted mace ,axe ...
but when i load script .lua have : "XenoBot: Loaded settings successfully. "
all lootlist change for loot :
Use concentrated demonic blod
BP 2 :Strong mana potion
Bp 2 :Strong health potion
BP 3 :gold coin
Bp 3 :platium coin
i can't fix for loot anything esle :S
please help me

taituvn
08-03-2016, 02:17 PM
how can i add loot list monters in this ?


local targeting = _settings['Targeting']
if targeting then
local targets = targeting['TargetingList']
if targets then
local lootList = {}
for i = 1, #targets do
local creatures = split(targets[i].type, ',')
for k = 1, #creatures do
local creature = trim(creatures[k])
local monsterLoot = MONSTER_LOOT[creature]
if monsterLoot then
for j = 1, #monsterLoot do
lootList[monsterLoot[j]] = true
end
end
end
end
-- Add loot items to looter
local minValue = _config['Loot']['Loot-Min-Value']
local maxWeight = _config['Loot']['Loot-Max-Weight']
local whiteList = _config['Loot']['Loot-WhiteList']
local blackList = _config['Loot']['Loot-BlackList']

taituvn
08-03-2016, 02:21 PM
which monters i want to choose this is bog raiders
now i want to choose another monters target = ??