begin SnakeOilEffectshort OnPCEquipshort CurseAddedfloat Timerif ( CurseAdded )set Timer to ( Timer + GetSecondsPassed )if ( Timer >= 5 ) ; after 5 s remove the spell.set Timer to 0Player->RemoveSpell "_Mk_snakeoil"set CurseAdded to 0endifendifif ( OnPCEquip );when item is equippedif ( MenuMode )elseif ( CurseAdded == 0 )Player->AddSpell "_Mk_snakeoil" ; a spell of type curse!;custom spell blindset Timer to 0set CurseAdded to 1set OnPCEquip to 0elseif ( CurseAdded ) ; Add the spell only oncePlayer->RemoveSpell "_Mk_snakeoil"set CurseAdded to 0endifendifend SnakeOilEffect