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); }