32 lines
871 B
Plaintext
32 lines
871 B
Plaintext
|
//Script Name: ikill
|
||
|
//////////////////////////////////////////
|
||
|
//Created by: Genisys / Guile
|
||
|
//ON: 7/29/08
|
||
|
/////////////////////////////////////////
|
||
|
/* **Notes**
|
||
|
This is an NPC OnSpawn Event Script
|
||
|
Basically it autodestroys the NPC.
|
||
|
*/
|
||
|
////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oSelf = OBJECT_SELF;
|
||
|
|
||
|
//Have the NPC Greet the PC..
|
||
|
DelayCommand(0.8, AssignCommand(oSelf, ActionSpeakString(
|
||
|
"Let me take care of that for you.", TALKVOLUME_TALK)));
|
||
|
|
||
|
//Have the NPC Bid the PC Farewell
|
||
|
DelayCommand(29.4, AssignCommand(oSelf, ActionSpeakString(
|
||
|
"Hope that fixed you up, farewell friend.", TALKVOLUME_TALK)));
|
||
|
|
||
|
//Have the NPC Bow when they leave
|
||
|
DelayCommand(29.5, AssignCommand(oSelf, ActionPlayAnimation(
|
||
|
ANIMATION_FIREFORGET_BOW)));
|
||
|
|
||
|
|
||
|
//Kill myself after 25 seconds once I have been spawned
|
||
|
DelayCommand(30.0, DestroyObject(oSelf, 0.0f));
|
||
|
}
|