Announcement

Collapse
No announcement yet.

[SCRIPT] Weapon change between one and two handed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • swisher
    replied
    hey i got this to work on swords and axes but i can't get it to switch to a BOW. "Flamming Bow"

    Leave a comment:


  • vititox
    started a topic [SCRIPT] Weapon change between one and two handed

    [SCRIPT] Weapon change between one and two handed

    This hotkey script will swap between your one-handed weapon + shield item and your two-handed weapon.
    If you know how to improve this script or a better way to do it, please let me know!!!
    Also, try to be still when using to avoid errors.

    Add this to a custom hotkey, I use it on "END":

    Code:
    --- Weapon Swap
    	local doublehand = "Double Axe" --Double Handed Weapon name
    	local onehand = "Axe" --One Handed Weapon name
    	local shield = "Dwarven Shield" --Shield name
    
    	local checkweapon = getslotitem(SLOT_LEFT)
    	local checkweapon2 = getslotitem(SLOT_RIGHT)
    	if checkweapon.id == itemid(onehand) or checkweapon2.id == itemid(shield) or checkweapon2.id == itemid(onehand) or checkweapon.id == itemid(shield) then
    		getslotitem(SLOT_RIGHT):move(container(0,1))
    		wait(500, 700)
    		getslotitem(SLOT_LEFT):move(container(0,1))
    		wait(500, 700)
    		local mover = finditem(doublehand)
    		mover:move(slot(SLOT_LEFT))
    	elseif checkweapon.id == itemid(doublehand) or checkweapon2.id == itemid(doublehand) then
    		getslotitem(SLOT_LEFT):move(container(0,1))
    		getslotitem(SLOT_RIGHT):move(container(0,1))
    		wait(500, 700)
    		local mover = finditem(onehand)
    		mover:move(slot(SLOT_LEFT))
    		wait(500, 700)
    		local mover2 = finditem(shield)
    		mover2:move(slot(SLOT_RIGHT))
    	elseif checkweapon2.id == 0 and checkweapon.id == 0 then
    		local mover = finditem(doublehand)
    		mover:move(slot(SLOT_LEFT))
    	end
Working...
X