MPEXAMPLES3
Keywords:
MPEXAMPLES3
A Officer requires a "Just Visiting" card in order to enter the jail
area. If the person doesn't have it then they cannot enter, but if they
do have it, they can. The card would only be good for one visit though
before they would have to get another one.
In the #MOBILE text file should have:
M grall 3019 100
M delay 3018 100
M give 3017 visiting
In the olc mobile edit:
MOBPrograms for [ 3000]:
Number Vnum Trigger Phrase
------ ---- ------- ------
[ 0] 3019 GRALL 100
[ 1] 3018 DELAY 100
[ 2] 3017 GIVE visiting
#3017
say Your papers seem to be in order.
mob transfer $n 3054
#3019
if isdelay $i
break
else
say Your papers please.
mob remember $n
mob delay 5
endif
#3018
if hastarget $i
say Begone if you do not have your papers!
emote shows you the door.
mob transfer $q 3054
else
mob forget
endif
When you walk into the room where Hassan is you trigger mprog 3019 where
he asks for your papers. If you don't give him your papers within 5
pulses, mprog 3018 kicks in where he tells you to leave and then transfers
you to another location. (To simulate actually showing you out the door)
If you give Hassan something that has the 'name' visiting card then you activate program 3017 and he will transfer you to another location.
If I were going to do something like a Jail, I would make it where there was no physical entrance, just something in the room description where the
jailkeeper mob was that indicated a door. Then if I handed the correct
paperwork to the mob, it would transfer me inside the Jail. Once inside,
just have a one-way exit that would allow someone to leave the jail.