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 10-23-2011, 09:12 PM
Baruuk
Sarnak
 
Join Date: Aug 2005
Posts: 64
Default Problem with auto-skills on new characters

Hi guys - I've been trying to correct this for a day or so - but I'm not a Perl programmer, so it may be something simple I'm missing. If I put the below script in a starting zone - say Qeynos or Cabilis - it works perfectly. It increases all player skills to 20 the moment they enter the game for the first time (in that zone). If I put it in the player.pl in c:\eqemu\quests\templates - it doesn't. It gives a brief message in the chat window in game about Swimming being increased to 100 (which actually doesn't happen according to the character's skill window) and doesn't increase anything else. I could simply paste the code from North Qeynos into all starting zones...but that's not the point. I want to learn what I'm doing wrong because I see the potentil in using Player.pl for other reason. Would anyone mind telling me what I'm doing wrong?

Thanks much in advance.

here's the code I have in the player.pl in qeynos2 and other zones:

sub EVENT_ENTERZONE {

if (!defined($qglobals{newchar})){
quest::setallskill(20);
quest::setglobal("newchar", 1, 5, "F");
quest::scribespells(1,1);
}
else{}
}
sub EVENT_LEVEL_UP{
quest::traindiscs($ulevel);
quest::scribespells($ulevel);
$client->Message(5,"Scribing spells and disciplines.");
}

}

Thanks again.
Reply With Quote
  #2  
Old 10-24-2011, 06:16 AM
Jaekob
Sarnak
 
Join Date: May 2010
Posts: 39
Default

player.pl in the templates folder will only work if player.pl does not already exist in the zone you are referencing. Most starting zones already have a player.pl for some ldon scripts. Stick your file in templates, but then go an check each starting city and add the script to the existing player.pl, should fix you problem.
Reply With Quote
  #3  
Old 10-24-2011, 10:00 AM
Baruuk
Sarnak
 
Join Date: Aug 2005
Posts: 64
Default

Excellent - thanks for your reply. That makes perfect sense and I will do what you suggest.

Thanks again for your time.
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 10:58 PM.


 

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