View Single Post
  #2  
Old 04-23-2015, 09:25 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Wrong forum. Should be in Quest:Q & A, just fyi.

Code:
sub EVENT_ITEM_CLICK {
	if ($itemid = xxxx) {
		$client->LearnRecipe(xx);
	}
}
Save with script_xxxx.pl in your /quests/global/items directory.

Ensure the item has a script number which coincides with whatever you put in place of xxxx (for script_xxxx.pl).

Not quite sure if it will work on books, have yet to try it, though at the moment I cannot think of why it wouldn't.
Reply With Quote