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
typedef question
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #16
RE: typedef question
Ahhh I thought you got that sorted out already.

There doesn't need to be any code in the typedef... just declare it, then apply it to the items you want to have it like this:

Code:
[ITEMDEF 01410]
DEFNAME=i_platemail_arms
TYPE=t_armor
FLIP=1
WEIGHT=5
REQSTR=80
RESOURCES=18 i_ingot_iron
SKILLMAKE=Blacksmithing 66.3
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Arms
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=10
TAG.ResPhysical=5
TAG.ResFire=3
TAG.ResCold=2
TAG.ResPoison=3
TAG.ResEnergy=2
DUPELIST=01417
TEVENTS=t_plate
ON=@Create
   COLOR=color_o_iron
   HITPOINTS={36 48}

...although your code might need to change to check TEVENTS instead of TYPE.

Another way to accomplish the result is using an item TAG (if you put the TAG above the @create then all items of that type already in game will have it.)
09-05-2012 09:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
typedef question - daedelus - 08-31-2012, 01:07 PM
RE: typedef question - Skul - 08-31-2012, 02:34 PM
RE: typedef question - daedelus - 08-31-2012, 09:44 PM
RE: typedef question - Extreme - 09-01-2012, 02:29 AM
RE: typedef question - daedelus - 09-01-2012, 03:42 AM
RE: typedef question - Extreme - 09-01-2012, 05:48 AM
RE: typedef question - daedelus - 09-05-2012, 08:15 AM
RE: typedef question - daedelus - 09-01-2012, 07:46 AM
RE: typedef question - Extreme - 09-01-2012, 08:55 AM
RE: typedef question - Mordaunt - 09-01-2012, 11:53 AM
RE: typedef question - daedelus - 09-03-2012, 09:52 PM
RE: typedef question - Shaklaban - 09-03-2012, 10:00 PM
RE: typedef question - Mordaunt - 09-04-2012, 03:37 AM
RE: typedef question - RanXerox - 09-05-2012, 08:52 AM
RE: typedef question - daedelus - 09-05-2012, 12:32 PM
RE: typedef question - daedelus - 09-05-2012, 09:27 AM
RE: typedef question - RanXerox - 09-05-2012 09:41 AM
RE: typedef question - RanXerox - 09-05-2012, 12:48 PM
RE: typedef question - daedelus - 09-05-2012, 10:05 PM

Forum Jump:


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