This example .pl script from
gitbook does not work on my server (Titanium Client):
Quote:
sub EVENT_ITEM_CLICK {
#:: Use == for numeric comparison to Item ID 54711 - Evil Eye Costume Kit
if ($itemid == 54711) {
#:: Change the player's race to 469 - Evil Eye
quest::playerrace(469);
}
}
|
I tested this by summoning item ID 54711, which gave me the Evil Eye Costume Kit. Then I tried to right click the Evil Eye Costume Kit but nothing happens.
I have tried swapping out the item_id for other items, such as Staff of the Serpent, but that doesn't work either. Yes, I have remembered to change the scriptfileid on the item to match the name of the script (in this case, the script is named script_30073.pl so I gave it a scriptfileid of 30073.
I even tried this using the .lua version of the script but I am having absolutely no luck with this.
Am I doing something glaringly wrong or could this be a deeper issue? Please advise. Thank you <3