//////////////////////////////////////////////////////////////////////////////// // Stink Trigger // opw_stinktrigger // By Don Anderson // dandersonru@msn.com // // Place this script in the Trigger OnEnter Event // //////////////////////////////////////////////////////////////////////////////// void main() { object oPC = GetEnteringObject(); object oTrig = OBJECT_SELF; location lTarget = GetLocation(oPC); //Stink Bomb Available int nStink = GetLocalInt(oTrig,"STINK"); if(nStink == 0) { SetLocalInt(oTrig,"STINK",1); //Stink Bomb effect eAOE = EffectAreaOfEffect(AOE_MOB_TYRANT_FOG,"NW_S1_Stink_A"); //Create the AOE object at the selected location ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, RoundsToSeconds(2)); DelayCommand(240.0,SetLocalInt(oTrig,"STINK",0)); } }