Skip to content
MSN Addons

On TEXT question

A TG007 community discussion started by NeophyteTelepath.

Discussion 11 posts
Page 1 of 1
Open
Topic #1845 · 11 published posts · 1,539 views

hi all

 

I am trying to make a little addon that uses on text.

 

Basically i want to have a command like for example !dumb and when that is typed into the room the script will respond with the question who is dumb?

Then when they type in a name the script will respond with something else.

 

what i have so far is the first bit

 

on *:TEXT:!dumb:#: { msg $chan Who is dumb? }

 

but i have no idea how to go about getting it to wait for an answer and respond to it.

 

Would someone be able to give me some pointers on how to go about it?

 

Thanks,

Neophyte

I think I saw an addon like this somewhere.

 

Try mircscripts.org . They have a pretty wide selection.

on *:TEXT:*:#:{
if (!dumb == $1) {
if (%dumb.wait != $null) { return }
if ($2 != $null) {
msg # $2 is dumb
}
else {
msg # Who is Dumb?
set %dumb.wait $nick
timer 1 15 unset %dumb.wait
}
} 
if ($nick == %dumb.wait) { 
msg #  $1 is dumb
unset %dumb.wait
}
}

Thanks for the reply Rudeboy.

 

That code is close to what i am trying to achieve, but not in the way i am trying to get it to work.

 

Say the person who will be called dumb by the script is me.

If i type !dumb Neophyte

then it will return Neophyte is dumb.

 

What i am trying to do is have it ask the room who is dumb and return a line of text based on their answer.

 

for example

 

someone types !dumb

the script asks Who is dumb?

someone types Neophyte

the script say Ahhh yes Neophyte is dumb indeed.

 

I can get it to the point where it asks who is dumb, but i cant work out how to make it respond to a typed answer to that question.

 

hehe the !dumb command is very apt for me

on *:TEXT:*:#:{
 if (!dumb == $1) {
   set %dumb $true
   set %nick $nick
   msg $chan $nick $+ , who is dumb?
 }
 if (%dumb) && (%nick) {
   set %dumbnick $1-
   msg $chan Yeah, %dumbnick is dumb for sure. :D
   .unset %dumb
   .unset %nick
   .unset %dumbnick
 }
}

 

I haven't tried this out. Let me know if it works. smile.gif

Edited Nov 9, 2004 1:59 PM by Warrior124

I tried it warrior and it returns

 

 

«þîŋħêâđ» : !dumb

General_Postal : «þîŋħêâđ», who is dumb?

General_Postal : Yeah, !dumb is dumb for sure

 

 

so it asks who is dumb, and returns Yeah, !dumb is dumb for sure before you can type an answer

 

I guess this is kind of similar to the slap thing someone had running in the old Techgear MSN chat room before subscription came in, where you typed !slap <nick> and it would ask should I slap them and based on the answer it would kick them or not kick them, except i am trying to avoid having to put the nick in with the command, i think it was err0rs code.

lol

 

on *:TEXT:!dumb:#:{

if (!%floodprot) {

msg $chan who is dumb?

set %nix.user $nick

inc -z %floodprot 2

}

on *:TEXT:*:#:{

if ($1- = $true) && ($1- ison $chan) && (%nix.user = $nick) && (!%flood.z) {

msg # Aww, Yes!! $1- is DUMB!

unset %nix.us*

inc -z %flood.z 2

}

 

; what this SHOULD do is make it so any user can say !dumb, var there nick

; then if they say a nick that IS ON that chanel it should say "Aww, Yes!! "nickhere" is DUMB!"

 

[/\]

[\/]

Edited Nov 9, 2004 3:31 PM by bluedevil

so if someone types "nickname" is dumb it wont work correctly lol

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

on *:TEXT:!dumb:#:{
 if (%waiting != Yea) {
   set %waiting Yea
   set %w.nick $nick
   msg # What's that dumb persons name?
 }
}

on *:TEXT:*:#:{
 if (%w.nick == $nick && %waiting == Yea) {
   msg # Ahhh yes, %1- $+ , They surely are dumb, I agree!
   unset %waiting
   unset %w.nick
 }
}

 

.. I don't know if this'll work.. I haven't used mIRC (for chatting) since MSN started costing money sad.gif and I can't test it here at TAFE..

Hope it works!

 

[EDIT] Do you want it so that anyone can say who is dumb, or do you want it so that the person who started off the !dumb command gets to say who is dumb..? [//EDIT]

Edited Nov 11, 2004 1:14 AM by Fonix_EM

works beautifully Fonix

Thanks

 

Thanks to everyone who had a go at it.

 

lol i guess the TAFE you are at won't allow you to install MSN chat controls either.

 

Damn Unisys have blocked me from accessing my room at tafe so i cant do anything there when nothing is doing in my class

Edited Nov 11, 2004 6:51 AM by NeophyteTelepath

Good to hear I could help, hehe. happy.gif

 

The TAFE won't let me do anything fun, lol dry.gif Meanies.