Code:
Name: 'Mob Quest Example Load 8ball - 22', VNum: [ 189], RNum: [ 188]
Trigger Intended Assignment: Rooms
Trigger Type: Enter , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Check if the 8ball is already in the room. If not load it.
* I know this only checks the first item in the room, I don't really care. KISS
if %self.contents.vnum% != 47
%load% obj 47
end
wait 2 sec
%echoaround% %actor.name% A magic eight ball drops from the sky striking %actor.name% on the head.
%send% %actor% A magic eight ball drops from the sky striking you on the head.
%damage% %actor% %random.5%
Code:
Name: 'TBA Magic Eight Ball Check - 26', VNum: [ 188], RNum: [ 187]
Trigger Intended Assignment: Mobiles
Trigger Type: Leave , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Check to see if the person is not carrying the magic eight ball
if !%actor.has_item(47)%
* They are not carrying it. So stop them and give them one.
* Return 0 ignores their command to go west. They stay in the room.
return 0
wait 1 sec
say You forgot your magic eight ball. Take this one.
* Loads the object to the actors inventory.
%load% obj 47 %actor%
%send% %actor% %self.name% gives you the magic eight ball.
end
If this was helpful please
vote
or leave a
review
for TBA.