mIRC Home    About    Download    Register    News    Help

Print Thread
Help pls #247887 03/09/14 04:01 PM
Joined: Nov 2013
Posts: 21
A
AlphaKennyHuan Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2013
Posts: 21
I need to know how to get this bit of coding not to bug out

Code:
on *:text:!skingiveaway *:#: {
  ;$2 is the name of the donor
  ;$3- is the name of the skin
  msg # $2-
}


It would work normally but it doesnt work when | is used, and | is needed to be used in this case, for example someone might say

Quote:
!skingiveaway alphakennyhuan CZ-75 | Twist



Last edited by AlphaKennyHuan; 03/09/14 04:01 PM.
Re: Help pls [Re: AlphaKennyHuan] #247893 03/09/14 10:42 PM
Joined: Jan 2004
Posts: 1,282
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,282
Do you have actually have it on a timer? The code you've provided does not suffer from remote code execution.

http://en.wikichip.org/wiki/mirc/msl_injection

Re: Help pls [Re: Loki12583] #247898 04/09/14 06:24 PM
Joined: Nov 2013
Posts: 21
A
AlphaKennyHuan Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2013
Posts: 21
it does have a timer on it, its just the "|" in the message that people type is messing it up and it would say something like
Quote:
TWIST unknown command

Re: Help pls [Re: AlphaKennyHuan] #247899 04/09/14 06:34 PM
Joined: Jul 2006
Posts: 3,621
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,621
Yes, that's because that character, the pipe, is the delimite of command in mIRC, when used with timer, the command associated to the timer will be of the form 'msg #chan ... | rest of the message', and rest of the message in your case start with "Twist", which is executed as a command (since it's not found, it's sent to the server which reply it doesn't know that command either), the link above explain it all


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Help pls [Re: Wims] #247910 07/09/14 03:24 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I believe adding a $ before the command ( even if it already has a $) it will make it plain text, or maybe that just works with the $$2/$$3 etc. commands, try it yourself smile


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Help pls [Re: judge2020] #247911 07/09/14 07:06 PM
Joined: Jul 2006
Posts: 3,621
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,621
What do you mean exactly?
If you meant to add $ before the identifier like $2 becomes $$2, this is a different feature, if the value is $null (so here, if $2 is $null), /halt is executed, it's a quick way to stop doing anything when a parameter is not filled.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Help pls [Re: Wims] #247922 08/09/14 07:43 PM
Joined: Nov 2013
Posts: 21
A
AlphaKennyHuan Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2013
Posts: 21
thanks laugh will test when i get a minute

Re: Help pls [Re: Wims] #248019 16/09/14 04:29 PM
Joined: Nov 2013
Posts: 21
A
AlphaKennyHuan Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2013
Posts: 21
This is what happens when I use what i extracted from that link

Quote:
5:22 User1: !skingiveaway User1 CZ-75 | MIKE
5:22 User2: <=== Giveaway for $decode( Q1otNzUgfCBNSUtF ,m) (donated by user1) is OPEN! To have a chance of winning this fantastic prize, type !enter - Winner will be drawn in 3 minutes. ====>


It does not successfully decode it help please