mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 6, 2007 9:47 am
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...
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 1, 2007 8:25 pm
Posted on Oct 1, 2007 8:25 pm
wait, nvm
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Oct 1, 2007 8:24 pm
Posted on Oct 1, 2007 8:24 pm
is there a diff between $v1 and $1?
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 10:05 pm
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...
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:39 pm
Posted on Sep 29, 2007 8:39 pm
You\'re welcome. =)
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:34 pm
Posted on Sep 29, 2007 8:34 pm
Ah I see, thank you Akishoot.
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 8:30 pm
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:
Example:
| Code: |
menu nicklist { Wave:.msg $active waves at $$1 $+ . } |
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 6:51 pm
Posted on Sep 29, 2007 6:51 pm
In the \'if you are a bit misunderstood\' I meant if you misunderstand by the way.
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 6:49 pm
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.
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.
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 29, 2007 10:31 am
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
Anyway, I added a !trix thing if you type it you get kicked and it says \"Silly rabbit, Trix are for kids!\" heheh
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 26, 2007 7:51 pm
Posted on Sep 26, 2007 7:51 pm
i believe ur missin a } at the end
Profile:
chocolate_pie
Posted on Sep 26, 2007 5:22 pm
Posted on Sep 26, 2007 5:22 pm
mIRC Snippet:
Chocolate Pie's mIRC Cafe Snippet!
Posted on Sep 26, 2007 5:22 pm
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.
Profile:
chocolate_pie
Posted on Sep 26, 2007 5:10 pm
Posted on Sep 26, 2007 5:10 pm
Yeah thanks... anyway I\'ve been trying to submit my Food Vendor script but i never see it :(
Profile:
chocolate_pie
Posted on Sep 22, 2007 9:27 pm
Posted on Sep 22, 2007 9:27 pm
Just had to say, I love your name. lol :3 And Hi btw. :D




