Welcome to the Builder Academy

Question Trigger of the Day - Shopkeeper open/close

More
23 Jul 2013 18:17 #3530 by Rumble
This is a simple shopkeeper behavior trigger. this way the shop is only open while the mob is in the room (she goes upstairs to sleep at night). She also locks and unlocks the pickproof door for only a few seconds so I loaded a quest item into her room for an assembly trig too.
Code:
Name: 'Mob Wait Until Example', VNum: [ 43], RNum: [ 43] Trigger Intended Assignment: Mobiles Trigger Type: Global Random , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * Shopkeeper only works 6-9 then goes upstairs to sleep. The door is locked * without a key so the player has to follow the mob and be quick about it. * Closing time wait until 21:00 emote looks sleepy. wait 3 s yawn wait 10 s say I'm closing up, have a nice day. wait 10 s emote works her way up the stairs and unlocks the door. * Remove the locked and pickproof flags. %door% 225 up flags ab wait 2 s open door wait 2 s up wait 5 s * Close the door and lock/pickproof it. emote closes and locks the door behind %self.hisher%. %door% 367 down flags abcd wait 10 s emote gets ready for bed. wait 20 s sleep wait until 06:00 wake wait 1 s stand say It's morning already! wait 3 s yawn wait 10 s emote goes about her business getting ready for the day. wait 20 s emote unlocks the door. %door% 367 down flags ab wait 3 s open door wait 1 s d wait 3 s %door% 225 up flags abcd
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds