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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timerf instead of i_memory
Author Message
Art
Journeyman
*

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



Post: #1
timerf instead of i_memory
Hello. Earlier i used old method to put timer to NPC or character, for example, i was creating memory item

[ITEMDEF i_action_timer]
id=i_memory
type=t_eq_script
name=timer

ON=@Timer
bla bla bla

so by that way i need to add new item to script, and add that item to character, to control his actions by timer. But now i found easier way. I can just write 1 function like

[FUNCTION f_action_timer]
bla bla bla
timerf 1, f_action_timer

and can loop that function. I just checked it on NPC and function seems no longer exists if NPC removed, so, seems it's ok. And now here is question - is it safe and ok to use loops of those timerf functions instead of old way with i_memory object?
09-10-2015 03:33 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
timerf instead of i_memory - Art - 09-10-2015 03:33 PM
RE: timerf instead of i_memory - darksun84 - 09-10-2015, 08:12 PM
RE: timerf instead of i_memory - Art - 09-10-2015, 11:27 PM
RE: timerf instead of i_memory - darksun84 - 09-11-2015, 12:35 AM
RE: timerf instead of i_memory - azmanomer - 09-10-2015, 11:53 PM
RE: timerf instead of i_memory - pointhz - 09-11-2015, 12:42 AM
RE: timerf instead of i_memory - darksun84 - 09-11-2015, 12:57 AM
RE: timerf instead of i_memory - pointhz - 09-11-2015, 01:40 AM
RE: timerf instead of i_memory - darksun84 - 09-11-2015, 01:50 AM
RE: timerf instead of i_memory - Art - 09-11-2015, 02:32 AM

Forum Jump:


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