View Single Post
  #1  
Old 12-20-2009, 11:24 PM
mastajon
Sarnak
 
Join Date: May 2008
Posts: 70
Default Item turn in gives task

I am working on a task that requires players to turn in an item to even start it, then later on they turn in another item to get the next part. here is what i have. Is this the correct way to do it, because i do not want players being able to start the task without turning in the needed items.

sub EVENT_ITEM{

if (plugin::check_handin(\%itemcount, 13008 => 1)){ #checks for mead turnin
quest::say("Ah a nice brew, I've been waiting for this for awhile, I would've got one myself but I am not about to do anything that requires work. Since you were so kind to get me this brew I shall reward you with this [$saylink5].");
}

if ($text =~ /platinum coin of metzger/i) {
quest::say("HAHAHAHAHAHAHAHAHA!!! Did you really think I would just give you that? Oh you should have seen the look on your face, it was priceless. But seriously I want you to go out and create my seal to prove to me that you are worthy of such reward.");
quest::taskselector(35);
}
Reply With Quote