View Single Post
  #7  
Old 04-24-2015, 10:58 AM
dagulus2
Hill Giant
 
Join Date: Feb 2013
Posts: 220
Default

Quote:
Originally Posted by ghanja View Post
Ok, make a statless item, non-book (as I assume you made it a book before) and try:

Code:
sub EVENT_ITEM_CLICK {
	$client->Message(13, "You have clicked this item!");
	if ($itemid == 97749) {
		my $booktext = "Blah blah blah";
		$client->ReadBook($booktext, 1);
		$client->LearnRecipe(11238); #Testing /This is probably not the right recipe id for this item
		$client->Message(13, "You should have learnt recipe 11238.");
	}
}
I'm still not in a testing environment atm else I would, sorry bud.
Ok, an item with itemstype 0 and clickeffect 12484 and the above script works. Thanks for your help!
Reply With Quote