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 08-21-2012, 11:44 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I modified the script slightly to make people not have max experience and therefore not level up every time they killed something.

Code:
sub EVENT_LEVEL_UP{
  if (!defined($qglobals{maxlevel}) || $ulevel>=$qglobals{maxlevel}) {
   quest::setglobal("maxlevel", $ulevel, 5, "F");
 }
 elsif (!defined($qglobals{kunarkflag}) && $ulevel==51){
  $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 (!defined($qglobals{powerflag}) && $ulevel==60){
  $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 (!defined($qglobals{kunarkflag}) && $ulevel>=52 && $ulevel<=60){
  quest::settimer("delevela", 1);
  $client->Message(5,"You can not yet go past level 51");
  }
elsif (!defined($qglobals{powerflag}) && $ulevel>=61){
  $client->Message(5,"You can not yet go past level 60");
  quest::settimer("delevelb", 1);
 }
 else{}
}
 sub EVENT_TIMER{
  if ($timer eq "delevela"){
   $client->SetEXP(180000000, 0, false);
   $client->SetLevel(51);
   quest::stoptimer("delevela");
  }
  elsif ($timer eq "delevelb"){
   $client->SetEXP(620000000, 0, false);
   $client->SetLevel(60);
   quest::stoptimer("delevelb");
  }
  else{}
}
I'm really having a hard time figuring out and sort of reason why this only works on some characters. I can confirm the people do not have the necessary flags.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:30 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