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
TEVENTS - item triggers
Author Message
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #3
RE: TEVENTS - item triggers
I'll post it all...

Code:
[ITEMDEF 0df0]
//Black Staff
//Using fencing type below
DEFNAME=i_staff_black
TYPE=T_WEAPON_MACE_STAFF
FLIP=1
DAM=12,14
SPEED=37
SKILL=MaceFighting
REQSTR=35
TWOHANDS=Y
VALUE={6 8}
WEIGHT=4
DUPELIST=0df1
TEVENTS=e_undead_damage
SKILLMAKE=CARPENTRY 75.0, t_carpentry
CATEGORY=Provisions - Weapons
SUBSECTION=Staves
DESCRIPTION=Black Staff

ON=@Create
    HITPOINTS={50 60}

[EVENTS e_undead_damage]
ON=@Damage
   serv.b works
   if <src.brain>==brain_undead
      src.damage <eval <argn1>*2>,<argn2>,<uid>
      serv.b done
      return 1
   endif
   return 0
I want it for silver weapons actually, the black staff is an example. But those weapons will be maces, swords, forks, etc.

If the typedef is the only way, I might coppy under every silver weapon the on=@damage.
(This post was last modified: 07-10-2013 04:29 AM by Alaric.)
07-10-2013 04:28 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
TEVENTS - item triggers - Alaric - 07-10-2013, 03:37 AM
RE: TEVENTS - item triggers - darksun84 - 07-10-2013, 03:59 AM
RE: TEVENTS - item triggers - Alaric - 07-10-2013 04:28 AM
RE: TEVENTS - item triggers - darksun84 - 07-10-2013, 04:31 AM
RE: TEVENTS - item triggers - Alaric - 07-10-2013, 04:40 AM

Forum Jump:


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