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
Verifying tevents with serv.chardef
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
Verifying tevents with serv.chardef
I´m trying to check is one of my npcs has one tevent installed on him.

For example:

serv.chardef.c_zombie.istevent.e_undead

Return me an error, I wish to get a 1 if the zombie has the tevent, or a 0, if he doesn´t. Any suggestions?
On a living zombie, istevent works wonderful, but it seems that doesn´t work from serv.chardef
(This post was last modified: 12-21-2013 03:20 AM by Gil Amarth.)
12-21-2013 03:18 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: Verifying tevents with serv.chardef
<serv.chardef.c_zombie.tevents> + manual check?
12-21-2013 03:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: Verifying tevents with serv.chardef
I hoped it would be possible be resolved with istevent.

I resolved it with a custom function, if anybody is interested:

Quote:[FUNCTION F_STRING_COMPARATION] // <ARGV[0]> String to find, <ARGV[N]> Strings to Compare,
FOR X 1 <ARGV>
IF (STRMATCH(<ARGV[0]>,<ARGV[<LOCAL.X>]>))
RETURN 1
ENDIF
ENDFOR
RETURN 0
(This post was last modified: 12-21-2013 04:08 AM by Gil Amarth.)
12-21-2013 04:07 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Verifying tevents with serv.chardef
info Wink


Very much a work in progress, currently halted while all the new variable stuff gets sorted out, but that version will list events, tevents and tags on whatever you target.

[Image: 2nis46r.jpg]
12-21-2013 06:41 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
Post Reply 


Forum Jump:


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