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 04-27-2006, 12:27 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

I retire what i said about warrior. That quest works, but writing it like this is so risky that i wouldn't advise it to a perl beginner (inverse the tests and write 'if (plugin::check_handin(\%itemcount,6461=>1) && ($class eq "Warrior")) {' and it won't work anymore... but well...

Anyway, for that same quest, try to give the item 6461 plus another item, the one you want, and the npc won't return you the extra item.
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #2  
Old 06-23-2006, 03:13 PM
Grundy
Sarnak
 
Join Date: Jun 2006
Posts: 38
Default

ehh too much typing i'd just do this

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 6164 => 1)) {
    if ( ($class == "Warrior") || ($class == "Paladin") || ($class == "Shadow Knight") || ($class == "Berserker") ) {
      quest::summonitem(62189);
    }
    if ( ($class == "Monk") || ($class == "Beastlord") ) {
      quest::summonitem(6611);
    }
    if ( ($class == "Druid") || ($class == "Shaman") || ($class == "Necromancer") || ($class == "Wizard") || ($class == "Magician") || ($class == "Enchanter") ) {
      quest::summonitem(29422);
    }
    if ( $class == "Cleric" ) {
      quest::summonitem(29442);
    }
    # probably add something for rogues, bards, and rangers
    quest::exp(750);
    quest::emote("smiles warmly as he hands you your weapon.");
    quest::ding();
  }
  else {
    plugin::return_items(\%itemcount); 
    quest::say("These are not the pieces I need.");
  }
}
Reply With Quote
  #3  
Old 06-23-2006, 03:19 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

Just to throw yet another solution to the same problem out:

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 6164 => 1)) {
    my %rewards = (
      "Warrior" => 62189, "Paladin" => 62189, "Shadow Knight" => 62189,
      "Monk" => 6611, "Beastlord" => 6611,
      "Cleric" => 29442,
      "Druid" => 29422, "Shaman" => 29422, "Necromancer" => 29422,
      "Wizard" => 29422, "Magician" => 29422, "Enchanter" => 29422
    );
    if(defined($rewards{$class})) {
      quest::summonitem($rewards{$class});
      quest::exp(750);
      quest::emote("smiles warmly as he hands you your weapon.");
      quest::ding();
    }
  }
  else {
    plugin::return_items(\%itemcount); 
    quest::say("These are not the pieces I need.");
  }
}
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:23 AM.


 

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