Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2009, 10:46 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default Player tracker?

I want to set up a little quest which would track when a player levels up and write that information into a text file on server side.

The practical usage for this is for example to give award to say first warrior to reach level 50

Could you guys help me out?
Reply With Quote
  #2  
Old 07-14-2009, 06:36 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

quest::write(file,string)

Can save any info you want to a txt file this way.
Reply With Quote
  #3  
Old 07-14-2009, 08:32 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

ok this is what I have put together for player.pl

Code:

sub EVENT_LEVEL_UP 
{
        
	if($ulevel==50)
	{

	$client->Message(15, "You've achieved level 50!");

        my $string=" $name the $class has achieved level $ulevel ";

        quest::write("50.txt", $string);

}

does this looks right?

Also does quest::write includes some sort of time stamp when it makes an entry into a file?

thanks!
Reply With Quote
  #4  
Old 09-18-2009, 07:26 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Try this:

Code:
$timestamp = localtime(time);
quest::write("LevelTrack.txt","[$timestamp] : $name the $class has achieved level $ulevel.");
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 09-18-2009, 11:23 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

thanks Trev! I will try this out today!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:01 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3