The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freeze on cast
Author Message
Indiaret
Apprentice
*

Posts: 45
Likes Given: 3
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #1
Freeze on cast
Hi,

trying to do an ability when you have more damage with spells while you turn on this ability, but want to do you cannot move while casting spells with turned on ability. Its risky ability for more damage. So that's my problem. Cannot solve 'freeze on cast' with turned on ability.

Tried Statf_Freeze - cannot be used, because then I cannot use bandages, potions and more stuffs that i want to. That is undiserable.

In old sphere there was @step for characters, but sadly not exists here.

Have one solution ... through tag (1/0 - on/off) i create item with timer which controlls my position change. It works somehow, but not so clear and clever as you can see in the code below.


I would appreciate if somebody have better solution on my case.

Thank you very much

12-05-2019 04:14 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Freeze on cast
try using the hardcoded TAG.NoMoveTill

Code:
ON=@SpellCast
TAG.NoMoveTill=<eval <SERV.TIME>+<ARGN3>>

or to make the code more reliable you must also handle spell fail/abort

Code:
ON=@SpellCast
TAG.NoMoveTill=<eval <SERV.TIME>+10000>

ON=@SpellSuccess
TAG.NoMoveTill=

ON=@SpellFail
TAG.NoMoveTill=
12-05-2019 08:04 AM
Find all posts by this user Like Post Quote this message in a reply
Indiaret
Apprentice
*

Posts: 45
Likes Given: 3
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #3
RE: Freeze on cast
It works ! Amazing, elegant and simple, thank you Coruja.
12-06-2019 08:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)