Since many people are asking for this persistant I made one.
Requirements:
Empty bp on yourself
Bp with mana potions on ground (1 bp inside another)
You need to make 2 persistants:
1st one to open bps, move pots and drop vials
init start
BpWithMana = "brown backpack"
BpOnSelf = "backpack of holding"
ManaToUse = "mana potion"
Spells = {First = "exura ico", Second = 'utani tempo hur', Third = 'utani tempo hur'}
BpPos = {$posx-1, $posy+1, $posz}
init end
auto(100)
if windowcount(BpOnSelf) == 0 then
closewindows()
wait(500)
while windowcount(BpOnSelf) == 0 do
openitem(0, 'back')
wait(500,1000)
resizewindows(0, '0')
wait(1000)
end
end
if windowcount(BpWithMana) == 0 then
while windowcount(BpWithMana) == 0 do
browsefield(BpPos[1], BpPos[2], BpPos[3])
wait(1000)
openitem(BpWithMana, "Browse Field", false)
wait(500,1000)
resizewindows(0, '1')
wait(1000)
end
end
if itemcount(ManaToUse, BpOnSelf) <= 10 then
local FLASKS = {283,284,285}
for i = 1, #FLASKS do
while (itemcount(FLASKS[i]) > 0) do
moveitems(FLASKS[i], ground($posx, $posy, $posz), 'all', 100)
wait(300)
end
end
local function FreeSlots()
return getcontainer(BpOnSelf).maxcount-getcontainer(BpOnSelf).itemcount
end
local Weight = itemweight(ManaToUse)
local ItemsToMove = math.ceil(($cap-20)/Weight)
while ItemsToMove > 0 do
moveitems(ManaToUse, BpOnSelf, BpWithMana, ItemsToMove)
wait(500)
if itemcount(ManaToUse, BpWithMana) == 0 then
openitem(BpWithMana, BpWithMana, false)
wait(1000)
end
if FreeSlots() <= 1 or (itemcount(ManaToUse, BpWithMana) == 0 and itemcount(BpWithMana, BpWithMana) == 0)then
break
end
ItemsToMove = math.ceil(($cap-20)/Weight)
end
end
if cancastspell(Spells.First) then
cast(Spells.First)
wait(200)
elseif cancastspell(Spells.Second) then
cast(Spells.Second)
wait(200)
elseif cancastspell(Spells.Third) then
cast(Spells.Third)
wait(200)
end
And 2nd for using mana potion on self:
auto(100)
if itemcount(ManaToUse, BpOnSelf) > 9 and $mppc < 80 then
useoncreature(ManaToUse, $self)
wait(1000)
end
07-21-2014, 11:55 AM
thetjer
The master back at work! :D shit i needa buy a house! xd
07-22-2014, 12:52 AM
Kostek
Quite easy to set up and works well so far, thanks :)
08-01-2014, 01:10 AM
Borges
you can just drop all potions on the ground... open browsefield remove mana potion from hotkey...
and put to use mana potions.
so simple!
09-10-2014, 11:54 AM
Fallen
nice man!!!
09-15-2014, 04:28 PM
hobodruid
sounds good thanks for the share
09-26-2014, 11:48 PM
matiis
Works fine for me ;P
Thanks
09-28-2014, 04:49 PM
Zioomekk
but when i can have 6 bp with mana potion so i can get bp in to bp and he open next?
ps. who now where is this house from this picture?