20 lines
746 B
Plaintext
20 lines
746 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oXringR = GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oPC);
|
||
|
object oXringL = GetItemInSlot(INVENTORY_SLOT_LEFTRING, oPC);
|
||
|
string sXring = "fr_iwd_xring00";
|
||
|
object oTarget = GetWaypointByTag("fr_iwd_swall_exit");
|
||
|
|
||
|
if(GetIsPC(oPC)==TRUE)
|
||
|
{
|
||
|
if((GetTag(oXringR) == sXring) || (GetTag(oXringL) == sXring))
|
||
|
{
|
||
|
effect eEffect = EffectVisualEffect(VFX_IMP_BREACH, FALSE);
|
||
|
DelayCommand(0.3, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC, 0.7));
|
||
|
DelayCommand(1.0,AssignCommand (oPC, JumpToObject(oTarget)));
|
||
|
SendMessageToPC(oPC, "You are able to walk trough the magical wall of ice, and proceed to the other end of the tunnel.");
|
||
|
}
|
||
|
}
|
||
|
}
|