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.
12-13-2015, 10:52 PM
Lelth
i also searching for it but can't find it
12-22-2015, 10:15 AM
MRlynek
need it aswell, can some1 make simple script for just equip small stone i cant find it.....:/
12-22-2015, 10:41 AM
ozzix
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
12-24-2015, 12:07 AM
answr
Quote:
Originally Posted by ozzix
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?
12-24-2015, 12:13 AM
pedegie
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
12-24-2015, 12:43 AM
answr
Quote:
Originally Posted by pedegie
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?
12-24-2015, 01:10 AM
pedegie
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
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
12-24-2015, 01:22 AM
ozzix
Don't think it should matter wether is on the ground or not, sure you entered the correct bp name?
12-24-2015, 01:27 AM
answr
Quote:
Originally Posted by pedegie
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
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