WOW I finally got this afters hours on end of looking up random scripts trying commands ugh! If ANYONE has the same problem with $userid heres what I did to get it to work.
Quote:
sub EVENT_COMBAT {
if ($combat_state == 1) {
quest::setnexthpevent(95);
quest::shout ("test test test");
}
}
sub EVENT_HP
{
if($hpevent == 95)
{
quest::shout ("HELP HELP HELP");
quest::castspell(5451,$targetid); }
}
|
seems (spellid,$targetid) did the trick. Thanks for everyones help.