View Full Version : Here are my macro's, How can I make them work?
bambooi
06-12-2006, 05:25 AM
1. Premeditation spell and then wait a sec and then cheapshot:
/script c=CastSpellByName; c('Premeditation'); SpellStopCasting(); c('Cheap Shot');
2. Stealth if moving, if not moving then summon mount:
/run UseContainerItem(0,1)
/run local _,_,active,castable=GetShapeshiftFormInfo(1)if not active and castable then CastShapeshiftForm(1)end
How can I make this spell work with the new patch?
Dynatos
06-12-2006, 06:20 PM
1.
/castsequence Premeditation, Cheap Shot
2. I don't think it's possible since it's making a dynamic decision.
SkipsH
06-12-2006, 07:44 PM
I thought that dynamic decisions were only impossible to make in combat and not out of?
brandondash
06-12-2006, 08:23 PM
1) castsequence requires that you hit the button more than once. In addition, that macro is very flimsy in terms of conditionals. You can write it to take into account whether you have a target, whether that target is hostile, and whether you are in stealth.
2) There is no way in the new scripting language to determine if you are moving. Refer here (https://forums.worldofwarcraft.com/thread.html?topicId=51896128&sid=1) for verification and more information.
Dynatos
06-12-2006, 08:43 PM
1) castsequence requires that you hit the button more than once. In addition, that macro is very flimsy in terms of conditionals. You can write it to take into account whether you have a target, whether that target is hostile, and whether you are in stealth.
2) There is no way in the new scripting language to determine if you are moving. Refer here (https://forums.worldofwarcraft.com/thread.html?topicId=51896128&sid=1) for verification and more information.
Well, ya, you could add conditionals - but what's the point? Adding the [harm] conditional when you can't use the abilities on someone friendly anyway is, well, pointless.
But, for the hell of it, I'll make a couple improvements:
/castsequence [harm,stealth] reset=120 Premeditation, Cheap Shot
It will only work if you are stealthed and targeting a hostile mob. Press it once for Premeditation and a second time for Cheap Shot. If, for some reason, it sticks after Premedidation (i.e., you don't use Cheap Shot), the macro will reset after 2 minutes to allow you to use Premed again.
You could modify it even further and do something like:
/cast [modifier:shift,harm,stealth] Cheap Shot
/castsequence [nomodifier,harm,stealth] reset=120 Premeditation, Cheap Shot
So now, when you click the button, you'll get the original macro. If you hold shift while clicking the button, you'll just Cheap Shot.
brandondash
06-12-2006, 09:13 PM
Well, ya, you could add conditionals - but what's the point? Adding the [harm] conditional when you can't use the abilities on someone friendly anyway is, well, pointless.
It's simply a matter of getting into good habits so that when it DOES matter you won't code something lazy and embarrass yourself. =)
Sihrfalas
16-12-2006, 04:45 AM
/cast Premeditation
/stopcasting
/cast Cheap Shot
the second will not work since you can't bind keys to/based on movements any more i don't think
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.