Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
19
_module/nss/fr_iwd_xsdoor.nss
Normal file
19
_module/nss/fr_iwd_xsdoor.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user