Thread: Mob Kill Quests
View Single Post
  #4  
Old 10-11-2012, 12:46 AM
Warking
Hill Giant
 
Join Date: Mar 2012
Location: Norrath
Posts: 132
Default

Thanks for the feedback! So I made the below task and assigned an NPC to give the task in the zone. It seems to assign the task into the quest task window just fine. I tested it out and the quest is updating per kill. Will see if the itemID I specified in the goalid is given when the task reaches 20 kills.

Code:
500 0	Destroy the Conscripts	[1,Kill 20 Sarnak Conscripts in the Field of Scale.]	Loot	110273	0	0	2	452	80	85	1


INSERT INTO `activities` (`taskid`, `activityid`, `step`, `activitytype`, `text1`, `text2`, `text3`, `goalid`, `goalmethod`, `goalcount`, `delivertonpc`, `zoneid`, `optional`) 

VALUES 
(500, 0, 1, 2, 'a sarnak conscript', '', '', 452041, 0, 20, 0, 452, 0),


Updated tasksets table  12  500
Quest Giver:

Code:
#Killer Bob NPCID: 999216
#will assign kill quests in the Field of Scale (oldfieldofbone)
#TaskID 500: Destroy the Conscripts- Kill 20 Sarnak Conscripts NPCID: 452041

sub EVENT_SAY 
 {
   if($text=~/hail/i) 
    {  
       quest::say("What do you want?  I [hate] everyone here!");
    }
   if($text=~/hate/i) 
    {  
       quest::say("Oh I hate them all... Look at them!  Hey, would you [like] to kill them for me?");  
    }
   if($text=~/like/i)
    {  
       quest::say("Take your pick of who you want to kill! The [sarnaks]?");  
    }
   if($text=~/sarnaks/i) 
    {  
       quest::say("Good! Now go kill 20 of them!");
	    quest::assigntask(500);  
    }


 }

Edit: Looks like i needed to change the rewardmethod = 0 for the item to be rewarded via the task system
Reply With Quote