I have evolved the code to the following, but still it does not work...
Code:
sub EVENT_SAY
{
if($text=~/Hail/i){quest::say("Greetings $name. If you pay me 50 platinum pieces, I will cast Koadic's Endless Intellect on you.");}
}
sub EVENT_ITEM
{
if($platinum == 50)
{
quest::selfcast(2570,$userid);
}
}
A friend of mine suggested that the NPC class is irrelevant ... ie. enchanter vs. warrior ... is this true?
And last but not least, I am trying to put the script on Nayr Cogswin on PoK (warrior, gnome - by the soulbinder) ... if he has to be an enchanter, where exactly do I change that? I tried looking under the table "npc_types" (in MySQL Control Center 0.9.2-beta ... which as far as I can see only loads 1000 entries/rows), but again with no luck...