Top

Comments

  (36)  RSS
|MELIORITE|'s
mountaindew
Comments: 1,540
 
mIRC Snippet:  Topic Protector v 1.0
Posted on Mar 6, 2008 8:07 pm
^^
Code:

alias tp {
  dialog -dm topic_pro topic_pro
}

should be
Code:

alias tp {
  dialog $iif($dialog(topic_pro),-v,-dm) topic_pro topic_pro
}
sith_
Comments: 10
 
mIRC Snippet:  Topic Protector v 1.0
Posted on Mar 6, 2008 7:59 pm
* /dialog: \'topic_pro\' name in use (line 75, script1.txt)
xDaeMoN
Comments: 696
 
Profile:  |MELIORITE|
Posted on Jun 7, 2007 12:02 am
This is not the place to ask for help with your codes/script. Post it in mIRC Scripting Forum.
sadistic_sin
Comments: 30
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 11:59 pm
i\'m trying to edit an 8ball code.. however its not quite working how i would hope it would.. maybe you can help? mainly i\'m just trying to change all the places it says 8ball to 8skull (i like to stick out)


on 1:TEXT:*!8skull*:#:{
var %8ball = $rand(1,21)
describe $chan is shaking up the 8skull...
if (%8skull == 1) .timer 1 1 msg $chan 4,1 fark yeah!
if (%8skull == 2) .timer 1 1 msg $chan 4,1Hell no! What were you thinking?!?!
if (%8skull == 3) .timer 1 1 msg $chan 4,1A little donation please...?
if (%8skull == 4) .timer 1 1 msg $chan 4,1definetly not
if (%8skull == 5) .timer 1 1 msg $chan 4,1 i doubt it dumbass
if (%8skull == 6) .timer 1 1 msg $chan 4,1hellz yeah!
if (%8skull == 7) .timer 1 1 msg $chan 4,1Ask some other time, jackass
if (%8skull == 8) .timer 1 1 msg $chan 4,1If you bow down to me.. its a maybe.
if (%8skull == 9) .timer 1 1 msg $chan 4,1Are you sure you want to ask me that?
if (%8skull == 10) .timer 1 1 msg $chan 4,1hellz no!
if (%8skull == 11) .timer 1 1 msg $chan 4,1Most likely.
if (%8skull == 12) .timer 1 1 msg $chan 4,1neat, how are you?
if (%8skull == 13) .timer 1 1 msg $chan 4,1Problably not dude.
if (%8skull == 14) .timer 1 1 msg $chan 4,1Guess not dumbass
if (%8skull == 15) .timer 1 1 msg $chan 4,1So is it a deal? or no deal?
if (%8skull == 16) .timer 1 1 msg $chan 4,1Im sorry, you are the weakest link, good bye.
if (%8skull == 17) .timer 1 1 msg $chan 4,1Ill answer you if you give me five bucks.
if (%8skull == 18) .timer 1 1 msg $chan 4,1Definantly NOT.
if (%8skull == 19) .timer 1 1 msg $chan 4,1Doubtfull..
if (%8skull == 20) .timer 1 1 msg $chan 4,1A question i dont even have an answer to...
if (%8skull == 21) .timer 1 1 msg $chan 4,1What kind of question is that?
}
sadistic_sin
Comments: 30
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 11:15 pm
i have a bunch of those like my !emo script that you commented on earlier... i\'m trying not to have 2 lines like that on all of my scripts though =)
sadistic_sin
Comments: 30
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 11:07 pm
awesome, thanks this 1 works pretty well though
sadistic_sin
Comments: 30
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 10:55 pm
will do, thank you very much
|MELIORITE|
Comments: 144
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 10:48 pm
Heehee thanks
sadistic_sin
Comments: 30
 
Profile:  |MELIORITE|
Posted on Jun 6, 2007 10:41 pm
awesome, thanks for that code, and thats a really cute kid in your picturee
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 2:03 pm
also, saw in ur code that u use did -a id several times, u can use them once and do:
eg:
did -a CMP 1-10 HI
or
did -a CMP 1,2,3,4,5,6,7,8,9,10 hi
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 10:34 am
Your welcome :)
|MELIORITE|
Comments: 144
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 8:26 am
Great idea ... i\'ll revamp the whole system in version 2 and certainly look at that idea... because I am interested in making this sytem completely better than originally written. Thanx for those ideas.
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 4:49 am
Heh, the loop thing was a lil messy, however:
Code:

alias mode_load {
  var %a = 30, %b = 38
  while %a <= %b {
    did $iif($did(%a) isin $chan($active).mode,-c,-u) $dname %a
    inc %a
  }
}

Sorry, did it in class you know ;)
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 3:53 am
Sounds great. Also thought of, what about removing the radio\'s, and make the check boxes select/unselect depending on the modes?
Code:

alias load_mode {
var %x = $chan($active).mode
if (MODE isincs %x) { actions }
if (MODE2 isincs %x) { actions }
}

or
Code:

alias load_mode {
var %a = 1, %b = $chan($active).mode, %c = 30
while %a <= %b {
did -a CMP $iif($gettok(CMP,%c),1,32) isincs %b,-c,-u) <id>
inc %b
}
inc %c
}

Im not sure if the alias with the loop is correct, i assumed that the first check is used from 30. (The id for the topic lock)

When the .state is 0, it returns the mode -<mode>, elseif the state is 1, it returns +<mode>.

When you press ok, the selected modes will be set.

Much better then nusing radios for add/remove ;).
|MELIORITE|
Comments: 144
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 2:10 am
I tried it out before I posted the version, but I guess I\'ll have to check it out again... the boxes all seemed right. Thanks for pointing out the glitch in the channel entries, I was not aware it was doing that so I\'ll fix that too. The modes also has a glitch, that when the system is reopened there\'s no way for it to recall the selected modes for protection o na channel because i have not made a way to isolate a particular channel, so no modes appear to be selected... although the protections still work. I will have another look at all these areas.... for version 2 I will place in the checks and also will write to a file to record the chan selections so that the system can read these when a channel is isolated. The overlapping on chan boxes obviously needs work :) and I will look at the radio button.
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 2:01 am
Also, sorry for a second post, but when you add a channel, you can overwrite the old one, it doesn\'t really, it just adds it on top. Is that how its supposed to be?
Or isn\'t the add button supposed to be disabled while the variable contains a channel, when u press remove, the remove button gets disabled and the add button enabled?
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 1:59 am
I tried it, i saw that the \"disable\" radio goes over the box...
Also, for some reason, the second box in the channel thing didnt work.. Never added the channel.

Also, a few checks in the channel things would be ok:
Code:

did -a CMP <id> $+($iif($left($did(cmp,ID),1) != $chr(35),$v2),%VARIABLE)


Also, the modes thingy didnt quite work for me, but i probably used it incorrectly. otherwhize nice work.
|MELIORITE|
Comments: 144
 
mIRC Snippet:  ChanModePro
Posted on May 21, 2007 1:51 am
Updated some of the code based on some of the valuable feedback received to date.
|MELIORITE|
Comments: 144
 
mIRC Snippet:  ChanModePro
Posted on Apr 24, 2007 8:14 pm
Good thought... I\'ll try that out before i edit... or i wonder also if a general:
Code:
On 1:dialog:CMP:sclick:*:{
  if $did = 13 { set %CMPchan1 $$?=\"Enter Channel Name\"

etc ... which takes out the need for the \"elseif\" conditions? I will try that out soon too.
This was entered as my second real piece of code, and while I have improved a little since then I am grateful for all the improvement pointers.
Lindrian
Comments: 741
 
mIRC Snippet:  ChanModePro
Posted on Apr 24, 2007 12:30 am
You should try settings ur dialog up like:

Code:

on *:dialog:CMP:*:*: {
if ($devent == sclick) {
if ($did == 13) {
  set %CMPchan1 $$?=\"Enter Channel Name\"
  did -a CMP 5 %CMPchan1
}
elseif ($did == 14) {
  set %CMPchan2 $$?=\"Enter Channel Name\"
  did -a CMP 6 %CMPchan2
}
elseif ($did == 15) {
  set %CMPchan3 $$?=\"Enter Channel Name\"
  did -a CMP 7 %CMPchan3
}
}
1 2 Next
Bottom