You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Saturday, March 31st 2012, 10:48pm

Weapon Swapping Addon

Hello I'm working on an addon that will swap my 1hand sword and shield for my 2hand axe.

this is what I have so far but I am unsure as all it does right now is unequips my shield

/script EquipItem (16,89);
/script EquipItem (17);

What item slot is for main hand? I was looking around online and saw 16, but when I use it, it says an error. Any ideas or suggestions would be greatly appreciated as I am new to macros.

Thanks!

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Sunday, April 1st 2012, 2:15am

See this thread about pretty much the same thing. Note that it does need a small wait after unequiping items (as noted later in thread).
2013... The year from hell....

Posts: 70

Location: Austin, Texas

Occupation: Quality Assurance Manager

  • Send private message

3

Thursday, May 3rd 2012, 1:37am

Try this instead, and you won't have to worry about where your items are in your bag. Just be sure to edit the item names if you upgrade to new gear so that it uses the right equipment.

To switch to 1 hand weapon and shield:

/script UseItemByName("Shield Name")
/script UseItemByName("Weapon Name")

To switch to 2 handed weapon:

/script UseItemByName("Weapon Name")