|
TRP and chaging armour
|
|
12-07-2011, 02:31 PM
Message : #1
|
|||
|
|||
|
TRP and chaging armour
first of I'm from spain so sorry if my english is not the best. I'm sorry also if this is not the proper forum to ask about this.
now my doubt. like a lot of people I do have two different sets of armor. one for when I'm at a city and another for when I go into battle. I would wish to know if there's any way to change TRP states and my armour in a single click. I have been told it's not possible to change the states when you change your clothing and from what I have seen it may be true but is it possible to make an item that changes my armor using LUA so I can use that item to put the armor and the correct states at the same time? how would the code be? I admit my knowledge of LUA is only that it exists and the addons are made with it. I hope somebody can help me. by the way as a suggestion for the developers of TRP2: would it be possible to use a TRP item from a macro? something like /TRP use <name of the item> it would be great but I don't have any idea if it's possible to make this kind of option. |
|||
|
12-07-2011, 10:24 PM
(Ce message a été modifié le : 12-08-2011 12:43 AM par arekku.)
Message : #2
|
|||
|
|||
|
RE: TRP and chaging armour
Yeah sure, I'll get back to it after raid and I can look at my notes.
Equiping items and changing states as a macro Right, you can use EquipItemByName to equip individual items. EquipItemByName(a,b) where a is the item to equip and b is the slot to equip it into However you are probably better of invoking an equipment manager, like for instance the one I use (outfitter) by making a macro like: /outfitter wear set /run TRP2_RemoveAura(a,false) -- a is the aura id to remove /run TRP2_AddAura(a,0,false) -- a is aura to add Or if you are using the blizzard manager /run UseEquipmentSet("name") -- name is the set you are equiping /run TRP2_RemoveAura(a,false) -- a is the aura id to remove /run TRP2_AddAura(a,0,false) -- a is aura to add Equiping items as an TRP2 item Set up states as usual and create a script effect, iether like this: UseEquipmentSet("name") or whatever you equipment manager wants, you also have the option of stacking EquipItemByName(a,b) calls Using TRP2 items from a macro Can be done, but unless Telko knows of an easier way that to invoke TRP2_UseObjet I'd rather skip this one. |
|||
|
12-08-2011, 12:06 PM
Message : #3
|
|||
|
|||
|
RE: TRP and chaging armour
thank you arekku.
using TPR2_AddAura and TPR2_RemoveAura from a macro is far more than what I expected. I believed the only way to add/remove auras at will was using a TPR2 item but if I can use them from a macro it's all I need. even so I would thank if at future versions the author(s) find an easy way to use items from a macro. I think it could be useful. |
|||
|
12-08-2011, 09:17 PM
Message : #4
|
|||
|
|||
|
RE: TRP and chaging armour
Yes, I planned to create some macro for a future version. Thanks Arekku for your help.
Créateur de Total RP 2.
\(^_^)/
Total RP 2 creator.
|
|||
|
12-08-2011, 09:48 PM
Message : #5
|
|||
|
|||
|
RE: TRP and chaging armour
I might be able to sort it out for you in the weekend.
|
|||
|
|
Utilisateur(s) paracourant cette discussion : 1 Guest(s)




