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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EVENTS TEVENTS on items
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
EVENTS TEVENTS on items
Hey guys, hope you are all alright.. i need some help with this.

as i understan TEVENTS is only for ITEMDEFS, its not possible to remove a tevent from an item ingame.
im trying to make a itemidentification system based on the fallowing...
when an item has special props which is defined in a function already scripted i want this item when created in the world to have a new color, remove all events, also tooltip clilocs and be unequipeable... but i have problem creating events for items, even when items wiki tells i can add a new a new event with events +e_whatever i suppose, do i have to make the event defname as event or typedef??

this is what i have already, i had to use a global event for players so any suggestions would be great.
Code:
[EVENTS E_NEEDSITEMID]

ON=@ITEMCREATE
IF (<ARGO.HASSPECIALPROPS>)
IF (<ARGO.NSPECIALPROPS> > 1)
SERV.NEWITEM <SERV.ITEMDEF.<ARGO.ID>.BASEID>
NEW.COLOR 0AF4
NEW.NAME UNKNOWN <STRSUB 2 <EVAL STRLEN(<ARGO.TYPE>)-1> <ARGO.TYPE>>
NEW.WEIGHT <ARGO.WEIGHT>
NEW.EVENTS // dunno what to put here
ARGO.REMOVE
ENDIF
ENDIF

//[TYPEDEF OR EVENTS EVENT]????
ON=@ItemEquipTest
RETURN 1

ON=@ItemClientTooltip
ACT.ADDCLILOC 3000575

i want this item to have the shape of the original item, have that black HUE and be unequipeable, but the most important thing is it only shows the clilock shown in the code.

thanks in advance.
(This post was last modified: 09-21-2014 04:54 AM by kn4tseb.)
09-21-2014 04:51 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
EVENTS TEVENTS on items - kn4tseb - 09-21-2014 04:51 AM
RE: EVENTS TEVENTS on items - Extreme - 09-21-2014, 05:37 AM
RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014, 07:33 AM
RE: EVENTS TEVENTS on items - Ben - 09-21-2014, 07:39 AM
RE: EVENTS TEVENTS on items - Extreme - 09-21-2014, 07:43 AM
RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014, 08:05 AM
RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014, 09:23 AM
RE: EVENTS TEVENTS on items - Extreme - 09-21-2014, 09:27 AM
RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014, 10:13 AM
RE: EVENTS TEVENTS on items - Extreme - 09-21-2014, 11:36 AM

Forum Jump:


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