Results 1 to 8 of 8

Thread: Move manapotion from floor to backpack

  1. #1
    iBot User
    Join Date
    Nov 2014
    Posts
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    72 Post(s)
    Reputation
    20
    Rep Power
    3

    Move manapotion from floor to backpack

    i need a script/action that picks up 100 manafluid from ground to backpack, uses all of them and then throws the flask on another sqm on the ground and repeat!

    For exampel, standing in a hidden area with manas under the character and it throws the flask on the sqm to the left! Then picks up manas and drinks and uses spells, and repeat!

  2. #2
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Wachoto View Post
    i need a script/action that picks up 100 manafluid from ground to backpack, uses all of them and then throws the flask on another sqm on the ground and repeat!

    For exampel, standing in a hidden area with manas under the character and it throws the flask on the sqm to the left! Then picks up manas and drinks and uses spells, and repeat!
    Considering you have your backpack open, and the mana potions are on the sqm from your left(posx-1) for example:
    PHP Code:
    local mainbp 'backpack'
    if itemcount('mana potion') < and windowcount(mainbp) > 0 then
    dropflask
    ()
    moveitems('mana potions',ground(posx-1,posy,posz), mainbp100)
    end 
    i guess you know how to use healer to cast spells and use manas.
    click the image below to see my thread.



  3. #3
    iBot User
    Join Date
    Nov 2014
    Posts
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    72 Post(s)
    Reputation
    20
    Rep Power
    3
    Quote Originally Posted by mexicowss View Post
    Considering you have your backpack open, and the mana potions are on the sqm from your left(posx-1) for example:
    PHP Code:
    local mainbp 'backpack'
    if itemcount('mana potion') < and windowcount(mainbp) > 0 then
    dropflask
    ()
    moveitems('mana potions',ground(posx-1,posy,posz), mainbp100)
    end 
    i guess you know how to use healer to cast spells and use manas.
    Thanks alot! Just to make it clear, the sqm to pickup and drop is not the same right? so i can have a shitload of manas and stand there all night

  4. #4
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Wachoto View Post
    Thanks alot! Just to make it clear, the sqm to pickup and drop is not the same right? so i can have a shitload of manas and stand there all night
    yes dude it will drop on your feet and get manas from your left < SQM
    click the image below to see my thread.



  5. #5
    iBot User
    Join Date
    Nov 2014
    Posts
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    72 Post(s)
    Reputation
    20
    Rep Power
    3
    Quote Originally Posted by mexicowss View Post
    yes dude it will drop on your feet and get manas from your left < SQM
    Perfect! =D thanks again!

  6. #6
    iBot User
    Join Date
    Nov 2014
    Posts
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    72 Post(s)
    Reputation
    20
    Rep Power
    3
    Quote Originally Posted by mexicowss View Post
    Considering you have your backpack open, and the mana potions are on the sqm from your left(posx-1) for example:
    PHP Code:
    local mainbp 'backpack'
    if itemcount('mana potion') < and windowcount(mainbp) > 0 then
    dropflask
    ()
    moveitems('mana potions',ground(posx-1,posy,posz), mainbp100)
    end 
    i guess you know how to use healer to cast spells and use manas.


    It dosn't pick up new manas, have it done anything wrong? Inserted fur backpack intead of normal in the code.

  7. #7
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Wachoto View Post


    It dosn't pick up new manas, have it done anything wrong? Inserted fur backpack intead of normal in the code.
    I guess its because of the extra S on mana potion, [[moveitems('mana potions',ground(posx-1,posy,posz), mainbp, 100)]]

    anyway there is some improve

    PHP Code:
    local mainbp 'beach backpack'
    local manap 'mana potion'
    if itemcount(manap) < and windowcount(mainbp) > and toptileitem(posx-1,posy,posz) == itemid(manapthen
    dropflask
    ()
    moveitems(manap,ground(posx-1,posy,posz), mainbp100)
    end 
    click the image below to see my thread.



  8. #8
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    389 Post(s)
    Reputation
    366
    Rep Power
    10
    Would be easier to use browsewindow tbh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •