Initial Upload
Initial Upload
This commit is contained in:
38
_module/nss/rift_enter.nss
Normal file
38
_module/nss/rift_enter.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
void Repeat(object oPC)
|
||||
{
|
||||
|
||||
location lPC= GetLocation(oPC);
|
||||
|
||||
int nEffectNumber = Random(2);
|
||||
|
||||
switch (nEffectNumber)
|
||||
{
|
||||
case 0:
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), lPC);
|
||||
break;
|
||||
case 1:
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_RAISE_DEAD), lPC);
|
||||
break;
|
||||
}
|
||||
int nPC = GetLocalInt(oPC,"rift");
|
||||
if(nPC==1)
|
||||
{
|
||||
DelayCommand(20.0, Repeat(oPC));
|
||||
}
|
||||
else return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (GetIsDM(oPC)) return;
|
||||
|
||||
SetLocalInt(oPC,"rift",1);
|
||||
Repeat(oPC);
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user