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
Monster Cast Delay
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: Monster Cast Delay
(03-31-2017 04:25 AM)YoAmoElUO Wrote:  Players have delay... but monster is instant cast every spell all the time... that is what i need to fix.

Thanks for open again darksun ^^

Make sure you don't have any events that overrides the NPC's casting speed.
By default the casting time of a spell is used by both NPCs and players.

Code:
[SPELL 5]
DEFNAME=s_magic_arrow
NAME=Magic Arrow
SOUND=snd_spell_magic_arrow
CAST_TIME=50 //Spell will be cast after 5 seconds.
RUNES=IPY
RESOURCES=i_reag_sulfur_ash
RUNE_ITEM=i_rune_magic_arrow
SCROLL_ITEM=i_scroll_magic_arrow
FLAGS=spellflag_dir_anim|spellflag_targ_item|spellflag_targ_char|spellflag_harm|​spellflag_damage|spellflag_fx_bolt|spellflag_resist
EFFECT_ID=i_fx_fireball_small
EFFECT=5,15
DURATION=0.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
INTERRUPT=100.0,100.0
ON=@Effect
   LOCAL.DAMAGETYPE=(<DEF.dam_physical>|<DEF.dam_magic>)
03-31-2017 04:37 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Monster Cast Delay - YoAmoElUO - 03-29-2017, 08:29 PM
RE: Monster Cast Delay - darksun84 - 03-29-2017, 10:20 PM
RE: Monster Cast Delay - darksun84 - 03-30-2017, 06:25 PM
RE: Monster Cast Delay - UltimaGo - 03-31-2017, 12:57 AM
RE: Monster Cast Delay - darksun84 - 03-31-2017, 01:26 AM
RE: Monster Cast Delay - YoAmoElUO - 03-31-2017, 04:25 AM
RE: Monster Cast Delay - UltimaGo - 03-31-2017, 04:28 AM
RE: Monster Cast Delay - darksun84 - 03-31-2017 04:37 AM
RE: Monster Cast Delay - Sum - 04-06-2017, 07:20 AM

Forum Jump:


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