Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
potion from a backpack
#1
Hi, please, i need a script that use mana potion from a backpack (in dp or on the ground).
Please!
Reply
#2
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
If it helped give the REP+

If someone is offended SORRY
Reply
#3
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)