Changed folder name.
Changed folder name.
This commit is contained in:
34
_module/nss/dodragon.nss
Normal file
34
_module/nss/dodragon.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
//Put this script OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
CreateItemOnObject("colorwand", oPC, 1);
|
||||
CreateItemOnObject("ibag", oPC, 1);
|
||||
CreateItemOnObject("namingtool", oPC, 1);
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectVisualEffect(VFX_FNF_IMPLOSION);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT)
|
||||
DelayCommand(0.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
||||
else
|
||||
DelayCommand(0.2, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
||||
|
||||
}
|
Reference in New Issue
Block a user