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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-20-2012, 10:53 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Help with player.pl

I am having a huge issue with player.pl quests. I'm trying to limit the level globally by using a quest. It seems to only work randomly. I don't know if it is how it is written, but some people are basically immune to it; however, it works properly with other people. I honestly cannot figure it out.
Here is the script..
Code:
sub EVENT_LEVEL_UP{
  if (!defined($qglobals{maxlevel}) || $ulevel>=$qglobals{maxlevel}) {
   quest::setglobal("maxlevel", $ulevel, 5, "F");
 }
 elsif (($ulevel == 51) && (!defined($qglobals{kunarkflag}))){
  $client->Message(5,"Congratulations on reaching level 51! This is the maximum level for the current expansion. It is HIGHLY recommended that you set AA experience to 100 percent until you unlock Kunark. This will avoid any possible bugs resulting from you trying to level beyond 51.");
 }
 elsif (($ulevel== 60) && (!defined($qglobals{powerflag}))){
  $client->Message(5,"Congratulations on reaching level 60! This is the maximum level for the current expansion. It is HIGHLY recommended that you set AA experience to 100 percent until you unlock The Planes of Power. This will avoid any possible bugs resulting from you trying to level beyond 60.");
 }
elsif (($ulevel>51 && $ulevel<60) && (!defined($qglobals{kunarkflag}))){
  quest::settimer("delevela", 1);
  $client->Message(5,"You can not yet go past level 51");
  }
elsif (($ulevel >60) && (!defined($qglobals{powerflag}))){
  quest::settimer("delevelb", 1);
  $client->Message(5,"You can not yet go past level 60");
 }
 else{}
}
 sub EVENT_TIMER{
  if ($timer eq "delevela"){
   $client->SetLevel(51);
   quest::stoptimer("delevela");
  }
  elsif ($timer eq "delevelb"){
   $client->SetLevel(60);
   quest::stoptimer("delevelb");
  }
  else{}
}
Ok now, I have that script copied into every single player.pl in each zone. I have also tried putting it in the global_player.pl in templates, player.pl in templates, both at the same time, using one and not the other, and any combination. No matter what, I cannot get this to affect every character on the server. Also, should I have player and global_player in the templates folder at the same time?
Reply With Quote
 


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 06:02 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3