Israfel

Israfel

Joined
May 16, 2008

Activity Stream

Israfel commented on a Page, Weather Changer  -  Jun 12, 2008

So what that code will do, is change the varialble %time to whatever i change it as via !time?

IE Time = midnight
I say \"!Time Morning\"
Variable time becomes Morning?

 Respond  
Israfel created a Page  -  Jun 03, 2008
788 

Ok, what i am trying to do is get it so what when i type something (Like !time midnight) It would change the variable %time to Midnight.. How would i go about doing that? Hopefully what i have below will kinda give people an idea of what i am looking for.

Israfel commented on a Page, Lots of Kicks!  -  May 22, 2008

UPDATE

I set all the timers to silent timers, so it won\'t flood your screen with timer activation notices. Grab the new code so you don\'t have to do it yourself ^^

 Respond  
Israfel commented on a Page, Roleplaying Bartender  -  May 22, 2008

Yeah, thats almost identical to what i am using now.

sorry if i seem like an idiot.. I literally know nothing about Scripting x.x

That and i am going through a major breakup, sooo life aint on my side atm <<

 Respond  
Israfel commented on a Page, Roleplaying Bartender  -  May 21, 2008

Criminal, i ment based on the Tab system. I am using a different system then the one you were showing me, so it won\'t work the same.

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

Update 2!

alright, i have almost everything working. The bot .Notice\'s people when they come in and tells them about the system, the commands to use the like. i have the Drink list set up, the drinks themselves set up, even the Tabs and Payment system! I have to give PunkTuReD the credit for being able to keep the Tabs system, so i greatly thank you :P

the only thing that ISN\'t working right now is my \"Limit\" system, ergo if someone reaches a certain limit in money (100 silver) then it cuts them off until they pay the bill. I can show you the code

On *:TEXT:!Bloodwine:#: {
  if (% $+ $nick > = 100) {
    .Describe $chan ~The bartender shakes his head and continues wiping down his glasses, \"Sorry there $nick you have racked up too high of a tab. I can\'t serve you anymore untill you pay me.\"
  }
  Else {
    describe $Chan ~ He grasps a large glass from under the counter, a large flat base  pointing  into a long thin stem, branching out in an elegant pattern to support a large bowel.   kneeling down he then lifted a large bottle, wrapped in cord to the bar top, drilling a>> 

    .timer 1 2 describe $Chan ~ Corkscrew inside the bottle. Lifting the bottle off the counter, he  began  pouring the crimson liquid into the glass, letting it settle before sliding it over  to the  drinker, \"Hope that satisfies ya. I\'ll put it on your tab.\"<D>
    .inc % $+ $nick 7
    .Inc %total 
    .timer 1 3 .notice $nick you have a % $+ $nick silver tab running
  }
}

So the part that i am having trouble with is the

if (% $+ $nick > = 100) {
    .Describe $chan ~The bartender shakes his head and continues wiping down his glasses, \"Sorry there $nick you have racked up too high of a tab. I can\'t serve you anymore until you pay me.\"
  }

Part. Even if these people have a tab of 642 it still lets them buy drinks! Its maddening! I mean, whats the point of having a payment system if you can\'t force people to use it!!

So i will break down parts of it so you get the general idea of whats going on

Ok, so when someone types !bloodwine it checks their tab to see if its over 100, if it is, it denies them the drink until they pay for their other drinks. If they have a tab under 100 (Even 99 works) then it gives them the drink, and adds money to their tab (in this case 7 silver) then it adds a 1 to a Total\'s value, which will tell people the total number of drinks ever served on this script. It then .Notice\'s them and tells them what their tab is currently at (Something i will embellish later)

So here is my delema one more time. The bot gives people drinks even though i tell it not to, any tips or tricks on what i may need done?

 Respond  
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  
Israfel commented on a Page, Roleplaying Bartender  -  May 19, 2008

Ok thanks, i\'ll post a Report on how it works ^^

As a side note, none of my timers work, i just get \"unknown command 1\" If i have the timer set as .timer 1 2 /me do this OR .timer 1 2 describe $chan Does This

Regardless, it keeps saying Unknown Command 1. I am building the script for Oasiz, so if anyone is more fammiler with their style of coding then that would be most helpful ^^

And if i wanted it to say different things based on how much they had would i write

 If (%tab. [ $+ [ $address($nick,2) ] ] < 33){
.notice %nick Your tab is pretty low, so don\'t worry about it too much
}
If (%tab. [ $+ [ $address($nick,2) ] ] = 34 - 66) {
.notice $nick Your tab is getting up there, you might want to slow down a little
}
Else (%tab. [ $+ [ $address($nick,2) ] ] > 67) {
.notice $nick Wow mate, your tab is getting really high, you had best pay soon so you don\'t embarras yourself.
}
 Respond  
Israfel commented on a Page, Roleplaying Bartender  -  May 18, 2008

So what the above code should do, is create a Tab system for each person using their Nicknames/Addresses? And would i have to impliment this into EVERY one of the different options? Other then that, how exactly would i go about increasing the Tab value by more then one?

 Respond  
Israfel commented on a Page, Roleplaying Bartender  -  May 17, 2008
On *:TEXT:!ale*:#: {
if (%tab. [ $+ [ $address($nick,2) ] ] >= 100) {
.notice $nick Oya, your tab is to high, pay me before you ask more!
.halt
}
Else {
.msg $chan Ohai have fun with the ale ...
.inc %tab. [ $+ [ $address($nick,2) ] ] 10
.notice $nick You have $calc(100 - %tab. [ $+ [ $address($nick,2) ] ]) tabs remaining
}
}

If you want to change the amount of tabs he receives, just change the 10 to a number you want ( line 8 )

 Respond  
Israfel commented on a Page, Roleplaying Bartender  -  May 16, 2008

So Describe is the eqivilant of using a /me or Action type of text? Cool o.o

As for the Payment thing, what i really want to do is assign each drink with its own value, and every time someone buys a drink, it adds that much to their tab, and using !pay they get rid of their tab and reset the counter for them.

And if i do end up making this, if i wanted to restrict people\'s tabs from going over a certain amount of money, wouldn\'t it go something like

if (%tab >= 100) say Oye, your tab is to high, pay me before you ask for more!

 Respond  
Israfel commented on a Page, Lots of Kicks!  -  May 16, 2008

Ohhh.. See i didn\'t know if there was a difference between /Timer and .Timer

But yeah, even with the longest ones i havn\'t gotten DCed from tImer flood o.o

 Respond  
Israfel created a Page  -  May 16, 2008
1,109 

Well i got bored over a few days and just coded a bunch of kicks. None of these kicks have bans, they all work, and they can easily be added on to, and even come complete with their own menu's ^^

Israfel created a Page  -  May 16, 2008
1,105 

Well, what i have here is a REALLY basic little "Bot" thingy for any Roleplayers out there. It gives out drinks as per the request of the purchiser and has several other amusing options.

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.