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
magery and npc
Author Message
Q23A
Apprentice
*

Posts: 30
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #4
RE: magery and npc
I have something like this:

[ITEMDEF i_monster_cast]
NAME=Monster cast
ID=i_memory
TYPE=t_eq_script

ON=@CREATE
ATTR=attr_decay|attr_invis

ON=@EQUIP
IF (<MORE2>==101)
TIMERD=34
ELIF (<MORE2>==102)
TIMERD=20
ENDIF

ON=@UNEQUIP

IF (<TAG0.FIZZLE>==1)
RETURN 0
ENDIF

// -===================== if player can see - fizzle ==
IF !(<LINK>==04ffffffff)
IF (!<LINK.CANSEELOS>)
EFFECT 3,14133,5,30,1
RETURN 1
ENDIF
ENDIF


// -========================== Teleport to player ==
IF (<MORE2>==99)
IF (!<LINK.CANSEELOS>)
CONT.P=<LINK.P>
CONT.UPDATE
RETURN 0
ENDIF
ENDIF

// -============================= Attack spells ===
IF (<MORE2>==101)
LINK.SPELLEFFECT s_flamestrike,2000
ELIF (<MORE2>==102)
LINK.SPELLEFFECT s_lightning,2000
ENDIF

ON=@TIMER
REMOVE
RETURN 1
07-19-2012 09:43 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
magery and npc - admin phoenix - 07-19-2012, 05:24 AM
RE: magery and npc - Khaos - 07-19-2012, 06:29 AM
RE: magery and npc - Anarch Cassius - 07-19-2012, 12:42 PM
RE: magery and npc - Q23A - 07-19-2012 09:43 PM
RE: magery and npc - admin phoenix - 07-19-2012, 11:37 PM
RE: magery and npc - darksun84 - 07-20-2012, 12:54 AM
RE: magery and npc - admin phoenix - 07-20-2012, 05:44 AM
RE: magery and npc - Anarch Cassius - 07-20-2012, 07:15 AM
RE: magery and npc - darksun84 - 07-20-2012, 06:07 PM
RE: magery and npc - Anarch Cassius - 07-21-2012, 07:16 AM

Forum Jump:


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