Quote:
Originally Posted by ghanja
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!