Battledale_PRC8/_module/nss/jw_aishab_hb.nss

24 lines
748 B
Plaintext
Raw Permalink Normal View History

void main()
{
if (GetLocalInt(OBJECT_SELF,"beendone"))
{}
else
{
SetLocalInt(OBJECT_SELF,"beendone",1);
object oTree=GetObjectByTag("jw_tree");
location lLoc;
lLoc = GetLocation(oTree);
//AssignCommand(oTree,ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,EffectSanctuary(28),lLoc));
AssignCommand(oTree,ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_LIGHT_YELLOW_20),oTree));
AssignCommand(GetObjectByTag("tree_glow"),ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_LIGHT_YELLOW_20),GetObjectByTag("tree_glow")));
AssignCommand(GetObjectByTag("tree_glow"),ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_ELEMENTAL_SHIELD),oTree));
}
RecomputeStaticLighting(OBJECT_SELF);
}