40 lines
1.7 KiB
Plaintext
40 lines
1.7 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName at_165
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 10/31/2002 1:34:37 AM
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ElementalWater");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ElementalFire");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ElementalAir");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ElementalEarth");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ElementalMagic");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
|
|
location llocation = GetLocation(OBJECT_SELF);
|
|
//Uncomment the ApplyEffectAtLocation lines to enable special effects. Different
|
|
//effects can be used by chaning the VFX_FNF_ lines to a different effect in the
|
|
//constants tab of the script editor.
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_FIRESTORM), llocation);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_STRIKE_HOLY), llocation);
|
|
object oNewMOnster1 = CreateObject(OBJECT_TYPE_CREATURE, "Kryx", llocation, FALSE);
|
|
|
|
DestroyObject(OBJECT_SELF);
|
|
|
|
}
|