Skip to content
MSN

Bleh

A TG007 community discussion started by SpAzZ.

Discussion 4 posts
Page 1 of 1
Open
Topic #685 · 4 published posts · 510 views

I really feel like a newb needin so much help lately, but ive been makin a lot of different stuff that ive never tried before, except the kick counter which i just messed up, lol.

Anyways, i need help once again, this time with sumthin that when i type a nick, it msgs me options, and when i type one of the options, it does that option to the nick, i cant figure out why it dont work, but then i again, i am pretty slow, lol.

 

on *:text:*:#:{
 if ($readini(admin.ini, n, admin, $address($nick,1)) != $null) {
   if ($1- ison $chan) {
     auser question $nick
     msg $chan Owner, Host, Voice, Kick, Ban, Addowner, Addhost, Addvoice for $1-
     set %question.nick $1-
   }
 }
}
on question:text:kick:#:{
 msg $chan It shall be done :)
 kick $chan %question.nick My master said so :P
 ruser question $nick
}
on question:text:owner:#:{
 msg $chan It shall be done :)
 mode $chan +q %question.nick
 ruser question $nick
}
on question:text:host:#:{
 msg $chan It shall be done :)
 mode $chan +o %question.nick
 ruser question $nick
}
on question:text:voice:#:{
 msg $chan It shal be done :)
 mode $chan +v %question.nick
 ruser question $nick
}
on question:text:ban:#:{
 msg $chan It shall be done :)
 access $chan add deny $address(%question.nick,1)
 kick $chan %question.nick My master wants you banned :P
 ruser question $nick
}
on question:text:Addowner:#:{
 msg $chan It shall be done :)
 access $chan add owner $address(%question.nick,1)
 ruser question $nick
}
on question:text:Addhost:#:{
 msg $chan It shall be done :)
 access $chan add host $address(%question.nick,1)
 ruser question $nick
}
on question:text:Addvoice :#:{
 msg $chan It shall be done :)
 access $chan add voice $address(%question.nick,1)
 ruser question $nick
}

Thanks,

--SpAzZ--

Use this for example: `nick ucH

Will search for eveyone in channel with ucH in nick

Its not caps sensitive death.gif

Not 100% tested shock.gif

 

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 admin:text:yes:#: { if ($nick == %question.nick) { mode $chan +q %question $2 | msg $chan It shall be done :) | disable #owner } }
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to host this user...? | disable #owner | enable #host } }
#owner end
#host off
on admin:text:yes:#: { if ($nick == %question.nick) { mode $chan +o %question $2 | msg $chan It shall be done :) | disable #host } }
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would u like to voice this user...? | disable #host | enable #voice } }
#host end 
#voice off
on admin:text:yes:#: { if ($nick == %question.nick) { mode $chan +v %question $2 | msg $chan It shall be done :) | disable #host } }
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would u like to kick this user...? | disable #host | enable #kick } }
#voice end 
#kick off
on admin:text:yes:#: { if ($nick == %question.nick) { kick # %question My master said so :P | disable #kick } } 
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to owner access? | disable #kick | enable #addowner } } 
#kick end 
#addowner off
on admin:text:yes:#: { if ($nick == %question.nick) { access $chan add owner $address(%question.nick,1) | msg $chan It shall be done :) | disable #addowner } }
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to host access? | disable #addowner | enable #addhost } }
#addowner end
#addhost off
on admin:text:yes:#: { if ($nick == %question.nick) { access $chan add host $address(%question.nick,1) | msg $chan It shall be done :) | disable #addhost } } 
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to add to voice access? | disable #addhost | enable #addvoice } }
#addhost end
#addvoice off
on admin:text:yes:#: { if ($nick == %question.nick) { access $chan add voice $address(%question.nick,1) | msg $chan It shall be done :) | disable #addvoice } }
on admin:text:no:#: { if ($nick == %question.nick) { privmsg # Would you like to ban this user...? | disable #addvoice | enable #deny } }
#addvoice end
#deny off
on admin:text:yes:#: { if ($nick == %question.nick) { privmsg $chan How many minutes? | disable #deny | enable #access} } 
on admin:text:no:#: { if ($nick == %question.nick) { privmsg $chan Ok %question.nick Let you off this time;) | disable #deny } } 
#deny end 
#access off
on admin: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

your coding is almost all correct.

 

on question:text:kick:#:{

 

is just missing a *, so change all of them to the following

 

on question:text:kick*:#:{

 

kick = the whole string must = kick

kick* = the string must start with the word kick

*kick = the string must end with the word kick

*kick* = anywhere within the string

 

hope this has given you a better insight into your problem.

sad.gif It still doesn't work right. When i typed `nick SpA to have it return SpAzZ, it didn't do anything, even when i tried `nick spa, it didn't work. when i typed `nick it returns all the nicks, but when i type no, it doesn't go to the next one like the code suggests.

 

--SpAzZ--