View Single Post
  #5  
Old 03-06-2010, 12:20 AM
RichardoX
Hill Giant
 
Join Date: Dec 2004
Location: in your closet....
Posts: 169
Default

Trevius, I compiled the most recent binaries and tried your example that you just gave me and it didn't work. Gave me the following error:

[Status] Script error: qst999237::EVENT_SPAWN - Perl runtime error: Can't locate object method "SendAppearanceEffect" via package "NPC" at quests/frozenshadow/999237.pl line 2.

Edit: I compiled the latest binaries and it doesn't give this error anymore however now it's a whole different issue; It simply doesn't do anything. Do I need to update something else in plugins or something?

Edit: Ok after prodding around, I remender sendappearance for making an npc lay, or sit doesn't work in EVENT_SPAWN so I tried the following -

Code:
sub EVENT_SPAWN {
quest::settimer("pp1", 1);
}

sub EVENT_TIMER {
if($timer eq "pp1") {
$npc->SendAppearanceEffect(55, 33, 52);
	}
}
and it worked..
__________________
a hill giant slashes YOU for 25 points of damage!
You have been slain!
LOADING, PLEASE WAIT...
Reply With Quote