Thread: Script help
View Single Post
  #1  
Old 08-13-2006, 11:19 AM
herold's Avatar
herold
Sarnak
 
Join Date: Jan 2004
Location: Denmark
Posts: 58
Default Script help

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?
Reply With Quote