Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2009, 02:15 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default NPC sells AA points

This is a quest I am using on my server that seems to work fine for a level 70. It takes 2k and gives the player 5 aa's. It also fixes a problem that is caused by the experience somehow lowering the player's level.

Code:
#NPC takes 2k And gives 5 AA points to a level 70
sub EVENT_SAY{
if ($ulevel >=70){
 if ($text =~/hail/i){
 quest::say("Hello, I have heard that AA exp moves rather slowly on this server, so I am here to take advantage of that and sell level 70s [AA].");
 }
 if ($text =~/AA/i){
 quest::say("Yes, it is two-thousand platinum for 5 AAs. You must be level 70 and have AA experience turned on to 100% or it will not work!");
 }
}
 else{
 quest::say("You must be level 70 before I can help you.");
 } 
}

sub EVENT_ITEM{
 if ($ulevel >=70){
  if ($platinum ==2000){
  quest::exp(4067240000);
  quest::level(70);
  }
 if ($platinum !=2000){
 quest::say("That's the wrong amount.");
 quest::givecash($copper,$silver,$gold,$platinum );
 }
 }
 if ($ulevel <=69){
 quest::say("Reach level 70 first.");
 quest::givecash($copper,$silver,$gold,$platinum );
}
}
Reply With Quote
  #2  
Old 04-03-2009, 02:59 AM
Iwasseridium
Fire Beetle
 
Join Date: Mar 2009
Location: fsdgfsfgsagfasd
Posts: 24
Default

This quest reverts players back to level 70 how can I fix it so they stay at their level?
Reply With Quote
  #3  
Old 04-03-2009, 05:11 AM
MNWatchdog
Hill Giant
 
Join Date: Feb 2006
Posts: 179
Default

Quote:
Originally Posted by Iwasseridium View Post
This quest reverts players back to level 70 how can I fix it so they stay at their level?
Remove:

quest::level(70);


should fix your problem.
Reply With Quote
  #4  
Old 04-03-2009, 10:57 AM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

Pretty cool. Thanks for sharing.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
  #5  
Old 04-03-2009, 08:48 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

The reason it sets the player's level to 70 is because there were problems with giving such a large amount of experience. On my server, it would set the person to about level 50 after they paid, so I just had it automatically relevel them. Just set it to be whatever level you want people to be for the quest.
Reply With Quote
  #6  
Old 05-01-2009, 12:29 AM
Justsomeguy
Fire Beetle
 
Join Date: Apr 2005
Posts: 7
Default

better off actually using a setaa quest command instead of exp method. There may be a quest object already available. if not, I'll write a quick quest command unless someone beats me to it.
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 06:17 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