Top

Simple Vending

Please Register to submit score.
Average Score  5.5
Scores Submitted  2
Date Added  Feb 16, 2008
Last Updated  Feb 16, 2008
Tags  simple  vend  vending 

Introduction

Ok I made this simple vending for my bot. You use it threw Private Message so it looks nicer in the rooms. /msg Nick !vend #Room Person Item - Vends the Item to the Person in the #Room. lol simple. Also if you want to add colors you can just highlight the Person or Item with your mouse before adding the colors so they don't run on.

Edit: I added a help file. !vend help - calls it up.

Grab the Code

Comments

  (11)  RSS
Noutrious
Comments: 340
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 11:51 am
Wheres the checking if those things exists?
Code:
on *:text:!vend*:?: {
if (!$4-) || ($mid($2,1,1) != $chr(35)) { msg $nick !Vend #chan nick item | halt }
... other stuff here ...
}
Noutrious
Comments: 340
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 11:52 am
|| ($me !ison $chan) could be added aswell..
JOBNED1
Comments: 10
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 11:57 am
Well more or less it is simple so any item can be used but it is also short my total characters above was like 311 characters while the actual script was only 225 characters. as for extras really you should be putting this in a bot if you want to use it yourself. Plus people won't know it is there unless you tell them anyway. so checking for if your in said room shouldn't be needed.
Noutrious
Comments: 340
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 1:17 pm
If you use it for yourself, use alias vend { instead on on text!
Note: $2 will be $1 then!
JOBNED1
Comments: 10
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 2:31 pm
I already use it in a bot of my own so I don't need the alias form but thanks for the tid bit it might help someone else when they look at this.
pokemaster23
Comments: 51
 
mIRC Snippet:  Simple Vending
Posted on Feb 16, 2008 3:52 pm
LOL
napa182
Comments: 797
 
mIRC Snippet:  Simple Vending
Posted on Feb 18, 2008 2:03 am
i would have to agree with Noutrious on the checking if those thing are there or not. and also why set var's at all on this?? just do..
Code:
on *:text:!vend*:?:{
  if ($2 != help) {
    if (!$4-) || ($mid($2,1,1) != $chr(35)) { .msg $nick !Vend #chan nick item | return }
    if ($3 !ison $2) { .msg $nick Sorry But $3 is not on Channel $2 | return }
    else { .msg $2 $3 $nick has bought you a(n) $4- | .describe $2 gives $3 a(n) $4- for $nick | .msg $nick $4- vended to $3 in $2 successfully }
  }
  elseif ($2 == help) { .msg $nick !vend #Room Person Item | .msg $nick #Room - A room where that I am in | .msg $nick Person - the perosn you want to give an item | .msg $nick Item - Item you want to give | .msg $nick !vend help | .msg $nick this calls up the help file }
}
JOBNED1
Comments: 10
 
mIRC Snippet:  Simple Vending
Posted on Feb 18, 2008 10:50 pm
1 - simple you choose items that don't have to be there.
2 - I find Vars simpler to work with that is the reason I use them.
napa182
Comments: 797
 
mIRC Snippet:  Simple Vending
Posted on Feb 18, 2008 11:32 pm
what i mean by be there is if $2 $3 $4 are there or not
mountaindew
Comments: 1,422
 
mIRC Snippet:  Simple Vending
Posted on Feb 19, 2008 12:13 pm
Quote:

($mid($2,1,1) != $chr(35)

i would do
Code:

if ($left($2,1) !isin $chantypes)) {
Noutrious
Comments: 340
 
mIRC Snippet:  Simple Vending
Posted on Feb 20, 2008 7:07 am
mountaindew, thanks - something new.

Please Register or Login to start posting comments.
Bottom