Results 1 to 5 of 5

Thread: Item pick up help

  1. #1
    Normal User
    Join Date
    Aug 2014
    Posts
    21
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    3

    Item pick up help

    Looking for some examples on how to find/use my hp/mp/cap/etc.
    And how to pick up items or add spears to my hand if my cap is > than X.

    I don't know if this was posted before, but i could find only few examples about this stuff.

    Thanks

  2. #2
    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
    @lamafao

    hp = your health in points I.E 2450HP
    hppc = your health in procent I.E 76%
    mp = your mana in points
    mppc = your mana in procent
    cap = your cap

    Lua Code:
     
    local rangeweapon = 'spear'
     
    if itemcount('spear') > 0 then
    moveitems(rangeweapon, 'all', 'weapon', 100)
    wait(300,500)
    end


    Simple action to move weapon to your hand as soon as you loot one, like in this action it would be spears

  3. #3
    Normal User
    Join Date
    Aug 2014
    Posts
    21
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    3
    Quote Originally Posted by Drakke View Post
    @lamafao

    hp = your health in points I.E 2450HP
    hppc = your health in procent I.E 76%
    mp = your mana in points
    mppc = your mana in procent
    cap = your cap

    Lua Code:
     
    local rangeweapon = 'spear'
     
    if itemcount('spear') > 0 then
    moveitems(rangeweapon, 'all', 'weapon', 100)
    wait(300,500)
    end


    Simple action to move weapon to your hand as soon as you loot one, like in this action it would be spears
    Thanks!
    At first i thought this itemcount("spear") was how much spears i have, but turns out it's the amount of spears on the ground.
    Is there a way to check 'if myspears < 5 and cap > 50 then pickup spears'?
    I guess it doesn't really matter because it checks cap already so i wont have too many spears, just wondering.

    Edit: I've found a pally tutorial, maybe ill figure it out myself
    Last edited by lamafao; 08-21-2014 at 02:33 PM.

  4. #4
    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
    @lamafao

    itemcount() is how many of X item is showing in your backpacks.
    weaponamount is amount of X item in your hand
    ammoamount is the amount of X item in your ammoslot

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10

Posting Permissions

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