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 02-04-2016, 07:51 AM
Warking
Hill Giant
 
Join Date: Mar 2012
Location: Norrath
Posts: 132
Default Task/Quest Syntax help request

This is probably a simple fix but I have been all over the Wiki and forums and I am still missing what needs to be done here.

I keep Getting the below error when a task is enabled. I created the task through the EoC and it works fine, except for this request error:

Code:
Unable to find NPC to send EVENT_TASKACCEPTD to. Report this bug.
Below is the npc.pl code

Code:
sub EVENT_TASKACCEPTED
{
quest::say("You accepted task $273");
quest::say("You accepted task $274");
}

sub EVENT_SAY
{
if ($text =~/Hail/i)
 {
quest::say ("[test]! [testE]! Listen to this [song] .");
 }
 if($text=~/test/i)
{ 
plugin::AssignTask("solo", 273); #::: This will enable task 273
plugin::MM("test " . $name . "!"); #::: This will push a client side Yellow message in the screen
} 
if($text=~/testE/i)
{ 
plugin::AssignTask("solo", 274); #::: This will assign solo Kill task 274
quest::say ("test");
plugin::MM("test"); #::: This will push a client side Yellow message in the screen
} 
#The below statement will play a song to the client. "
if($text=~/song/i){
$client->PlayMP3("compton.mp3");
}
}
#The below setion handles how a character hands in the items for the task.  This will grant a small amount of exp and give grp currency on turn in
sub EVENT_ITEM
{
if(plugin::check_handin(\%itemcount, 132492 => 1))
  {
  quest::say("test!");
  quest::exp(20);
  quest::summonitem(132491);
  }
}
#End of File - erudinnext test.pl NPC_Type ID:xxxxx
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 07:47 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3