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
Timer isn't being called
Author Message
Fake Lunk
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #1
Timer isn't being called
Hi everyone, in the script below I'm trying to create an object which checks the death condition of the player. However, When the timer completes, it doesn't get to the trigger. so the script stops before that. Anyone might wonder why the @Timer isn't being called?

ps: this script is supposed to work when the player is dead, in case this info is relevant.

thanks everyone

Code:
//**************************************************//
//**************************************************//
//************        EVENTS       ************************//
//**************************************************//
//**************************************************//

[EVENTS e_morte]
ON=@DeathCorpse

    //reduz ponto de desmaio
    //SRC.TAG.FAINT-= 1
    
    //removes food status
    findid.i_food_status.remove
    
       //in case there is any death status (just for tests)
    findid.i_death_status.remove
    
    serv.newitem i_death_status
    new.link= <SRC.UID> //this makes the player the link of the item
    
//**************************************************//
//**************************************************//
//************        ITENS *****************************//
//**************************************************//
//**************************************************//

    
[ITEMDEF i_death_status]
    id=i_memory
    name= Death Status
    type=t_eq_script


ON=@Create
serv.b item created //just for test
Timer= 3
serv.b o tempo é <timer>


ON=@Timer
serv.log timer called //just for test
LINK.say death status is working //just for test
Timer= 3
remove
return 1
06-20-2012 04:42 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Timer isn't being called - Fake Lunk - 06-20-2012 04:42 PM
RE: Timer isn't being called - Shaklaban - 06-20-2012, 09:13 PM
RE: Timer isn't being called - Fake Lunk - 06-20-2012, 11:04 PM
RE: Timer isn't being called - Fake Lunk - 06-24-2012, 05:30 AM
RE: Timer isn't being called - Shaklaban - 06-24-2012, 05:49 AM
RE: Timer isn't being called - Fake Lunk - 06-24-2012, 05:55 AM
RE: Timer isn't being called - Shaklaban - 06-24-2012, 10:45 AM
RE: Timer isn't being called - Fake Lunk - 06-25-2012, 05:01 AM

Forum Jump:


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