Skip to content
MSN

`nick command

A TG007 community discussion started by SpAzZ.

Discussion 5 posts
Page 1 of 1
Open
Topic #835 · 5 published posts · 489 views

heres what i got, i posted on here before, and out of the answers i got, none of them worked quite right, so heres what i was left with.

on *:text:`nick:#:{
 if ($readini(admin.ini, n, admin, $address($nick,1)) != $null) {
   var %a 1 
   while (%a <= $nick($chan,0)) { 
     if (* $+ $2 $+ * iswm $nick($chan,%a)) {
       set %question $nick($chan,%a))
       set %question.nick
       msg $chan Found %question Do you want to owner this user?
       enable #owner
     } 
     inc %a 
   } 
 }
}
#owner off
on *:text:yes:#: { if ($nick == %question.nick) { mode $chan +q %question $2 | msg $chan It shall be done :) | disable #owner } }
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to host this user...? | disable #owner | enable #host } }
#owner end
#host on
on *:text:yes:#: { if ($nick == %question.nick) { mode $chan +o %question $2 | msg $chan It shall be done :) | disable #host } }
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would u like to voice this user...? | disable #host | enable #voice } }
#host end 
#voice off
on *:text:yes:#: { if ($nick == %question.nick) { mode $chan +v %question $2 | msg $chan It shall be done :) | disable #host } }
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would u like to kick this user...? | disable #host | enable #kick } }
#voice end 
#kick off
on *:text:yes:#: { if ($nick == %question.nick) { kick # %question My master said so :P | disable #kick } } 
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to owner access? | disable #kick | enable #addowner } } 
#kick end 
#addowner off
on *:text:yes:#: { if ($nick == %question.nick) { access $chan add owner $address(%question.nick,1) | msg $chan It shall be done :) | disable #addowner } }
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to host access? | disable #addowner | enable #addhost } }
#addowner end
#addhost off
on *:text:yes:#: { if ($nick == %question.nick) { access $chan add host $address(%question.nick,1) | msg $chan It shall be done :) | disable #addhost } } 
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to voice access? | disable #addhost | enable #addvoice } }
#addhost end
#addvoice off
on *:text:yes:#: { if ($nick == %question.nick) { access $chan add voice $address(%question.nick,1) | msg $chan It shall be done :) | disable #addvoice } }
on *:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to ban this user...? | disable #addvoice | enable #deny } }
#addvoice end
#deny off
on *:text:yes:#: { if ($nick == %question.nick) { privmsg $chan How many minutes? | disable #deny | enable #access } } 
on *:text:no:#: { if ($nick == %question.nick) { privmsg $chan Ok %question.nick Let you off this time;) | disable #deny } } 
#deny end 
#access off
on *:text:*:#: { if ($nick == %question.nick) { access # add deny $address(%question.nick,1) $$1 | kick # %question.nick My master wants you banned :P [banned for $$1 minutes] | disable #access } } 
#access end

aight, its supposed to msg one nick at a time, but it doesn't, it msgs all of them at once. and when i say no to the owner nick thingy, it doesn't go to the next one like its supposed 2 sad.gif aight, thanks in advanced

--SpAzZ--

you cant have

 

on *:text:*:#*:

 

and

 

on *:text:test:#:

 

in the same file

 

 

on *:text:`nick:#:{

 

 

should be

 

on *:text:`nick*:#:{

 

My code does NOT have bugs. It just develops random features.

thanks ozzy, but its still not working sad.gif

--SpAzZ--

as far as i can tell from what you are explaining: you want this to go thru all 11 yess/no 's then goto the next nick? Or are you wanting to put in like

'nick bo

and have it do all 11 for the first nick that has "bo" in it then goto the next nick that has "bo" in it?

What one man can do, another can do!

i want it to be able to do both of them. But im not smart enough to figure it out sad.gif

--SpAzZ--