Welcome to the Builder Academy

Question Trigger of the Day - Bartender

More
24 Jun 2012 12:44 - 25 Jun 2012 09:49 #229 by Rumble
By Axanon and Fizban

The first time you walk into the bar (on a reset) the bartender will give you a free drink and remember you so you don't get one again (until the zone resets).
Code:
if %actor.is_pc% && %direction% == south if %actor.level% < 5 say You're too young to be in here! wait 1 s say GET LOST!!! %force% %actor% s wait 2 s shout AND STAY OUT! else context %actor.id% if %actor.is_pc% && %serve% != 1 emote nods at %actor.name%. say Welcome! wait 2 s switch %random.3% case 1 say Have a free shot on the House. %load% obj 55267 %actor% inv emote slides a shotglass to you from across the bar. %force% %actor% drink shot break case 2 say Have a free beer on the House. %load% obj 55268 %actor% inv emote slides a mug to you from across the bar. %force% %actor% drink mug break default say Have a free ale on the House. %load% obj 55269 %actor% inv emote slides a tankard to you from across the bar. %force% %actor% drink tankard break done set serve 1 global serve end end end
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
Last edit: 25 Jun 2012 09:49 by Rumble.

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

Time to create page: 0.196 seconds