Dont know if this is the right place for this, sorry if it isn't, but here goes...
I am trying to make a KEI casting NPC and have "developed" the following script ... problem is, it is not working.
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::castspell($userid,2570);
}
}
or
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.");}
if($platinum == 50)
{
quest::castspell($userid,2570);
}
}
none of them are working ... anyone got any ideas?