Sylaei
11-28-2008, 06:37 PM
I am wanting to log the activities of my quests. Such as char name, items turned in etc. I have tried adding the perl statements to log to a text file. Also tried using a sub. My quest broke in both cases.
What I would like todo, if there isn't already a way to do it, is to place a log sub in the plugins folder and call the log like this:
plugin::log($name);
Question 1: Can we add other subs to the plugins folder and get them read by the server?
Question 2: Why didn't this work? or What error is lurking here?
sub log
{
open FH, ">> test.log" or die $!;
print FH @_;
return 1;
}
Also, the server is running on debian and my permissions are set to allow the quest folder to be writeable by anyone.
Any thoughts or ideas are appreciated.
Thanks,
What I would like todo, if there isn't already a way to do it, is to place a log sub in the plugins folder and call the log like this:
plugin::log($name);
Question 1: Can we add other subs to the plugins folder and get them read by the server?
Question 2: Why didn't this work? or What error is lurking here?
sub log
{
open FH, ">> test.log" or die $!;
print FH @_;
return 1;
}
Also, the server is running on debian and my permissions are set to allow the quest folder to be writeable by anyone.
Any thoughts or ideas are appreciated.
Thanks,