38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: FileName giveyotinhallkey
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Script Wizard
|
||
|
//:: Created On: 13/3/2003 PM 8:31:56
|
||
|
//:://////////////////////////////////////////////
|
||
|
void main()
|
||
|
{
|
||
|
// Give the speaker the items
|
||
|
CreateItemOnObject("yotincityhallkey", GetPCSpeaker(), 1);
|
||
|
|
||
|
{
|
||
|
|
||
|
string sTemplate;
|
||
|
string sItem;
|
||
|
object oSpawnPoint;
|
||
|
object oThug;
|
||
|
int nIdx;
|
||
|
location lLoc;
|
||
|
|
||
|
sTemplate = "GOA";
|
||
|
|
||
|
for(nIdx = 1; nIdx <= 3; nIdx++)
|
||
|
{
|
||
|
lLoc = GetLocation(GetNearestObjectByTag("WP_GOAEND" + IntToString(nIdx)));
|
||
|
oThug = CreateObject(OBJECT_TYPE_CREATURE,sTemplate,lLoc);
|
||
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES),lLoc);
|
||
|
}
|
||
|
|
||
|
effect eVis = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY);
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis,OBJECT_SELF);
|
||
|
DestroyObject(OBJECT_SELF,0.5f);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|