Israfel commented on a Page, Roleplaying Bartender  -  May 20, 2008

Update

Well, i finally got my timers working properly, so the bot runs MUCH smoother now, But i have a few coding problems:

Alright, so i have been trying to get the bot to give me a Tab (There seems to be come confusion about what a Tab is. A tab is essentially a Credit Card. buy your drinks now, but you pay for them later. The Tab refers to how much is owed)

now my problem is that using the %tab variable puts it as a generic variable so someone who didn\'t order a drink, would have a tab, and such. So how would i write an individual tab for everyone? I am not sure, but would it be something like:

On *:JOIN:#:
.Write $nick %tab 0

And then for adding to the tab each time they buy a drink

On *:TEXT:!Ale:#:
.describe $chan Here you go, some fresh Ale
.Read $nick
.inc %tab 5
.notice $nick your tab has reached (.Read $nick(%tab))

And for paying the tab

.describe $chan Takes the money happily
.write $nick %tab 0
.notice $nick Your tab has been erased, Thank you!

Or am I WAY off? I checked the Help Section, and it didn\'t.. Well give me much help...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.