BBot - The best bot of the world
potion from a backpack - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: potion from a backpack (/thread-18173.html)



potion from a backpack - rafaelw23 - 06-23-2015

Hi, please, i need a script that use mana potion from a backpack (in dp or on the ground).
Please!


RE: potion from a backpack - lukasze - 06-26-2015

If Cap >=80 move Potion to main Backpack(in equipment)
Quote:500 {Move item to BP} Self.Capacity()>=80 PotionID:=ID Self.Equip.Backpack(!PotionID!)
If cap >=80 and under thee it is the item ID move item ID to first o[/quote]pen BP
Quote:500 {Move item first open bp} PotionID:=ID X:=Self.X() Y:=Self.Y() Z:=Self.Z() Self.Capacity()>=80 Map.HasID(!PotionID!, !X!, !Y!, !Z!)>=1 Map.PickUpEx(!PotionID!, 0, 0, !X!, !Y!, !Z!, 3)
if cap >= 80 Move item ID to first open BP
Quote:500 {Move item first open bp} PotionID:=ID X:=Self.X() Y:=Self.Y() Z:=Self.Z() Self.Capacity()>=80 Map.PickUpEx(!PotionID!, 0, 0, !X!, !Y!, !Z!, 3)
if mana<=80 and ItemName >=10 use ID on you {Example}Name = mana potions
if Using one of 910 mana potions... {Example}[/quote]
Quote:500 {Use potion} PotionID:=ID ItemName:=Name X:=Self.X() Y:=Self.Y() Z:=Self.Z() selfID:=Creature.Self() Misc.ItemCount(!ItemName!)>=10 Self.Mana%()<=80 Creature.ShootOn(!selfID!, !PotionID!)




If something else he wanted to write exactly would you see if you can do the trick


RE: potion from a backpack - rafaelw23 - 06-29-2015

(06-26-2015, 10:15 PM)lukasze Wrote: If Cap >=80 move Potion to main Backpack(in equipment)
Quote:500 {Move item to BP} Self.Capacity()>=80 PotionID:=ID Self.Equip.Backpack(!PotionID!)
If cap >=80 and under thee it is the item ID move item ID to first o
pen BP
Quote:500 {Move item first open bp} PotionID:=ID X:=Self.X() Y:=Self.Y() Z:=Self.Z() Self.Capacity()>=80 Map.HasID(!PotionID!, !X!, !Y!, !Z!)>=1 Map.PickUpEx(!PotionID!, 0, 0, !X!, !Y!, !Z!, 3)
if cap >= 80 Move item ID to first open BP
Quote:500 {Move item first open bp} PotionID:=ID X:=Self.X() Y:=Self.Y() Z:=Self.Z() Self.Capacity()>=80 Map.PickUpEx(!PotionID!, 0, 0, !X!, !Y!, !Z!, 3)
if mana<=80 and ItemName >=10 use ID on you {Example}Name = mana potions
if Using one of 910 mana potions... {Example}[/quote]
Quote:500 {Use potion} PotionID:=ID ItemName:=Name X:=Self.X() Y:=Self.Y() Z:=Self.Z() selfID:=Creature.Self() Misc.ItemCount(!ItemName!)>=10 Self.Mana%()<=80 Creature.ShootOn(!selfID!, !PotionID!)




If something else he wanted to write exactly would you see if you can do the trick
[/quote]

Tks Heart Big Grin Big Grin