I have a problem. I want to make a hotkey that changes my weapon from Spears to Longsword if I have 1 spear and switching it back when I got 3 spears in bp.
I have 3 actions and it dosent work, can somebody check what am doing wrong?
if weapon == itemid("spear") and weaponamount <= meleeon then
moveitems("longsword", "all", "weapon", 1) wait(500)
if itemcount('spear', mainBP) >= spearsback then
moveitems('spear', mainBP, "weapon", spearsback)
Also I have added in Setup:
if cap > captonotloot then
-- Spears --
captonotloot = 60 --cap to not loot spears
meleeon = 4 --amount of spears to take longsword
spearsback = 5 --spears to switch from melee to range