mIRC Home    About    Download    Register    News    Help

Print Thread
#240460 06/02/13 03:09 PM
Joined: Feb 2013
Posts: 2
S
soap Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2013
Posts: 2
Hi, so I tried making a script that stores a message for a specific person and posts it, when that person talks in the channel.

Usage: !tell nickname message

However, it won't work and I don't know what's wrong. I also made a flood protection for it
If someone could have a look at it and tell me what's wrong I'd appreciate it.
Thanks

Script: http://pastebin.com/vHVan94F

soap #240464 07/02/13 02:56 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Some explanation of what doesn't work would help rather than having to read through all of it to try and determine what isn't working. That being said, right at the top, you are using /inc and /dec incorrectly. Those commands are used to increase or decrease a number. You can't use them to add or remove text from a variable. If you want to do that, look into the various token identifiers ($deltok, $instok, $remtok, $addtok, etc.). That may be the only thing you need to fix, depending on what isn't working.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2013
Posts: 2
S
soap Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2013
Posts: 2
What happens is I enter !tell, but nothing happens. I don't get an error message or anything.

soap #240474 08/02/13 01:40 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If that is all in the same file, only the first on text will trigger when saying !tell. And that one won't do anything unless you type !tell more than once within 4 seconds. In addition, this will not trigger if you say something from the same client that is running the script. It only responds when others type the trigger.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard