Help with scripting

General Help Questions and Answers

Moderators: L|B, cryoa, Riamus, XMog

Help with scripting

Postby Megalodon » Fri Feb 06, 2004 4:43 pm

Megalodon
Member
Member
 
Posts: 2
Joined: Fri Feb 06, 2004 4:38 pm

ctcp fix

Postby cRiTiC » Fri Feb 06, 2004 5:59 pm

One way to do it is to have the ctcp version reply script that you are running HALT the replies that you are getting. IE:
on ^*:CTCPREPLY:version*: {
if ($nick ison #invision) { ; somthing along the lines of this
; your script
haltdef
}
}

You could do that, or instead of just halting you could use echo -s to echo it to server window, and then halt it.
You may have to load this script in a higher position than ictcp.mrc in order to halt it before ictcp.mrc echos it.
Hopefully this helps
-cRiTiC[/b]
cRiTiC
Member
Member
 
Posts: 1
Joined: Fri Feb 06, 2004 5:47 pm

Postby Megalodon » Fri Feb 06, 2004 11:27 pm

Neither haltdef, echo -s and loading the script before ictcp.mrc works here, maybe i didnt put it in the scritp correctly.
Here's my script so far:

on !1:JOIN:#channel:{ .ctcp $nick version }
on *:ctcpreply:*version*: {
if ((catcher isin $1-) || (bottler isin $1-) || (irc-ork isin $1-)) {
.ban -u3600 #channel $nick 2
.kick #channel $nick 4NO 7Bottlers9/11IRC-Ork 4morons allowed in here!! 8(1 hour ban) 9-11 banned:9 %shitcount
inc %shitcount

}
}
-
Megalodon
Member
Member
 
Posts: 2
Joined: Fri Feb 06, 2004 4:38 pm

Postby marazas » Thu Feb 12, 2004 11:52 am

inc %shitcount must be before banned :) Because now it won't show anything at first time :)
marazas
Member
Member
 
Posts: 3
Joined: Tue Dec 23, 2003 1:15 pm
Location: Kaunas

Postby PD^renegade » Fri Feb 13, 2004 5:26 pm

no need for the ! for user level, as user level has nothing to do with the message being sent to a particular window.

You will need to use the halt as perscribed earlier, as you wan to parse any messages other than your own...
User avatar
PD^renegade
Member
Member
 
Posts: 337
Joined: Thu Jun 06, 2002 9:01 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 81 guests