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 01-25-2013, 11:14 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default Perl Issue.

My NPC is not handing out tasks like I want him to, he sends the text before, but no task selector, any one know how to fix this?

Code:
sub EVENT_SAY
{

	my $task = quest::saylink("task", 1);

	
	if($text=~/Hail/i)
	{
		plugin::Whisper("Hello, $name, would you like a Tier 3 $task?");
		if(quest::istaskactivityactive(271,1)) 
		{
			quest::say("Good job, here, take 50 Medallions for your hard work!");
			quest::updatetaskactivity(271,2,1);
			quest::summonitem(1118,50);
			quest::ding();
		}
		elsif(quest::istaskactivityactive(272,1)) 
		{
			quest::say("Good job, here, take 10 Medallions for your hard work!");
			quest::updatetaskactivity(272,2,1);
			quest::summonitem(1118,10);
			quest::ding();
		}
	}
	
	elsif($text=~/Task/i)
	{
		plugin::Whisper("Take your pick, come back to me when you have completed your task.");
		quest::taskselector(271, 272);
	}
}
Reply With Quote
  #2  
Old 01-26-2013, 01:04 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Would be nice if someone could help with this, really need this to work for players. Thanks.
Reply With Quote
  #3  
Old 01-26-2013, 01:22 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Sorry for the triple post. D: Didn't want to make a new topic, but there are no Loot rights as well? You can kill a mob and a person not in your group can loot it with no wait time, anyone have thoughts on this or the Perl? Thanks! ~Harbinger Zamthos
Reply With Quote
  #4  
Old 01-26-2013, 01:26 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

I ran this on my server and it worked fine.

I suspect you may have an issue in your task table.
Reply With Quote
  #5  
Old 01-26-2013, 02:16 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

All right.


Tasks:
Code:
272	0	Boss Clear	Kill all the bosses and recieve 50 medallions	Medallions	1118	0	0	0	284	0	0	1
271	0	T3 Task	Kill these mobs, and recieve medallions.	Medallions	1118	0	0	0	284	0	0	1
Activities:
Code:
272	2	2	4	Commander Alex Tavish			999259	0	1	0	284	0
272	1	1	2			Destroy the 8 normal bosses within this zone for 20 medallions.	204	1	8	0	284	0
271	2	2	4	Commander Alex Tavish			999259	0	1	0	284	0
271	1	1	2			End Zun`Muram Votal's life.	284080	0	1	0	284	0
Reply With Quote
  #6  
Old 01-26-2013, 02:25 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Added Tasks and Activities to previous post if that helps any.
Reply With Quote
  #7  
Old 01-26-2013, 03:31 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

So I don't see anything wrong. D:
Reply With Quote
  #8  
Old 01-26-2013, 06:23 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

http://www.eqemulator.net/wiki/wikka...SystemDBTables
Quote:
activityid
The activities for a task must be numbered consecutively from 0 through to the maximum number of activities per task. There should be no gaps or the server will ignore the task. (i.e. having a task with activities numbered, 1,2,3,7,9 and 10 will not work. If you have a task with 6 activities, the activity records MUST have activityids of 0, 1, 2, 3, 4 and 5.
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 03:29 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