Warking
02-04-2016, 07:51 AM
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:
Unable to find NPC to send EVENT_TASKACCEPTD to. Report this bug.
Below is the npc.pl 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
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:
Unable to find NPC to send EVENT_TASKACCEPTD to. Report this bug.
Below is the npc.pl 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