mIRC Home    About    Download    Register    News    Help

Print Thread
#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

#136855 05/12/05 02:26 PM
Joined: Nov 2005
Posts: 105
D
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.

#136856 05/12/05 05:23 PM
Joined: Aug 2005
Posts: 525
S
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.
#136857 05/12/05 06:21 PM
Joined: Oct 2005
Posts: 1,741
G
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

#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 ?

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

-Andy

#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

#136861 06/12/05 01:37 AM
Joined: Dec 2002
Posts: 3,547
S
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

#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

#136863 06/12/05 01:51 AM
Joined: Dec 2002
Posts: 3,547
S
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

#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

#136865 06/12/05 02:03 AM
Joined: Dec 2002
Posts: 3,547
S
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

#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

#136867 06/12/05 02:09 AM
Joined: Dec 2002
Posts: 3,547
S
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

#136868 06/12/05 02:55 AM
Joined: Oct 2005
Posts: 1,741
G
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

#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))}

#136870 06/12/05 03:05 PM
Joined: Apr 2003
Posts: 701
K
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.


Link Copied to Clipboard