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.

ruisen2000

not a wallet warrior

  • "ruisen2000" started this thread

Posts: 4,052

Location: here

Mood: Blink

  • Send private message

1

Thursday, February 12th 2015, 6:39am

Is there a macro to cancel t-storm it if is casted out of range?

I'm currently using a macro to cast t-storm where my mouse is at instead of clicking on t-storm, then having to click an extra time on the ground where i would like to cast it. However, if I accidentally cast it out of range, the t-storm is not cancelled. The circle would still be on the ground and I cannot cast any spells until I hit esc to cancel it t-storm.

Is there a macro to prevent this, so that t-storm is automatically canceled if I accidentally cast it out of range?
Thanks.
ruisen2000 has attached the following images:
  • out of range tstorm.jpg
  • tstorm macro.jpg
Noblewarrior
lv 98/98/89/60 M/W/P/K
Kikosi 98/50/60 Wl/Ch/M
the fail clothie tank~

Inactive

2

Thursday, February 12th 2015, 7:58pm

You and your macros Noble.. lol xD

I've already worked a miracle for you once for that custom swap gear macro you wanted, I'll see if I can possibly work up another one :P


It seems to me though that just hitting esc would be the easiest thing to do, but to each their own :)

I'm still tinkering with that "Surge of Awareness" auto cast on target macro you guys were all talking about in another thread >.< I'm starting to think its just plain not possible.
Xaldyn

100 Mage / 100 Warrior

Aeterna Aggropit



Nobody wants the kind of 'kiss up' that I can clearly see you detest

ruisen2000

not a wallet warrior

  • "ruisen2000" started this thread

Posts: 4,052

Location: here

Mood: Blink

  • Send private message

3

Thursday, February 12th 2015, 9:25pm

Its mainly a problem in PvP. I get ganked by rogues alot while t-storm has me disabled from casting spells lol. And I always aim it too far by accident. I don't know how Cloaked does it... in all his siege videos, I've never seen him cast it out of range once 8|

Unchecking click to move avoids this issue, but I can't stand playing without click to move lol. Not sure if there's a way to disable it for just tstorm.
Noblewarrior
lv 98/98/89/60 M/W/P/K
Kikosi 98/50/60 Wl/Ch/M
the fail clothie tank~

Inactive

4

Friday, February 13th 2015, 12:36am

I'm still tinkering with that "Surge of Awareness" auto cast on target macro you guys were all talking about in another thread >.< I'm starting to think its just plain not possible.
You just simply leave your cursor where you want it to cast and alt-tab away :)

5

Friday, February 13th 2015, 12:37am

Doesn't right-clicking anywhere cancel things like that?

6

Friday, February 13th 2015, 1:20am

I tinkered around a littie bit, I believe this should do the trick for you :)

Source code

1
2
3
4
5
/script GC_SetMouseMoveEnable(false)
/script CastSpellByName("Thunderstorm")
/wait .001
/script SpellTargetUnit("")
/script GC_SetMouseMoveEnable(true)


Basically undoes click to move, casts TS, and re-enables click to move very quickly

JarretGov

Trainee

Posts: 64

Location: Jay, Me

Occupation: Training Coordinator, DSP, Bouncer, Cook, Stagehand and Rock Star

Mood: Cursing

  • Send private message

7

Friday, February 13th 2015, 1:49am

You and your macros Noble.. lol xD
ikr Noble wants to macro the world!!

8

Friday, February 13th 2015, 8:20am

I'll have to try this out myself
New Sig Eventually

I Solo'd Horatio Tia 7-28-2012

9

Friday, February 13th 2015, 9:44am

As far as I understand the problem, the issue seems to be the targeting circle still being visible after using the macro, not the movement.

For that there's an easy solution:

Source code

1
2
3
4
5
/cast Thunderstorm
/wait .1
/run SpellTargetUnit()
/wait .1
/run if SpellIsTargeting() then SpellStopCasting() end

10

Friday, February 13th 2015, 5:45pm

As far as I understand the problem, the issue seems to be the targeting circle still being visible after using the macro, not the movement.

For that there's an easy solution:

Source code

1
2
3
4
5
/cast Thunderstorm
/wait .1
/run SpellTargetUnit()
/wait .1
/run if SpellIsTargeting() then SpellStopCasting() end


This was the first route I tried but SpellIsTargeting did not seem to recognize TS as it did all the other skills. I figured it had to do with it being a placeable skill. With click to move disabled you simply get a Target is too far away error so I just went that route.

11

Friday, February 13th 2015, 6:14pm

Oh, ok... also tried just "SpellStopCasting()" without the if clause?

12

Friday, February 13th 2015, 6:46pm

Yes, SpellStopCasting() will stop Thunderstorm. But it would need a check so it didn't cancel thunderstorm if it was successfully casting. I ended up adding a check for cast time that worked, but if I tried to cast it out of range I would end up running towards the spot for a short time and personally didn't like this happening. Also I wanted it to be usable with things that require no cast time such as a rogue's enlivened blade (which I use myself) so I just kept it as simple as possible. :)

13

Friday, February 13th 2015, 7:40pm

AFAIK SpellStopCasting() doesn't actually stop casts - it just cancels the "targeting" mode. but its been a while since ive worked with that function so im not 100% sure

ruisen2000

not a wallet warrior

  • "ruisen2000" started this thread

Posts: 4,052

Location: here

Mood: Blink

  • Send private message

14

Saturday, February 14th 2015, 12:52am

thanks guys, I love the new macros :)
You and your macros Noble.. lol xD
ikr Noble wants to macro the world!!
Lies!! I don't have that many of them >_>
Noblewarrior
lv 98/98/89/60 M/W/P/K
Kikosi 98/50/60 Wl/Ch/M
the fail clothie tank~

Inactive