Switch between WEAPON and Small Stone
keywords: switch weapon, switch ammo, stone, small stone, weapon and small stone, weapon and ammo
local WEAPON = 'serpent sword' -- IT MUST BE ON LEFT HAND (<<<)
local BACKPACK_WEAPON = 'red backpack' -- Backpack that will save the weapon.
local BACKPACK_STONES = 'red backpack' -- Backpack that will save the stones.
local STONES_COUNT = 3 -- Minimum amount to move stones to hand if you are using weapon.
local STONES_ID = 1781 -- DONT CHANGE THIS LINE
local WEAPON_ID = itemid(WEAPON) -- DONT CHANGE THIS LINE
local left_hand = lhand()
if left_hand.id == 0 then
if itemcount(STONES_ID, BACKPACK_STONES) >= STONES_COUNT then
moveitems(STONES_ID, 'lhand', BACKPACK_STONES)
wait(800)
else
moveitems(WEAPON_ID, 'lhand')
wait(800)
end
elseif left_hand.id == STONES_ID and itemcount(STONES_ID, BACKPACK_STONES) >= 1 then
moveitems(STONES_ID, 'lhand', BACKPACK_STONES)
wait(800)
elseif left_hand.id ~= STONES_ID and itemcount(STONES_ID, BACKPACK_STONES) >= STONES_COUNT then
moveitems(left_hand.id, BACKPACK_WEAPON, 'lhand')
wait(800)
moveitems(STONES_ID, 'lhand', BACKPACK_STONES)
wait(800)
end
keywords: switch weapon, switch ammo, stone, small stone, weapon and small stone, weapon and ammo