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-nmm6 (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-nmm6 (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-nmm6 (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
NPC AI, interesting events, functions...
Author Message
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #3
RE: NPC AI, interesting events, functions...
Here's a mean event you can add to one of your bosses.

add this to the ON=@CREATE

EVENTS=+e_evil_curse

And add this seperately as a new evet and item

[EVENTS e_evil_curse]

ON=@GETHIT
////Adjust 350 to set health bracket
IF <HITS> < 350
SRC.NEWITEM=i_curse_timer
SRC.ACT.BOUNCE
SRC,ACT.EQUIP
SOUND=496
EVENTS=-e_evil_curse
SAY In Jux Xen
Return 0
ENDIF

[ITEMDEF i_curse_timer]
NAME=Delay Teleport
ID=i_handr_1
TYPE=T_EQ_SCRIPT

ON=@Create
ATTR=attr_invis|attr_decay
///MORE1 is the timer
MORE1=5

ON=@Equip
TIMER=1

ON=@Timer
// Take the effect we would like.
if ( <CONT> )
if ( <MORE1> )
////remove the cont.say line to remove counter above head.
CONT.SAY <MORE1>
MORE1 -= 1
TIMER=1
return 1
else
///when timer runs out, This happens
CONT.EMOTE Get Horriably Cursed
SOUND=531
///Sets hits to 1
CONT.HITS=1
remove
endif
endif
// normal timer fall through is to delete the item
remove
return 1

That'll spice up an event or make a good champion Big Grin
02-22-2013 09:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: NPC AI, interesting events, functions... - UltimaAku - 02-22-2013 09:50 AM

Forum Jump:


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