mIRC Home    About    Download    Register    News    Help

Print Thread
Pop up by command #136854 04/12/05 11:18 PM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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

Re: Pop up by command #136855 05/12/05 02:26 PM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
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.

Re: Pop up by command #136856 05/12/05 05:23 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
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
}

Last edited by schaefer31; 05/12/05 05:28 PM.
Re: Pop up by command #136857 05/12/05 06:21 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: Pop up by command #136858 06/12/05 01:19 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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 ?

Re: Pop up by command #136859 06/12/05 01:24 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Put it in remotes. smile

-Andy

Re: Pop up by command #136860 06/12/05 01:32 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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

Re: Pop up by command #136861 06/12/05 01:37 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: Pop up by command #136862 06/12/05 01:42 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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

Re: Pop up by command #136863 06/12/05 01:51 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on @*:TEXT:!attack *:#TT1337:{
  msg # $+($chr(3),12,$+(http://torax.outwar.com/attack.php?attackname=,$2),$chr(3))
}


-Andy

Re: Pop up by command #136864 06/12/05 01:55 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
Posts: 14
thx, but it doesnt popup :S

Re: Pop up by command #136865 06/12/05 02:03 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: Pop up by command #136866 06/12/05 02:07 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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

Re: Pop up by command #136867 06/12/05 02:09 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It works for me:

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

-Andy

Re: Pop up by command #136868 06/12/05 02:55 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: Pop up by command #136869 06/12/05 11:01 AM
Joined: Nov 2005
Posts: 14
S
SvL Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Nov 2005
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))}

Re: Pop up by command #136870 06/12/05 03:05 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
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.