Skip to content
MSN

code request please

A TG007 community discussion started by tech9.

Discussion 13 posts
Page 1 of 1
Open
Topic #5086 · 13 published posts · 963 views

ive been trying to code something like this but it counts too fast :|

 

when someone says !mo

 

i will say

 

<$me> 5

<$me> 4

<$me> 3

<$me> 2

<$me> 1

then here all massop everybody

then de-massop

 

if youre wondering why i need this its because people race their banlists in testrooms

 

hope u guys can help thanks!

u can do it on a timer

 

lets say ur mass op alias is called massop

 

u would have

 

alias timermassop {

timer 1 1 msg # 5

timer 1 2 msg # 4

timer 1 3 msg # 3

timer 1 4 msg # 2

timer 1 5 msg # 1

massop

}

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

u can do it on a timer

 

lets say ur mass op alias is called massop

 

u would have

 

alias timermassop {

timer 1 1 msg # 5

timer 1 2 msg # 4

timer 1 3 msg # 3

timer 1 4 msg # 2

timer 1 5 msg # 1

massop

}

 

* /msg: insufficient parameters

* Timer 1 halted

* /msg: insufficient parameters

* Timer 2 halted

* /msg: insufficient parameters

* Timer 3 halted

* /msg: insufficient parameters

* Timer 4 halted

* /msg: insufficient parameters

* Timer 5 halted

 

doesnt work at all ;/

try $!chr(37) $!+ $right($chan,-1) instead of #

or $chan or $active

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

now i got this vvvvvvvv

 

on *:TEXT:.mo*:#:/tmo

 

alias tmo {

timer 1 1 msg $!chr(37) $!+ $right($chan,-1) 5

timer 1 2 msg $!chr(37) $!+ $right($chan,-1) 4

timer 1 3 msg $!chr(37) $!+ $right($chan,-1) 3

timer 1 4 msg $!chr(37) $!+ $right($chan,-1) 2

timer 1 5 msg $!chr(37) $!+ $right($chan,-1) 1

timer 1 6 mo

timer 1 7 -mo

timer 1 8 access # clear

}

 

it masses right when i type /tmo but when someone says .mo it counts but doesnt mass..... ;\

paste ur mass op

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

paste ur mass op

 

mo {

var %i = 0

while (%i < $nick(#,0)) {

var %i = $calc(%i + 1)

if ($nick(#,%i) == $me) { continue }

if ($nick(#,%i) isop #) { continue }

elseif ($nick(#,%i) !isin #) {

var %t = %t $+ $chr(32) $+ $nick(#,%i)

}

else { continue }

}

mode # + $+ $str(+o,%i) $+ %t

var %i = $calc(%i - 1)

halt

}

this may be a really stupid questioomn or am just not thinking straight

 

whats does Continue do

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

this may be a really stupid questioomn or am just not thinking straight

 

whats does Continue do

 

hosts the rest of the room.. lol

While Loops

Repeats a loop containing a set of commands while the expression in brackets is true.

 

var %i = 1

while (%i <= 10) {

echo 2 %i

inc %i

}

 

The expression in brackets uses the same format as an if-then-else statement.

 

Multiple while loops can be embedded. You can use /break to break out of the current loop, and /continue to jump to the beginning of the loop

cool never knew that is that a new mirc feature?

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

while loops have been around (almost) since the dawn of mirc time :P

alias countdown { set %timer 6 | .timer 5 1 ts }
alias ts { dec %timer | echo -a %timer }

People are like slinkies; they're generally boring until you push them down stairs