Code:
Name: 'Mob Death Purges Equipment', VNum: [ 44], RNum: [ 44]
Trigger Intended Assignment: Mobiles
Trigger Type: Death , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Purge all inventory first.
say You damn whipper snappers. You may have beat me this time, but my equipment goes only to those who deserve it.
emote donates everything.
eval i %self.inventory%
while %i%
set next %i.next_in_list%
%purge% %i%
eval i %next%
done
* While we have an equipment slot, purge that too.
eval i 0
while %i% < 18
eval item %self.eq(%i%)%
if %item%
%purge% %item%
end
eval i %i%+1
done
for TBA.