Shirotriplex
07-19-2015, 02:36 PM
Hello XenoBOT Community!
I am looking for script that is taking manas from other backpacks into "Jewelled Backpack" for example - I have right now 5x Shopping Bag full of Great Mana Potion but when I put utana vid + auto gmp it uses only gmp from first backpack(main backpack) also Jewelled backpack but not from Shopping Bags....
Is there any option how can I change it or do I need script?
All those magic level trainers were like npc -> refill gmp -> bank withdraw money -> buy supplies etc...
http://i.imgur.com/LuNkqTY.jpg
/// edit
Wow, after 3 minutes someone sent me already one...
local manatype = "mana potion" -- name of potion
local manapercent = 90 -- mana percent to stop using potions
local listspells = -- list of spells to cast
{
"exura gran",
"utani gran hur",
}
--[[ DO NOT EDIT ANYTHING BELOW THIS LINE ]]--
function ManaPercent()
return math.abs(Self.Mana() * 100 / Self.MaxMana())
end
local manaid = Item.GetID(manatype)
Module('ManaFromContainers', function(mod)
if ManaPercent() < manapercent then
for indexContainer=0, #Container.GetAll()-1 do
local container = Container.New(indexContainer)
for spot=0, container:ItemCount()-1 do
if container:GetItemData(spot).id == manaid then
container:UseItemWithCreature(spot, Self.ID())
end
end
end
end
mod:Delay(600)
end)
Module("BurnMana", function(mod)
for _, spell in ipairs(listspells) do
Self.Cast(spell)
end
mod:Delay(200)
end)
I am looking for script that is taking manas from other backpacks into "Jewelled Backpack" for example - I have right now 5x Shopping Bag full of Great Mana Potion but when I put utana vid + auto gmp it uses only gmp from first backpack(main backpack) also Jewelled backpack but not from Shopping Bags....
Is there any option how can I change it or do I need script?
All those magic level trainers were like npc -> refill gmp -> bank withdraw money -> buy supplies etc...
http://i.imgur.com/LuNkqTY.jpg
/// edit
Wow, after 3 minutes someone sent me already one...
local manatype = "mana potion" -- name of potion
local manapercent = 90 -- mana percent to stop using potions
local listspells = -- list of spells to cast
{
"exura gran",
"utani gran hur",
}
--[[ DO NOT EDIT ANYTHING BELOW THIS LINE ]]--
function ManaPercent()
return math.abs(Self.Mana() * 100 / Self.MaxMana())
end
local manaid = Item.GetID(manatype)
Module('ManaFromContainers', function(mod)
if ManaPercent() < manapercent then
for indexContainer=0, #Container.GetAll()-1 do
local container = Container.New(indexContainer)
for spot=0, container:ItemCount()-1 do
if container:GetItemData(spot).id == manaid then
container:UseItemWithCreature(spot, Self.ID())
end
end
end
end
mod:Delay(600)
end)
Module("BurnMana", function(mod)
for _, spell in ipairs(listspells) do
Self.Cast(spell)
end
mod:Delay(200)
end)