Trying to add Equip items to a script.

aChallenged1

Active Member
I have two swords that I want to be able to equip if I'm attacked when I have an instrument (I'm a bard), or no weapon in hand. I cannot for the life of me make it happen.

I can make an in game macro:
Code:
/wear "Broken Shortsword"
/wear "Broken Dagger"
And that will work just fine. However, when I try to make a simple script to test it, I keep getting the response "That is an invalid equipment location."

Here's the snippet of code:
Code:
function main()
{
    					VGExecute /wear "Broken Shortsword"
					VGExecute /wear "Broken Dagger"
}
I've tried many things all to no avail. I could use some help.

Also looked at: http://www.isxgames.com/forums/showthread.php?t=1009&highlight=equip
 
Last edited:

Jres

Active Member
In game do you do your macro's like this?

/wear "Broken Shortsword" Primaryhand
/wear "Broken Dagger" Secondaryhand

or just

/wear "Broken Shortsword"
/wear "Broken Dagger".

I'd say try and add the primaryhand and secondaryhand there after each weapon and see if it works.
 

Xeon

Active Member
Code:
function main()
{
			VGExecute /wear \"Broken Shortsword\"
			VGExecute /wear \"Broken Dagger\"
}
 

MadHatter

Active Member
Here is a little function I came up with for this. Hope it helps

Code:
      if !${Me.Inventory[${WeaponMain}].CurrentEquipSlot.Equal[Primary Hand]}
        {
         Echo "Equiping Primary Weapon: ${WeaponMain}"
         Me.Inventory[${WeaponMain}]:Equip[Primary Hand]
         Waitframe
        }

      if !${Me.Inventory[${WeaponSecondary}].CurrentEquipSlot.Equal[Secondary Hand]}
        {
         Echo "Equiping Secondary Weapon: ${WeaponSecondary}"
         Me.Inventory[${WeaponSecondary}]:Equip[Secondary Hand]
         Waitframe
        }
 
Top Bottom