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:
24
_module/nss/fr_placable_ice.nss
Normal file
24
_module/nss/fr_placable_ice.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
if(GetIsPC(oPC) == TRUE)
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"nDone")!=1)
|
||||
{
|
||||
int nIdx=0;
|
||||
object oTarget = GetObjectByTag("fr_statue_ice",nIdx);
|
||||
|
||||
while (GetIsObjectValid(oTarget))
|
||||
{
|
||||
int nType = DURATION_TYPE_PERMANENT;
|
||||
effect eFX = EffectVisualEffect(VFX_DUR_ICESKIN, FALSE);
|
||||
|
||||
ApplyEffectToObject(nType, eFX, oTarget);
|
||||
|
||||
nIdx++;
|
||||
oTarget = GetObjectByTag("fr_statue_ice",nIdx);
|
||||
}
|
||||
SetLocalInt(OBJECT_SELF,"nDone",1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user