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 11-20-2004, 08:01 PM
jimm0thy
Sarnak
 
Join Date: Jul 2002
Posts: 71
Default Problem with quest ...

Ok heres whats happening ... the npc will respond to 1 phrase and then gets broken (after the first phrase he will simply return my default hail message)

Also Im not sure if I have the item turn in code correct or not ... any help would be appriciated.

Code:
sub EVENT_SAY
{
 if ($text=~/Hail/i){quest::say("Hail to you $name. You look like a [young druid].");}

 if ($text=~/young druid/i){quest::say("Well then you've come to the right place. As your druidic blacksmith it is my duty to outfit young ones such as yourself. If you [assist] me I will reward you with a very nice mace.");}

 if ($text=~/i will assist you/i){quest::say("Excellent! I require you to go out into the Faydark and return to me with one of the following items. A Black Wolf Skin , A Forest Drakeling Scales , A Rust Mace , and A Giant Wasp Drone Pollen. When you return I shall give you the mace.");}

}

sub EVENT_ITEM

{
 if ($itemcount{13758} && $itemcount{20270} && $itemcount{6011} && $itemcount{20290} == 1){quest::say("Nice work druid. Now as I said here is your mace , use it well.");
 quest::exp(150)
 quest::summonitem(3431);}
}
Reply With Quote
  #2  
Old 11-20-2004, 08:30 PM
Xorith
Sarnak
 
Join Date: Nov 2004
Posts: 52
Default

Quote:
Code:
if ($itemcount{13758} && $itemcount{20270} && $itemcount{6011} && $itemcount{20290} == 1)
Try this:
Code:
if( $item1 == 13758 && 
    $item2 == 20270 &&
    $item3 == 6011 &&
    $item4 == 20290 )
I also refer you to this:
http://www.eqemulator.net/forums/viewtopic.php?t=12020
-- Xorith
Reply With Quote
  #3  
Old 11-21-2004, 12:35 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

you should use the equal operation in all variables,not only at the end
Reply With Quote
  #4  
Old 11-21-2004, 05:20 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

Yeah, plus you're using itemcounts where they obviously don't need to be. Such a use would be like this:


if ($itemcount{13758} == 1 && $itemcount{20270} == 2 && $itemcount{6011} == 3 && $itemcount{20290} == 5){
quest::dowhatever....blahblah

itemcount is for stacks of items, $item[no] is used for single item turnins. To make your quest work, this is what I believe it should look like:


sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Hail to you $name. You look like a [young druid].");
if($text=~/young druid/i){
quest::say("Well then you've come to the right place. As your druidic blacksmith it is my duty to outfit young ones such as yourself. If you [assist] me I will reward you with a very nice mace.");
if($text=~/i will assist you/i){
quest::say("Excellent! I require you to go out into the Faydark and return to me with one of the following items. A Black Wolf Skin , A Forest Drakeling Scales , A Rust Mace , and A Giant Wasp Drone Pollen. When you return I shall give you the mace."); }
}

sub EVENT_ITEM {
if($itemcount{13758} == 1 && $itemcount{20270} == 1 && $itemcount{6011} == 1 && $itemcount{20290} == 1){
quest::say("Nice work druid. Now as I said here is your mace , use it well.");
quest::exp(150);
quest::summonitem(3431); }
}


That should work for you, but please let me know.
Reply With Quote
  #5  
Old 11-21-2004, 07:38 AM
Xorith
Sarnak
 
Join Date: Nov 2004
Posts: 52
Default

Or basically what I said at first. LOL.
Reply With Quote
  #6  
Old 11-21-2004, 07:46 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

You showed him how to achieve the $item[no] way, I showed him how to use what he had properly. So no, not what you said at all.
Reply With Quote
  #7  
Old 11-21-2004, 04:41 PM
jimm0thy
Sarnak
 
Join Date: Jul 2002
Posts: 71
Default

Thanks for the help so far , Ive gone over the guide to perl quests posts and this one and the code ... however it still dosent work. My zone.exe outputs an error of "missing right quote or bracket in line 17. End of line 17"
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 07:44 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