Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- object oTarget = GetFirstObjectInArea(OBJECT_SELF);
- int iCheck = 0;
- while (GetIsObjectValid(oTarget))
- {
- if(GetIsPC(oTarget))
- {
- iCheck = 1;
- break;
- }
- else if (GetIsDM(oTarget))
- {
- iCheck = 1;
- break;
- }
- else if (GetIsDMPossessed(oTarget))
- {
- iCheck = 1;
- break;
- }
- oTarget = GetNextObjectInArea(OBJECT_SELF);
- }
- if(iCheck != 1)
- {
- oTarget = GetFirstObjectInArea(OBJECT_SELF);
- while (GetIsObjectValid(oTarget))
- {
- if(GetObjectType(oTarget) == OBJECT_TYPE_CREATURE)
- {
- DestroyObject(oTarget);
- /*
- eDam = EffectDamage(iDamage, DAMAGE_TYPE_ACID);
- SetLootable(oTarget, FALSE);
- ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
- */
- }
- oTarget = GetNextObjectInArea(OBJECT_SELF);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement