View Single Post
  #3  
Old 05-23-2009, 02:58 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Thanks Derision. This works great, besides I don't fully understand how can quest::istaskcompleted(Task_ID) be once a value, once a boolean? :p I might miss something though. But afterall, I got it now, thanks!

Code:
sub EVENT_SAY 
{
if ($text =~/Hail/i) 
	{
if (quest::istaskcompleted(20)) {
		quest::say ("Hurray, $name the Orc Slayer!"); }
if (quest::istaskcompleted(20)==0) {
quest::say ("Good day adventurer.. If you are bored enough..I might have a [task] for 

you.");
$client->Message(6, "Foolin grins evilly."); }
	}	

if ($text =~/Task/i && quest::istaskcompleted(20)==0) {
quest::say ("There are too many orcs out there, and it just isn't right. Agree? All you 

have to do is kill some of em, [will] ya?");}
if ($text =~/will/i  && quest::istaskcompleted(20)==0) {
	quest::say ("Good luck. I'll wait for you here.");
	quest::assigntask(20); }

}
Reply With Quote