Top

Chocolate Pie's mIRC Cafe Snippet!


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  3.0
Scores Submitted  1
Date Added  Sep 26, 2007
Last Updated  Oct 06, 2007
Tags  cp  food  mirc  restraunt  snippet 

Introduction

This is my first script yay. I got the format from http://www.hawkee.com/snippet/3142/ because I was a bit confused about the beginning of the script. Anyway, all you have to do is click the "Send Snippet to Clipboard" button below, then paste in into the remotes section of your script editor. All you need to do is type !menu and you will see all of the different foods your bot has to offer. Have fun and happy eating! I also added a script that kicks on command, your bot must be an operator to kick people. Command is !trix and it kicks you with a silly message, "Silly rabbit, Trix are for kids!"

Grab the Code

Comments

  (12)  RSS
chocolate_pie
Comments: 12
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 26, 2007 5:22 pm
If you have anything to suggest I put on the menu, I will happilly edit to whatever you want, as long as it\'s not too stupid.
mountaindew
Comments: 1,539
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 26, 2007 7:51 pm
i believe ur missin a } at the end
chocolate_pie
Comments: 12
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 10:31 am
No, I\'m not.
Anyway, I added a !trix thing if you type it you get kicked and it says \"Silly rabbit, Trix are for kids!\" heheh
RubixCube
Comments: 51
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 6:49 pm
I have no idea what you are trying to accomplish in the !trix part of the snippet. If you are trying to kick the user, remove the msg command. If you are trying to msg the user remove the .kick command and parameters.

I give you credit for this being your first script, but I have to be the critic that I am when saying this: the script is not that efficient. I wouldn\'t take that a bad way, just a way to improve the snippet and your future scripts. Here are my suggestions:

- As a simple coding tip, if you have an if event w/ one line, remove the brackets.
- Perhaps make this an ini/txt file and have the ability to add or remove menu items. Here is a sample of what I am talking about if you are a bit misunderstood:

on *:TEXT:!serve*:#:{
if ($1) {
; checks if the item is specified
if ($2) {
; checks if the recipient is specified
if ($read(menu.txt,$v1)) msg $chan $nick serves $2 $v1
; reads the text file for the item
}
}
}

on *:TEXT:!additem*:#:{
if ($1) {
; checks if the item is specified
if (!$read(menu.txt,$v1)) {
; checks if the item isn\'t in the menu already
if ($2) {
; checks if the price is specified
write menu.txt $1 $2
; writes the item and price into the text file
}
}
}
}

( the same applies for the !delitem event if included )

- Add accounts while we are on the topic of prices. This can be stored in an ini file. /help /writeini and $readini.

I hope my mini-tutorial has helped. And if anyone can tell me a command that doesn\'t ruin the format of the events, that would really be great.
RubixCube
Comments: 51
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 6:51 pm
In the \'if you are a bit misunderstood\' I meant if you misunderstand by the way.
Akishoot
Comments: 144
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:30 pm
@ RubixCube - You can use [.code] and [./code] to bring up boxes to put sections of script in. (Remove the .\'s.]

Example:

Code:

menu nicklist {
  Wave:.msg $active waves at $$1 $+ .
}
RubixCube
Comments: 51
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:34 pm
Ah I see, thank you Akishoot.
Akishoot
Comments: 144
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:39 pm
You\'re welcome. =)
Akishoot
Comments: 144
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 10:05 pm
Code:

  if ($1 == !trix) { msg .kick $chan $nick Silly rabbit, Trix are for kids! }
}


Should be:

Code:

  if ($1 == !trix) { .kick $chan $nick Silly rabbit, Trix are for kids! }
}


Although I do think RubixCube already pointed this out...
mountaindew
Comments: 1,539
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 1, 2007 8:24 pm
is there a diff between $v1 and $1?
mountaindew
Comments: 1,539
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 1, 2007 8:25 pm
wait, nvm
chocolate_pie
Comments: 12
 
mIRC Snippet:  Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 6, 2007 9:47 am
heh... yeah I guess a made a few mistakes. But I told you I\'m only just starting scripting. I\'ll change that now...

Please Register or Login to start posting comments.
Bottom