Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Free User
    Join Date
    Dec 2015
    Posts
    6
    Reputation
    10
    Rep Power
    0

    Question Small Stone equip

    Howdy xD

    I'm using SlimeTrainer.lua, then I need to pickup the small stone from a camouflage bag on floor. It makes "100% afk", could some one help me?

    I found this script:


    init start
    local melee = 3277 -- id of melee weapon
    local smallStone = 1781 -- id of small stone
    local minAmount = 5 -- amout to equip melee
    local maxAmount = 1 -- amount to equip stones
    local smallstonebp = getlootingdestination('camouflage bag') -- I'd use mainbp

    init end

    auto(500,1000)

    if $rhand.id == 0 and itemcount(smallStones) <= minAmount then
    equipitem(melee, 'rhand')
    wait(500, 1000)
    elseif $rhand.id == melee and itemcount(smallStone) >= maxAmount then
    moveitems(melee, smallstonebp, 'rhand')
    wait(500,1000)
    equipitem(smallStone, 'rhand')
    wait(500, 1000)
    end


    but it only pickup small stone from a backpack on bodie not in floor.

  2. #2
    Free User
    Join Date
    Aug 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    i also searching for it but can't find it

  3. #3
    Free User
    Join Date
    Dec 2015
    Posts
    12
    Reputation
    10
    Rep Power
    0
    need it aswell, can some1 make simple script for just equip small stone i cant find it.....:/

  4. #4
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,771
    Reputation
    151
    Rep Power
    31
    try this
    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(itemid('small stone'), 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end
    Last edited by ozzix; 12-24-2015 at 01:39 AM.

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  5. #5
    Free User
    Join Date
    Dec 2015
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by ozzix View Post
    try this
    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone') == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end
    Thanks bro, anyway I got the following error:

    error in Persistent script Small Stone:
    ["elseif $rhand.id ~= itemid(wep) and ite..."]:Small Stone:12: ')' expected near 'then'

    how may I proceed?

  6. #6
    Free User pedegie's Avatar
    Join Date
    Dec 2015
    Location
    Poland
    Posts
    264
    Reputation
    28
    Rep Power
    17

    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end
    use this, fixed

  7. #7
    Free User
    Join Date
    Dec 2015
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by pedegie View Post

    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end
    use this, fixed
    Thanks bro, this error dont appears anymore.. but this continues not equipping the Small Stone. I'm using a bag on floor not in body, this script not recognize the bag on floor?

  8. #8
    Free User pedegie's Avatar
    Join Date
    Dec 2015
    Location
    Poland
    Posts
    264
    Reputation
    28
    Rep Power
    17
    No. You have make open it first.


    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)
    openitem('camouflage bag', ground(posx, posy, posz))
    wait(300, 500)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end


    where posx,y,z = bag coordinates

  9. #9
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,771
    Reputation
    151
    Rep Power
    31
    Don't think it should matter wether is on the ground or not, sure you entered the correct bp name?

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  10. #10
    Free User
    Join Date
    Dec 2015
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by pedegie View Post
    No. You have make open it first.


    init start
    local wep = 'sword' -- weapon name
    local minAmount = 5 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)
    openitem('camouflage bag', ground(posx, posy, posz))
    wait(300, 500)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 100)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end


    where posx,y,z = bag coordinates
    Once more, thanks for the help!

    Using your script, it's still not working, i have already opened the bag "/

    init start
    local wep = 'throwing stars' -- weapon name
    local minAmount = 25 -- amout to equip stones
    local smallstonebp = 'camouflage bag' -- Bp with stones in
    init end

    auto(500,1000)
    openitem('camouflage bag', ground(352529, 32721, 7))
    wait(300, 500)

    if ($rhand.id == 0 or $rhand.id == itemid('small stone')) and itemcount(itemid('small stone'), 'rhand') <= minAmount and itemcount(itemid('small stone'), smallstonebp) > 0 then
    equipitem(smallStone, 'rhand', smallstonebp, 50)
    wait(500, 1000)
    elseif $rhand.id ~= itemid(wep) and itemcount(itemid('small stone')) == 0 then
    equipitem(itemid(wep), 'rhand')
    wait(500, 1000)
    end

 

 

Tags for this Thread

Posting Permissions

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