Name: 'Purge Dragolos if Zone Incomplete', VNum: [10012], RNum: [ 180]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None
Commands:
* 10012
wait 1 sec
%teleport% %self% 10041
eval dcnt %findmob.10041(10006)%
if %dcnt% > 0
while %dcnt% > 0
wait 1 sec
%zoneecho% 10000 There are %dcnt% in the room.
%purge% dragolos
eval dcnt %dcnt% - 1
done
end
unset dcnt
%purge% %self%
[ Mob (a green imp, VNum 10011):: mpurge: bad argument ]
What I don't understand, is this works perfectly:
Name: 'Purge Gargoyles on Reset', VNum: [10007], RNum: [ 175]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None
Commands:
* 10007
wait 1 sec
%echo% An imp poofs into the room in a puff of smoke!
set botvnum 10044
set topvnum 10064
while %botvnum% <= %topvnum%
%teleport% %self% %botvnum%
eval gargcount %%findmob.%botvnum%(10005)%%
if %gargcount% > 0
while %gargcount% > 0
wait 1 sec
%purge% gargoyle
eval gargcount %gargcount% - 1
done
end
unset %gargcount%
eval botvnum %botvnum% + 1
done
mgoto 10000
%echo% An imp poofs into the room in a puff of smoke!
wait 1 sec
%echo% The imp kneels before you and thanks you for his existence.
wait 1 sec
%echo% The imp leaves as quick as he came.
%purge% %self%
Both triggers are almost the same as to how the mob gets purged, yet I don't understand why it's not working.

