Setglobal Question:
Very quick question, which I believe should have an easy answer if it's possible.
Code:
sub EVENT_DEATH { Just looking for an idea on how this might be done. Appreciate any suggestions. |
Anytime I want to keep track of an event, I simply use the following:
Code:
quest::write("bossdeaths.txt","$mname was killed by $name the $class."); |
Wow, I had no idea there was such a quest::command! I must've skipped over it in the list. That's near enough to what I need, actually. If I need a timestamp, I can check the time the file was last modified after it's been written to. Thanks a ton! =)
|
Quote:
Since we are using Perl, we have the benefits of all that Perl offers, including time & localtime. If you wanted to define a variable $timestamp to have the current time, you could add this to your quest: Code:
$timestamp = localtime(time); Code:
quest::write("bossdeaths.txt","[$timestamp]: $mname was killed by $name the $class."); |
Sweet! That worked perfectly!
Here is a test quest: Code:
#test quest Code:
[Fri Jun 27 21:41:56 2008]: Trevazar, the Warrior, hailed Larren000 |
All times are GMT -4. The time now is 06:07 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.