57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
void main()
|
|
{
|
|
object oRune1 = GetObjectByTag("RuneStoneI");
|
|
object oPede1 = GetItemPossessor(oRune1);
|
|
if(GetTag(oPede1) != "MagicalPedestal1")
|
|
return;
|
|
|
|
object oRune2 = GetObjectByTag("RuneStoneII");
|
|
object oPede2 = GetItemPossessor(oRune2);
|
|
if(GetTag(oPede2) != "MagicalPedestal2")
|
|
return;
|
|
|
|
object oRune3 = GetObjectByTag("RuneStoneIII");
|
|
object oPede3 = GetItemPossessor(oRune3);
|
|
if(GetTag(oPede3) != "MagicalPedestal3")
|
|
return;
|
|
|
|
object oRune4 = GetObjectByTag("RuneStoneIV");
|
|
object oPede4 = GetItemPossessor(oRune4);
|
|
if(GetTag(oPede4) != "MagicalPedestal4")
|
|
return;
|
|
|
|
object oRune5 = GetObjectByTag("RuneStoneV");
|
|
object oPede5 = GetItemPossessor(oRune5);
|
|
if(GetTag(oPede5) != "MagicalPedestal5")
|
|
return;
|
|
{
|
|
string sAncient = "ancientamuletofp";
|
|
object oGreater = GetObjectByTag("GreaterPedestal");
|
|
CreateItemOnObject(sAncient, OBJECT_SELF, 1);
|
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 1.0, 6000.0);
|
|
effect eRes = EffectVisualEffect(VFX_IMP_RESTORATION_GREATER);
|
|
location lRes = GetLocation(oGreater);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRes, lRes, 1.0f);
|
|
|
|
effect eHeal = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY);
|
|
|
|
location lHeal1 = GetLocation(oPede1);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal1, 1.0f);
|
|
DestroyObject(oRune1, 0.0);
|
|
location lHeal2 = GetLocation(oPede2);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal2, 1.0f);
|
|
DestroyObject(oRune2, 0.0);
|
|
location lHeal3 = GetLocation(oPede3);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal3, 1.0f);
|
|
DestroyObject(oRune3, 0.0);
|
|
location lHeal4 = GetLocation(oPede4);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal4, 1.0f);
|
|
DestroyObject(oRune4, 0.0);
|
|
location lHeal5 = GetLocation(oPede5);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal5, 1.0f);
|
|
DestroyObject(oRune5, 0.0);
|
|
|
|
}
|
|
}
|
|
|