mIRC Snippet:
Simple Vending
Posted on Feb 20, 2008 7:07 am
Posted on Feb 20, 2008 7:07 am
mountaindew, thanks - something new.
mIRC Snippet:
Simple Vending
Posted on Feb 19, 2008 12:13 pm
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)) { |
mIRC Snippet:
Simple Vending
Posted on Feb 18, 2008 11:32 pm
Posted on Feb 18, 2008 11:32 pm
what i mean by be there is if $2 $3 $4 are there or not
mIRC Snippet:
Simple Vending
Posted on Feb 18, 2008 10:50 pm
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.
2 - I find Vars simpler to work with that is the reason I use them.
mIRC Snippet:
Simple Vending
Posted on Feb 18, 2008 2:03 am
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 } } |
mIRC Snippet:
Simple Vending
Posted on Feb 16, 2008 2:31 pm
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.
mIRC Snippet:
Simple Vending
Posted on Feb 16, 2008 1:17 pm
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!
Note: $2 will be $1 then!
mIRC Snippet:
Simple Vending
Posted on Feb 16, 2008 11:57 am
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.
mIRC Snippet:
Simple Vending
Posted on Feb 16, 2008 11:52 am
Posted on Feb 16, 2008 11:52 am
|| ($me !ison $chan) could be added aswell..
mIRC Snippet:
Simple Vending
Posted on Feb 16, 2008 11:51 am
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 ... } |







