You are not logged in.

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


/!\ We have moved to a new board. Come join us. This board is now in "archive" (read-only mode). /!\

Dear visitor, welcome to Runes of Magic US / AU. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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?
Callmepapabear - Erebos (Formerly Osha)
Storyteller and Cenedrils - 190,219 PA R/M - 196,201 PA S/R
I upload vids now and then
https://www.youtube.com/channel/UCaaIokqEpV_7X7NTi_bADlg

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.
Callmepapabear - Erebos (Formerly Osha)
Storyteller and Cenedrils - 190,219 PA R/M - 196,201 PA S/R
I upload vids now and then
https://www.youtube.com/channel/UCaaIokqEpV_7X7NTi_bADlg

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.
Callmepapabear - Erebos (Formerly Osha)
Storyteller and Cenedrils - 190,219 PA R/M - 196,201 PA S/R
I upload vids now and then
https://www.youtube.com/channel/UCaaIokqEpV_7X7NTi_bADlg