Insult Dialog

By napa182 on Sep 27, 2007

Copy/Paste into a new remote click either on ur menubar or in a channel click Insulter pick a channel then pick a nick an click Insult Nick.

Rip Strip Rape This snippet I can careless..

Image

dialog Insulter {
  title "Insulter V2.0 Blow Me Inc."
  size -1 -1 117 73
  option dbu
  box "Channels U Are On", 1, 2 2 56 47
  list 2, 3 11 53 36, size
  box "Nick's In Channel", 3, 59 2 56 47
  list 4, 60 11 53 36, size
  box "Functions", 5, 2 50 113 21
  button "Insult Nick", 6, 3 59 55 10, flat
  button "Close", 7, 58 59 55 10, flat cancel
}
menu menubar,channel {
  .Insulter:{ dialog $iif($dialog(Insulter),-v,-m Insulter) Insulter }
}
on *:load: {
  echo 12 -a You Have Just Loaded Napa182's Random Insults 
  echo 12 -a A Script0rs Inc. Production So BLOW ME Inc. ;X 
  echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
}
on *:dialog:Insulter:init:0:{ did -b $dname 6 | didtok $dname 2 32 $regsubex($str(-,$chan(0)),/(.)/g,$+($chan(\n),$chr(32))) } 
on *:dialog:Insulter:sclick:*:{ 
  if ($did == 2) { did -b $dname 6 | did -r $dname 4 | didtok $dname 4 32 $regsubex($str(-,$nick($did(2).seltext,0)),/(.)/g,$+($nick($did(2).seltext,\n),$chr(32))) } 
  if ($did == 4) { did -e $dname 6 }
  if ($did == 6) { if ($sock(insult)) .sockclose insult | sockopen insult www.randominsults.net 80 | sockmark insult $did(2).seltext $+(04,$did(4).seltext,$chr(44),14) }
}
on *:sockopen:insult: { sockwrite -nt $sockname GET / HTTP/1.1 | sockwrite -nt $sockname Host: $+(www.randominsults.net,$str($crlf,2)) }
on *:sockread:insult: {
  var %insult | sockread %insult
  if ($regex(%insult,/<i>(.+)<\/i>/)) {  msg $sock(insult).mark $regml(1) | .sockclose insult } 
}

Comments

Sign in to comment.
troll   -  Sep 03, 2011

Thannks

 Respond  
Jethro   -  Sep 01, 2011

:| jaytea has the best of me again this time. Ty for your input. I shall bear that in mind.

 Respond  
jaytea   -  Sep 01, 2011

I wouldn't go for the while loop route like venom suggested, since the didtok is available at your disposal.

but a list of nicknames is NOT readily available at your disposal, you have to construct the list first. this really is overkill when you can simply add the nick straight to the listbox as venom showed.

you can also use:

/filter -wol #channel <dname> <id>

to get the nicklist of #channel in a dialog control. this also copies nick prefixes, however, which might be desirable in this case.

 Respond  
Jethro   -  Sep 01, 2011

Troll, this is how you parse all the nicknames in the channel in a dialog using the didtok command. I wouldn't go for the while loop route like venom suggested, since the didtok is available at your disposal. Why waste it, right? Here is a simple test dialog for your reference:

dialog test {
  title "Testing..."
  size -1 -1 85 16
  option dbu
  text "Roomies:", 3, 2 3 25 8, right
  combo 4, 28 3 53 100, size drop
}
on *:dialog:test:init:0:{
  while ($nick($iif($active ischan,$v1),$0)) { 
    tokenize 32 $1- $v1 
  }
  didtok $dname 4 32 $2-
}
alias roomies { 
  dialog $iif($dialog(test),-v,-md test) test
}

Enter the command: /roomies
And then select the drop-down box to see all the nicknames in the room where you're on. This is for testing purposes only, nothing more.

 Respond  
troll   -  Aug 31, 2011

When you click the channel in the 1st listbox, it lists the users in the 2nd list box. I was wondering how that was done, and in a well-documented way so that I could learn.

 Respond  
blackvenomm666   -  Aug 31, 2011

he was trying to figure out how to make the users appear in a list box when selecting on a channel in the other listbox. meh

 Respond  
Jethro   -  Aug 30, 2011

I don't know what troll was talking about. Please rephrase it if you get a chance.

 Respond  
blackvenomm666   -  Aug 30, 2011
if ($did == 2) { did -b $dname 6 | did -r $dname 4 | didtok $dname 4 32 $regsubex($str(-,$nick($did(2).seltext,0)),/(.)/g,$+($nick($did(2).seltext,\n),$chr(32))) }

^^that is the line that makes the nicks appear for the channel selected
here is another way to do it

on *:dialog:profileview.system:dclick:1: {
  nickzz
}

alias  nickzz {
  var -s %curr 1, %nick $nick($did(profileview.system,1).seltext,0)
  did -r profileview.system 3
  while (%curr <= %nick) { 
    did -az profileview.system 3 $nick($did(profileview.system,1).seltext,%curr)
    inc %curr
  }
}
 Respond  
napa182   -  Aug 30, 2011

im not to sure what you mean troll, but i used didtok and $regsubex to list the nicks when you click on a channel.

 Respond  
troll   -  Aug 30, 2011

Good script, im still a learner
can you explain how you change the 2nd list to the users in the chan selected in list 1?

 Respond  
Alco`   -  Feb 18, 2010

Yes but i rather not give up my God-irc :$
Thanks anyway Napa :)

 Respond  
napa182   -  Feb 15, 2010

well try this go to www.mirc.com and download a new version and try the script.

 Respond  
Alco`   -  Feb 15, 2010

@Napa182

I'm using GOD-irc 5.6
Normaly it'll accept about anything that's why i like it and still use it ;p
But could that be the problem? :(
I'd love to use this script ^^

 Respond  
napa182   -  Feb 14, 2010

idk i guess cuz of my black screen or i pasted the screen shot to a black background

 Respond  
sunslayer   -  Feb 14, 2010

just out of curiosity... why so much black in the pic?

 Respond  
napa182   -  Feb 14, 2010

@Alco` it may be the version of mIRC you are using. what version are you using?
iv noticed that $regsubex does not work with older versions of mIRC.

 Respond  
Alco`   -  Feb 14, 2010

Ahw .. this one doesn't work for me.
I get the pop up but both sides of the window are empty i can't click on a channel nor nick

 Respond  
sunslayer   -  Sep 30, 2009
dialog insults {
  title "insult dialog"
  size -1 -1 108 18
  option dbu
  text "Your fat.", 1, 37 5 28 9
}

personal insult dialog :p

 Respond  
blackvenomm666   -  Sep 30, 2009

nicely done napa :D

 Respond  
napa182   -  May 26, 2009

Updated and changed.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.