Code:
Name: 'Mob Blocks opening of chest', VNum: [ 207], RNum: [ 207]
Trigger Intended Assignment: Rooms
Trigger Type: Command , Numeric Arg: 100, Arg list: o
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Make sure the command is open, check for any abbrev of chest
if %cmd.mudcommand% == open && chest /= %arg%
* findmob checks if the mob is in the room.
if %findmob.230(189)%
%echoaround% %actor% As %actor.name% tries to approach the chest the commander looks up.
%send% %actor% As you approach the chest the commander looks up at you.
wait 1 sec
%echo% The commander says, 'Get away from there.'
else
* If the commander is not in the room allow the "open chest" command to continue to the next command trigger.
return 0
end
else
* If it doesn't match let the command continue.
return 0
end
for TBA.