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

Thursday, March 26th 2015, 4:06am

Pet XP Charm

Equiping a new pet charm is simple with UseItemByName("Pet Experence Charm") but....
When the charm is full which API command is used to remove it.
EquipItem(19) wont do it (19 should be the top charm slot)
UseEquipementItem(19) also no joy

Any ideas?

2

Thursday, March 26th 2015, 3:28pm

I figured UseEquipmentItem(19) woulda done the trick. You check if you happened to misspell it in-game as you have here?

3

Thursday, March 26th 2015, 7:12pm

Sorry that was a typo here.

4

Thursday, March 26th 2015, 7:57pm

I figured if the typo wasn't the reason then this would be, but I wasn't home to test it, the number is actually 18. When I equip my cape using a macro it sends to slot 6, but using the cape is 5. Go figure.

5

Friday, March 27th 2015, 3:08am

Thanks mate you nailed it. I tried numbers from 19 to about 50 before I gave up there and I also did 1 onwards till all the wep,armors,offhand were removed and never went that one number further. Oh well. At least you solved it.

6

Friday, March 27th 2015, 5:30am

Macro tested and working good. As a mage/scout I use just Shot, so in one game macro is:

/script local duraValue, duraMax, itemName, duraV, duraM = GetInventoryItemDurable("player", 18 ); if duraValue == 100 and itemName == "Pet Experience Charm" then UseEquipmentItem( 18 ); end; if not itemName then UseItemByName("Pet Experience Charm"); end
/script CastSpellByName("Shot")

and Shot can be replaced with which ever skill is used for the class being played.

7

Friday, March 27th 2015, 6:34pm

And if anyone stumbles on this and wants to use that macro for the training charms, simply change Pet Experience Charm to Pet Training Charm and the duraValue == 100 to duraValue == 10.