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 07-01-2010, 12:54 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default Quest Problem

I can not seem to get part of this simple quest to work. The hand in works flawlessly but the refund section is not working. If any amount of platinum is turned in it is refunded no matter what the amount....the problem is that it is making the AA's completely free. I am pretty sure the logic is correct but the implementation seems to be a problem and I am not sure how to fix it. If someone could point me in the right direction it would be greatly appreciated.

Code:
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 25K platinum for 5 AAs or 50k platinum for 10 AAs or 75k platinum for 15 AAs or 100k platinum for 20 AAs or 125k platinum for 25 AAs or 150k platinum for 30 AAs or 175k platinum for 35 AAs or 200k platinum for 40 AAs or 225k platinum for 45 AAs or 250k platinum for 50 AAs or . 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 ==25000){
  $client->AddAAPoints(5);
}
  elsif ($platinum ==50000){
  $client->AddAAPoints(10);
}
  elsif ($platinum ==75000){
  $client->AddAAPoints(15);
}
  elsif ($platinum ==100000){
  $client->AddAAPoints(20);
}
  elsif ($platinum ==125000){
  $client->AddAAPoints(25);
}
  elsif ($platinum ==150000){
  $client->AddAAPoints(30);
}
  elsif ($platinum ==175000){
  $client->AddAAPoints(35);
}
  elsif ($platinum ==200000){
  $client->AddAAPoints(40);
}
  elsif ($platinum ==225000){
  $client->AddAAPoints(45);
}
 elsif ($platinum ==250000){
  $client->AddAAPoints(50);
  }
}
 if ($platinum != 25000 || 50000 || 75000 || 100000 || 125000 || 150000 || 175000 || 200000 || 225000 || 250000){
 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
 


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