not an invision question, just getting no help elsewhere :(

General Help Questions and Answers

Moderators: L|B, cryoa, Riamus, XMog

not an invision question, just getting no help elsewhere :(

Postby [slider] » Sat Dec 13, 2003 4:48 am

hi guys/girls

im trying to code a revolving door script, but its not working as it should do, (bans even after 3 minutes in channel), just enquiring if any of u 1337 scripters/coders would be willing to show me where im goin wrong thanx, if its not right to ask here please edit/delete this post

on @*:PART:#channelname:{
if ($nick isop #) return
set -u120 %rd.time [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %rd.time [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1 )
if ( %rd.time [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= 1) {
ban -u120 # $nick 11
notice $nick u just got banned for a flyby
}
}
this is what i have now, i cant code very well for toffee so i dont know where its wrong etc, thanx in advance if your able to help
:)
[slider]
Member
Member
 
Posts: 60
Joined: Tue Jan 14, 2003 3:05 pm

Postby PD^renegade » Sat Dec 13, 2003 5:56 am

not sure exactly what you are trying to accomplish ?

first problem I see, is that everytime someone(doesnt matter who) leaves the channel, the variable is set back to 120.

second problem I see is that no matter what condition exists, %rd.time will always be >=1, so it would ban everyone who parted the channel(except ops)


I am gussing you are trying to ban peeps who arent in the channel for a minimum of 3 minutes ?

If thats the case you would need to start a timer for everyone who enters, then stop the time when they part, then ban based on the difference.
User avatar
PD^renegade
Member
Member
 
Posts: 337
Joined: Thu Jun 06, 2002 9:01 pm

Postby [slider] » Sat Dec 13, 2003 6:56 am

[slider]
Member
Member
 
Posts: 60
Joined: Tue Jan 14, 2003 3:05 pm

Postby cnils » Sat Dec 13, 2003 7:51 am

cnils
Member
Member
 
Posts: 426
Joined: Wed Oct 09, 2002 9:01 pm

Postby [slider] » Sat Dec 13, 2003 1:00 pm

[slider]
Member
Member
 
Posts: 60
Joined: Tue Jan 14, 2003 3:05 pm

Postby [slider] » Sat Dec 20, 2003 2:40 pm

hmmz, didnt work at all cnils, sorry took a while to get back to u, i moved house then lost inet :(
i found one online in the end that did work (team-clanx came back online)
thanx for trying neway :) was much appreciated
[slider]
Member
Member
 
Posts: 60
Joined: Tue Jan 14, 2003 3:05 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 78 guests

cron