PDA

View Full Version : Magic Level Trainer - Request



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)

Weathercock
07-31-2015, 05:04 AM
Does this work in DP? If so, I'm sure it's a quick edit, yeah?

Veela
07-31-2015, 05:22 PM
It's best to use it in -1 or +1 places that ONLY you can get to. Examples include. A guild hall or a house. Keep in mind, you must remain OFF screen from other players to remain "safe"

paniken
08-03-2015, 01:50 PM
this script is bad, it keeps fluiding when i have 100% mana and is also using potions from every stack so the empty ones gets on the ground on top of the bag.

Brodrost
08-03-2015, 01:55 PM
You must have the gmps in on you (main bp)
The bot cant drink from backpack thats lay on the ground, you need a script that bring up the pots from ground backpack to main bp when xxx cap