Sponsored Links




Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#1887 - 04/30/08 11:13 PM PMing a bot to change topic, status, etc
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
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
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]
Justin Administrator Offline
WyldRyde Staff

Registered: 10/20/07
Posts: 66
Loc: Arizona
Code:
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., Neptune. and Odyssey
Co-Admin on Pegasus

Top
#1892 - 05/01/08 02:56 PM Re: PMing a bot to change topic, status, etc [Re: Justin]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
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]
Justin Administrator Offline
WyldRyde Staff

Registered: 10/20/07
Posts: 66
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., Neptune. and Odyssey
Co-Admin on Pegasus

Top
#1906 - 05/02/08 01:39 PM Re: PMing a bot to change topic, status, etc [Re: Justin]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
Loc: Califotnia
good try. Still doesn't work though frown 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]
OzarkMark Offline
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.
}
}
_________________________
OzarkMark
#greenerhomeowner, #chris, #NUKE
www.GreenerHomeowner.com

Top
#1958 - 05/06/08 10:13 PM Re: PMing a bot to change topic, status, etc [Re: OzarkMark]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
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]
OzarkMark Offline
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.

Code:
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.
  }
} 
_________________________
OzarkMark
#greenerhomeowner, #chris, #NUKE
www.GreenerHomeowner.com

Top
#1984 - 05/07/08 10:17 AM Re: PMing a bot to change topic, status, etc [Re: OzarkMark]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
Loc: Califotnia
I got it o work. Erick changed some things around.
_________________________
<witty comment here>

Top
#2028 - 05/08/08 05:35 PM Re: PMing a bot to change topic, status, etc [Re: jwire4]
OzarkMark Offline
n00b

Registered: 12/21/07
Posts: 17
Loc: Arkansas, USA
woohoo!

There is a simpler way just to give the direct command to the bot, but i haven't written or tried it yet.

As long as you got it working.
_________________________
OzarkMark
#greenerhomeowner, #chris, #NUKE
www.GreenerHomeowner.com

Top
Page 1 of 2 1 2 >


Recent Posts
!aop and chanserv
by usr_local
Today at 07:08 PM
Access list
by usr_local
Today at 06:26 PM
How do I identify on Rooms app for iPhone?
by rickasdf
Today at 01:54 AM
my favorite channels on WR
by rickasdf
Today at 01:52 AM
Rules for Voiced (+v) users in #Chris
by GrimReaper
Yesterday at 12:52 PM
Script Bots. Need One?
by Rockbuddy
10/10/08 09:16 PM
Kick and ban ustream spammers
by Rockbuddy
10/07/08 04:21 PM
Commands
by Rockbuddy
10/07/08 04:09 PM
Topic setter's username is appended to topic
by rickasdf
10/06/08 12:55 AM
Kat
by RyanBecker
10/04/08 01:16 PM
Whos wants to help make a bot?
by RyanBecker
10/04/08 09:01 AM
Notifier Tip Script
by Firebucket
10/04/08 01:31 AM
Recent Pics
The Uplink game with IRC!
My Windows Desktop
My Mac Desktop
Who's Online
0 Registered (), 3 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 454
Kat 246
iPhone 106
Phil 90
Freekie 82
techman224 73
CCMike 67
Justin 66
tengrrl 53
wirelesspacket 52
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.