mIRC Home    About    Download    Register    News    Help

Topic Options
#136854 - 04/12/05 11:18 PM Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
Hey ppl, could you help me make a script that when i write
!attack xxxxxx

it popup a link to the guy you want to attack..

ex. !attack SvL
DADADA
http://blablabla.attack.rushy.com?php=id?SvL


Can you help with that ?

i need it on my user.. so that when i have op and ppl write !attack then its me who says it..not a bot..

and then the color have to be red

Thx grin

Top
#136855 - 05/12/05 02:26 PM Re: Pop up by command
drc4 Offline
Vogon poet

Registered: 22/11/05
Posts: 105
Loc: Dover, Delaware
I just got off work, and tired, and not fulling comprehending what you're asking. You want it so that when someone types !attack <nick> while you're an Op in a channel, it displays a link with <nick> at the end? Sounds easy enough, but I'm not sure that's exactly what you're wanting. try
Code:
on *:TEXT:!attack*:#ChannelName:{
if ($me isop $chan) .msg $chan http://blablabla.attack.rushy.com?php=id? $+ $$2
}

Just change #ChannelName to your Channel, and edit the url to whatever url you want. If this isn't exactly what you're asking for, I apologize.

Top
#136856 - 05/12/05 05:23 PM Re: Pop up by command
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
Posts: 525
Quote:
I just got off work, and tired, and not fulling comprehending what you're asking. You want it so that when someone types !attack <nick> while you're an Op in a channel, it displays a link with <nick> at the end? Sounds easy enough, but I'm not sure that's exactly what you're wanting. try
Code:
on *:TEXT:!attack*:#ChannelName:{
if ($me isop $chan) .msg $chan http://blablabla.attack.rushy.com?php=id? $+ $$2
}

Just change #ChannelName to your Channel, and edit the url to whatever url you want. If this isn't exactly what you're asking for, I apologize.


You can replace the isop check by using the @ prefix. If that's what he's asking for then it's probably a good idea to check that the attacked person is on the channel.

Code:
on [color:red]@[/color]*:TEXT:!attack *:#ChannelName:{
  if ($2 ison #) .msg # http://blablabla.attack.rushy.com?php=id? $+ $$2
}


Edited by schaefer31 (05/12/05 05:28 PM)

Top
#136857 - 05/12/05 06:21 PM Re: Pop up by command
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
I'm not going to click on that link, so I don't know what it actually is.. I don't know if it's forum policy or not, but I don't think we should be helping with a script that allows one user to 'attack' another. If that link is not malicious, then disregard this.

-genius_at_work

Top
#136858 - 06/12/05 01:19 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
Quote:
I'm not going to click on that link, so I don't know what it actually is.. I don't know if it's forum policy or not, but I don't think we should be helping with a script that allows one user to 'attack' another. If that link is not malicious, then disregard this.

-genius_at_work


LoL, the link doesnt work, its a Example, guys where do i put this script ?

Top
#136859 - 06/12/05 01:24 AM Re: Pop up by command
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Put it in remotes. smile

-Andy

Top
#136860 - 06/12/05 01:32 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
well, i just did, and it doesnt popup anything.. why`?

this is how i made it look like:

on @*:TEXT:!attack *:#TT1337:{
if ($2 ison #) .msg # http://torax.outwar.com/attack.php?attackname=id? $+ $$2
}


where it says =id? there should be the name you write after !attack

Top
#136861 - 06/12/05 01:37 AM Re: Pop up by command
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
It will only work if the person who gets attacked is in the channel. And if you are an op on the channel.

Other than that, the message is being sent but you cannot see it because it's prefixed with a (.).

-Andy

Top
#136862 - 06/12/05 01:42 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
lol the person is not supposed to be in channel..


i need a script that will popup writing:

http://torax.outwar.com/attack.php?attackname=Bla


If i write !attack Bla


if i write !attack Lol

then it popups and write

http://torax.outwar.com/attack.php?attackname=Lol

Top
#136863 - 06/12/05 01:51 AM Re: Pop up by command
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Code:
on @*:TEXT:!attack *:#TT1337:{
  msg # $+($chr(3),12,$+(http://torax.outwar.com/attack.php?attackname=,$2),$chr(3))
}


-Andy

Top
#136864 - 06/12/05 01:55 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
thx, but it doesnt popup :S

Top
#136865 - 06/12/05 02:03 AM Re: Pop up by command
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
What do you mean by popup?

Code:
on @*:TEXT:!attack *:#:{
  var %x = $+($chr(3),12,$+(http://torax.outwar.com/attack.php?attackname=,$2),$chr(3))
  msg # %x | run iexplore $strip(%x)
}


-Andy

Top
#136866 - 06/12/05 02:07 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
i meen, it doesnt write any text..

i want it to be when people write !attack Noob
then i write automaticly the link that they have to press

Top
#136867 - 06/12/05 02:09 AM Re: Pop up by command
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
It works for me:

[19:08] <Andy> !attack SvL
[19:08] <SK> http://torax.outwar.com/attack.php?attackname=SvL

-Andy

Top
#136868 - 06/12/05 02:55 AM Re: Pop up by command
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
If you have been trying to test the script yourself, you can't. You need to have someone else type the command for you.

-genius_at_work

Top
#136869 - 06/12/05 11:01 AM Re: Pop up by command
SvL Offline
Pikka bird

Registered: 16/11/05
Posts: 14
Still doesnt work if other writes it confused



in my remote i have this script : on @*:TEXT:!attack *:#TT1337:{ msg # $+($chr(3),12,$+(http://torax.outwar.com/attack.php?attackname=,$2),$chr(3))}

Top
#136870 - 06/12/05 03:05 PM Re: Pop up by command
Kelder Offline
Hoopy frood

Registered: 12/04/03
Posts: 701
Loc: Leuven, Belgium
Code:
on @*:TEXT:!attack *:#TT1337: { 
  msg # $+($chr(3),12,http://torax.outwar.com/attack.php?attackname=,$2,$chr(3))
}


The } at the end must not touch anything else, put a space in front of it. Same goes for { and | and most other operators and commands: put spaces around them or they don't work. I also removed the double $+(), the first one does the same already.

The @ says 'only do this when I'm op' so make sure you are an op in that channel when someone else uses the trigger.

Top