Magebot

Full Version: Spear to hand
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello need a script to push spear from backpack to hand
There you go

Code:
local CLOCK
local gptimer=os.clock()-.40
function spearfiller()
    CLOCK=os.clock()
    if (CLOCK-gptimer<1.2) then return 0; end
    gptimer=CLOCK
    local spear=FindItem(3277)
    if (spear~=nil)then
        ThrowItemCtoI(spear.num, spear.slot, SLOT_HANDLEFT, 3277, spear.quantity)
    end
    return 0;
end
    
    
SetTimerCallback("spearfiller")

Its pushes any spears it find in your character (backpack must be open) in your LEFT HAND (not the character one, the one you see)
Nice job _/