|
SvL
|
SvL
|
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?SvLCan 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 
|
|
|
|
Joined: Nov 2005
Posts: 104
Vogon poet
|
Vogon poet
Joined: Nov 2005
Posts: 104 |
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
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.
|
|
|
|
schaefer31
|
schaefer31
|
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
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. 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.
|
|
|
|
Joined: Oct 2005
Posts: 1,671
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,671 |
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
|
|
|
|
SvL
|
SvL
|
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 ?
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Put it in remotes.  -Andy
|
|
|
|
SvL
|
SvL
|
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
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
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
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
on @*:TEXT:!attack *:#TT1337:{
msg # $+($chr(3),12,$+(http://torax.outwar.com/attack.php?attackname=,$2),$chr(3))
}
-Andy
|
|
|
|
SvL
|
SvL
|
thx, but it doesnt popup :S
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
What do you mean by popup?
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
|
|
|
|
SvL
|
SvL
|
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
|
|
|
|
Joined: Oct 2005
Posts: 1,671
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,671 |
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
|
|
|
|
SvL
|
SvL
|
Still doesnt work if other writes it  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))}
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
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.
|
|
|
|
|