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-20-2006, 05:52 AM
warklantd
Fire Beetle
 
Join Date: Apr 2003
Posts: 13
Default Quest Doesn't work 100%

Can someone tell me what I did wrong on this? The handin works, it gives you experience. But then it says:
No such Item:757
And the quest completion text doesn't come up.

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("When Malious raided the towns, like a coward I ran...Not a day goes by that I don't think about the pain I must have caused my family. Now I am stuck here doomed to a death among the beings of this realm. If I had my [sword] surely I could fight my way out. But alas it is gone.");
}
if($text=~/sword/i){
quest::say("The Sword my father gave me, it has been handed down in my family for generations. You look like a strong young man. If you could find my sword and return it to me, I would reward you with one of my most prized posessions.");
}
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 05013 => 1,)) {
quest::say("Thank you sir, You have returned with my trusty sword. The moment I set eyes on you, I knew you were different. I am a man of my word, my most prized possesion. I hope it will help you in your adventures. "); }
quest::summonitem(01365);
quest::exp(20000);
}
}

Item 01365 is FBSS and is in the DB. I can #summon it. Hopefully it's not anything too noobie, but this is really the first quest I have made that rewards items and exp
Reply With Quote
  #2  
Old 04-20-2006, 06:04 AM
bleh
Fire Beetle
 
Join Date: Jul 2002
Posts: 10
Default

In perl, a leading zero indicates an octal representation. Be careful of "01365" versus "1365."
Reply With Quote
  #3  
Old 04-20-2006, 06:45 AM
warklantd
Fire Beetle
 
Join Date: Apr 2003
Posts: 13
Default

Hey Thanks Bleh, weird how something so simple could mess my whole quest up, Works perfect now
Reply With Quote
  #4  
Old 04-20-2006, 08:38 AM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

might want to put your quest::summonitem(); inside the if statement. he might just take anything you hand him and reward you with an item and xp.
Reply With Quote
  #5  
Old 04-21-2006, 12:44 AM
Richardo
Banned
 
Join Date: Oct 2003
Location: Mattmecks Basement
Posts: 546
Default

if (plugin::check_handin(\%itemcount, 05013 => 1,))\

may be easier to us this..

if ($itemcount{5013} => 1)

and Ylosh

sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 05013 => 1,))
{ <==========
quest::say("Thank you sir, You have returned with my trusty sword. The moment I set eyes on you, I knew you were different. I am a man of my word, my most prized possesion. I hope it will help you in your adventures. "); }
quest::summonitem(01365);
quest::exp(20000);
}
}

it has an opening bracket so it will only respond the current functions if that specific item was given.

Last edited by Lexen1; 04-21-2006 at 08:46 AM..
Reply With Quote
  #6  
Old 04-21-2006, 02:56 AM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

i copied/pasted your quest file into a generic testnpc on my server and it gives xp and fbss when anything is handed in.

You say, '#si 1001'
You gain experience!!
[GM] You have gained 0 AXP and 829781195 EXP (851337473).
You say, '#si 5013'
Testnpc says 'Thank you sir, You have returned with my trusty sword. The moment I set eyes on you, I knew you were different. I am a man of my word, my most prized possesion. I hope it will help you in your adventures. '
You gain experience!!
[GM] You have gained 0 AXP and 829801195 EXP (851337473).
Reply With Quote
  #7  
Old 04-21-2006, 03:09 AM
warklantd
Fire Beetle
 
Join Date: Apr 2003
Posts: 13
Default

Thanks for the replies guys. Like I said, I'm new to the quest thing, trying to learn. I appreciate the help
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 08:56 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