Code:
Name: 'Spider Guarding Cacoon', VNum: [ ], RNum: [ ]
Trigger Intended Assignment: Rooms
Trigger Type: Command , Numeric Arg: 100, Arg list: o
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* does not work for level 32 and above.
* Make sure the command is open, check for any abbrev of cacoon
if %cmd.mudcommand% == open && cacoon /= %arg%
* findmob checks if the mob is in the room.
if %findmob.<room vnum>(<mob vnum>)%
%send% %actor% The large, hairy spider blocks you.
%echoaround% %actor% As %actor.name% tries to approach the cacoon but is blocked by the spider.
else
%send% %actor% You open the cacoon and find....
%echoaround% %actor% %actor.name% opens the cacoon.
end
else
* If it doesn't match let the command continue.
return 0
end
for TBA.