PDA

View Full Version : Possible actions?


TacticSiege
25-07-2007, 07:02 PM
Hello, I am new to this, starting a programming degree in the fall, so I figure I'll develop some WoW enhancements to add a little hobby to schooling.

I know certain things are unable to be done in a mod, like casting 2 spells with one click. I do not know the extent of these limitations tho. I have compiled a list of what I want my UI to do, and wanna see if this is all possible. The 'how' you do it isnt as important as 'can' you do it, but please feel free to toss me a line of code or two if you know an easy solution to my desires.

Here is a list of what I hope to do, please respond with any info as to weither this can or cannot be done.

1. Cycle Thru buffs on a button. So that I can hit a button to cast spell a, next click cast spell b, next click cast spell c, etc.

2. Show/hide buttons when in/out of combat. for example I wish to have my drinks/trade skills only show up as buttons when I am out of combat.

3. 2 buttons that show the EQUIPed trinkets. I am sick of dragging my equipped trinkets to my spellbar each time I change them.

4. A buff/debuff filter. So that I see only the buffs I choose, such as fearward/Fort, and not the stuff I dont care about.

1.2: Similar to Cycle thru buffs, something to cycle thru mana pots, so that I can set it to use all Unstable mana pots before all Super mana pots. This would be cycle thru and also inventory check?

1.3: Similar to 1.2, but for healing spells/items. Desperate Prayer>Health Stone > Different Health stone > Health Pot. This would be Cycle Thru + Inventory Check + Cooldown Check as well.


Thats the long and short of it. Are all of those possible to add to wow? Much thanks for any and all advice, I look forward to modding with ya!:thumbsup:

aspinkorgall
25-07-2007, 08:26 PM
Hello, I am new to this, starting a programming degree in the fall, so I figure I'll develop some WoW enhancements to add a little hobby to schooling.

I know certain things are unable to be done in a mod, like casting 2 spells with one click. I do not know the extent of these limitations tho. I have compiled a list of what I want my UI to do, and wanna see if this is all possible. The 'how' you do it isnt as important as 'can' you do it, but please feel free to toss me a line of code or two if you know an easy solution to my desires.

Here is a list of what I hope to do, please respond with any info as to weither this can or cannot be done.

1. Cycle Thru buffs on a button. So that I can hit a button to cast spell a, next click cast spell b, next click cast spell c, etc.

2. Show/hide buttons when in/out of combat. for example I wish to have my drinks/trade skills only show up as buttons when I am out of combat.

3. 2 buttons that show the EQUIPed trinkets. I am sick of dragging my equipped trinkets to my spellbar each time I change them.

4. A buff/debuff filter. So that I see only the buffs I choose, such as fearward/Fort, and not the stuff I dont care about.

1.2: Similar to Cycle thru buffs, something to cycle thru mana pots, so that I can set it to use all Unstable mana pots before all Super mana pots. This would be cycle thru and also inventory check?

1.3: Similar to 1.2, but for healing spells/items. Desperate Prayer>Health Stone > Different Health stone > Health Pot. This would be Cycle Thru + Inventory Check + Cooldown Check as well.


Thats the long and short of it. Are all of those possible to add to wow? Much thanks for any and all advice, I look forward to modding with ya!:thumbsup:

As a general rule casting spells or "using" items requires hardware input so you can only do these things following direct hardware interaction from the user, such as clicking a button, or pressing a key.

1) Yes you could do this out of combat by reprogramming a button/keybind/macro to cast each desired spell in turn. These things become locked in combat and would result in an error should you try to modify them until combat finishes.

2) As far as I'm aware there is a specific event (check wowwiki.com or the official forums for specifics) that triggers just before the UI is locked down so that you can do final clean ups/changes. I'd expect you could use this to hide such items. Out of combat you can do what you want, mostly.

3) I'm fairly certain I've seen a mod doing this in the past, although I couldn't say that with 100% certainty. I'd have to do some checking on this.

1.2) You could do this out of combat as above, but not in combat. Doing this out of combat would obviously be pretty silly, so I'll say no to this one.

1.3) Again you can do this out of combat, but due to the lockdown you cannot make these decisions programatically.

For 1.2 and 1.3 it might be possibly to carry out such actions. I'll give this a try shortly, but someone else might be able to confirm that.

Hope this helps a little :)

aspinkorgall
25-07-2007, 08:51 PM
I tried this macro (in combat) just now:


/target player
/use Heavy Runecloth Bandage
/use Heavy Netherweave Bandage
/use Netherweave Bandage


Even in combat, it appears to use the first listed item over the others. I tested it by reordering the /use commands and each time it used the top on the list. When an item wasn't available it used the next.

Downside is that it gives you those annoying ui error messages saying that another action is in progress when it tries the other /use's. This can normally be supressed by using /stopcasting but this seems to cause the macro to bug, and one of each of the bandage types gets used up (but only one is channeled into healing).

Aspin.

TacticSiege
26-07-2007, 07:49 AM
Aspin, Thanks for the replies, and the quick test :thumbsup:

I am not afraid to go above and beyond a macro, if some features are possible only with a more robust lua file. I recall using a mod during my leveling days that switched mana pots on me when I ran out of one type, but cant for the life of me remember the name. I could also be totally mistaken by the mods features, its was quiet some time ago.

Im learnin the ropes as I go, but will surely come back and share my results if I can get anything workin.

Xinh
26-07-2007, 07:26 PM
Aspin, Thanks for the replies, and the quick test :thumbsup:

I am not afraid to go above and beyond a macro, if some features are possible only with a more robust lua file. I recall using a mod during my leveling days that switched mana pots on me when I ran out of one type, but cant for the life of me remember the name. I could also be totally mistaken by the mods features, its was quiet some time ago.

Im learnin the ropes as I go, but will surely come back and share my results if I can get anything workin.

There is a mod that will show your equiped Trinkets. It is called TrinketMenu. Regarding mods that would switch your Mana pots when you ran out of one type, I know the mods you are talking about, however most were perma nuked has of Patch 2.0 as they would auto select the best pot. The closest you can get now is Autobar, which will show all your mana pots on mouse over and will change the pots on the button when you run out of the previous best pot.