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
Moveblock and spell-interrupt
Author Message
wuffel
Apprentice
*

Posts: 28
Likes Given: 0
Likes Received: 4 in 2 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Moveblock and spell-interrupt
Hi,
i need litte help with two problems...

First Question: I want a monster, which is "starting to get into fight" to wait a specific time. This means i want to set tag.nomovetill... when a monster sees a new player (and has no target before) and is starting to fight him. Is there any trigger for this?

Second Question: I want to make some "class-features". So i scripted a few spells which enhance those classes. Is there a way to tell a spell to "not" interrupt the current action? The "class-features" are always-working, never-failing spells. After a mana-check they are instantly used. At this time i work with them in the "@select"-trigger in the spell-definition.
I know i could script a kind of spellbook with all the class-features in it, but for many reasons i want the class-features in our custom spellbooks. So: Is there a way to have spells (or a trigger at the spells) which are not interrupting the current action like swordsman or archery?
05-24-2014 08:01 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Moveblock and spell-interrupt
For the first one: Both triggers @Attack and @CombatAdd with a return 1 can prevent a combat from starting the time you want.

For the second one: Interrupt in spell's definition is what handle this, can't remember exactly how they work but setting them to 100 or 0 will make spells to never fail, so you can specify when to fail or not.
05-24-2014 08:05 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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