|
|
#1887 - 04/30/08 11:13 PM
PMing a bot to change topic, status, etc
|
newbie
Registered: 03/18/08
Posts: 46
Loc: Califotnia
|
This is the code I have. It works, but when It changes the topic, my status and static go away.. How can I get the static and static to stay? on 1:TEXT:topic *:?:{ if ($nick == jwire4) { /topic #rtvchatroom $2- } }
_________________________
<witty comment here>
|
|
Top
|
|
|
|
Sponsored Links
Member
    
Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
|
|
|
Top
|
|
|
|
#1890 - 05/01/08 11:06 AM
Re: PMing a bot to change topic, status, etc
[Re: jwire4]
|
Registered: 10/20/07
Posts: 62
Loc: Arizona
|
on 1:TEXT:topic *:?:{ if ($nick == jwire4) { /topic #rtvchatroom /set %rtvtopic $2- | /topic $chan Topic: %rtvtopic / Jwire4 %rtvstatus / %rtvstatic } }
on 1:TEXT:status *:?:{ if ($nick == jwire4) { /topic #rtvchatroom /set %rtvstatus $2- | /topic $chan Topic: %rtvtopic / Jwire4 %rtvstatus / %rtvstatic } }
on 1:TEXT:static *:?:{ if ($nick == jwire4) { /topic #rtvchatroom /set %rtvstatic $2- | /topic $chan Topic: %rtvtopic / Jwire4 %rtvstatus / %rtvstatic } }
}That should work.
_________________________
Justin Services Admin on Resurrection and Neptune
|
|
Top
|
|
|
|
#1892 - 05/01/08 02:56 PM
Re: PMing a bot to change topic, status, etc
[Re: Justin]
|
newbie
Registered: 03/18/08
Posts: 46
Loc: Califotnia
|
Dosen't work. It won't keep a status or static or topic.
_________________________
<witty comment here>
|
|
Top
|
|
|
|
#1894 - 05/01/08 07:03 PM
Re: PMing a bot to change topic, status, etc
[Re: jwire4]
|
Registered: 10/20/07
Posts: 62
Loc: Arizona
|
make sure you do status text and static text at least once, to set the variables. Then, the next time you do topic newtopic here, it should set it, while keeping the others the same. If that doesn't work -- I'll have someone more talented than myself take a look over here. Im not known for my scripting abilities =)
_________________________
Justin Services Admin on Resurrection and Neptune
|
|
Top
|
|
|
|
#1906 - 05/02/08 01:39 PM
Re: PMing a bot to change topic, status, etc
[Re: Justin]
|
newbie
Registered: 03/18/08
Posts: 46
Loc: Califotnia
|
good try. Still doesn't work though  Whenever I set the status or static it sets it as the topic.
_________________________
<witty comment here>
|
|
Top
|
|
|
|
#1946 - 05/06/08 07:58 PM
Re: PMing a bot to change topic, status, etc
[Re: jwire4]
|
n00b
Registered: 12/21/07
Posts: 17
Loc: Arkansas, USA
|
This isn't that hard.
Notes: For this to work you must have 2 separate channels.
Set #myops to your OPS Channel. Set 'gtopic', 'gstatus', and 'gstatic' to whatever trigger text you want.
Set OzarkMark to your nickname. Set #greenerhomeowner to your main channel name Make sure you copy exactly as shown. Omitting a space anywhere will make the script not work.
If you are using the same mIRC as the script resides on, remember mIRC doesn't listen to remote text commands from itself so you either must have another op/hop set the topic, status, and static message or you have to have the opped WR bot in your channel and you give it the following command: (Remember to change the triggers as stated above)
/bs say #myops gtopic THis is the topic /bs say #myops gstatus is doing stuff /bs say #myops gstatic This is the static message
If you want to automate it by using an alias: Put these in your ALIAS TAB:
/gtop /bs say $chan gtopic $$?="Topic" /gss /bs say $chan gstatus $$?="Status" /gsc /bs say $chan gstatic $$?="Static"
Copy This to REMOTE TAB:
on 1:text:gtopic *:#myops: { if ($nick isop $chan || $nick ishop $chan) { { /set %btopic $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic } } else { /msg $chan Sorry, $nick only hops/ops can change topic. } } on 1:text:gstatus *:#myops: { if ($nick isop $chan || $nick ishop $chan) { { /set %bstatus $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic } } else { /msg $chan Sorry, $nick only hops/ops can change Status. } } on 1:text:gstatic *:#myops: { if ($nick isop $chan || $nick ishop $chan) { { /set %bstatic $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic } } else { /msg $chan Sorry, $nick only hops/hops can change Static message. } }
|
|
Top
|
|
|
|
#1958 - 05/06/08 10:13 PM
Re: PMing a bot to change topic, status, etc
[Re: OzarkMark]
|
newbie
Registered: 03/18/08
Posts: 46
Loc: Califotnia
|
It doesn't work
_________________________
<witty comment here>
|
|
Top
|
|
|
|
#1960 - 05/06/08 11:18 PM
Re: PMing a bot to change topic, status, etc
[Re: jwire4]
|
n00b
Registered: 12/21/07
Posts: 17
Loc: Arkansas, USA
|
It does work. I am using it right now. I can't help it if you are not copying it correctly, but just in case... Try this. It is the same thing. on 1:text:gtopic *:#myops: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %btopic $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic }
}
else {
/msg $chan Sorry, $nick only hops/ops can change topic.
}
}
on 1:text:gstatus *:#myops: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %bstatus $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic }
}
else {
/msg $chan Sorry, $nick only hops/ops can change Status.
}
}
on 1:text:gstatic *:#myops: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %bstatic $2- | /cs topic #greenerhomeowner Topic: %btopic / OzarkMark %bstatus / %bstatic }
}
else {
/msg $chan Sorry, $nick only hops/hops can change Static message.
}
}
|
|
Top
|
|
|
|
#1984 - 05/07/08 10:17 AM
Re: PMing a bot to change topic, status, etc
[Re: OzarkMark]
|
newbie
Registered: 03/18/08
Posts: 46
Loc: Califotnia
|
I got it o work. Erick changed some things around.
_________________________
<witty comment here>
|
|
Top
|
|
|
|
Moderator: AdmiralJustin, Atri, Catt, crrj, dolsen, Freekie, Helio, Jeff, jpmk12, Justin, Kat, mandy, Mist, nobody, Phil, Pierce, Ryan, SuburbanWolf, therock247uk, ThunderIT-Allan, usrbingeek
|
|
1 Registered (1 invisible),
3
Guests and
6
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|