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
newbie

Registered: 03/18/08
Posts: 35
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: 53
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 and Neptune

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

Registered: 03/18/08
Posts: 35
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: 53
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]
jwire4 Offline
newbie

Registered: 03/18/08
Posts: 35
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
newbie

Registered: 03/18/08
Posts: 35
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
newbie

Registered: 03/18/08
Posts: 35
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
Linkinus Help
by iPhone
Today at 02:21 AM
Brag Script
by Justin
Yesterday at 03:40 PM
Moderation in #Chris
by Firebucket
Yesterday at 10:05 AM
Question about the !topic command
by EddieRingle
07/18/08 11:03 PM
I think
by Kat
07/18/08 06:24 PM
"what is" commands
by tengrrl
07/18/08 06:20 PM
Simple, but useful Away script :)
by Jerry
07/18/08 06:13 PM
Away notification script
by boredcollegekid
07/18/08 05:32 PM
Who wants to help build a bot?
by RyanBecker
07/18/08 05:24 PM
Make a bot respond to a command?
by iBook
07/18/08 05:10 PM
Rules for Voiced (+v) users in #Chris
by Randall
07/18/08 03:07 AM
Make a bot say something in a channel by a PM
by RyanBecker
07/17/08 09:53 PM
Recent Pics
How to use Google!
TIX
Bass Clef
Who's Online
1 Registered (AdmiralJustin), 8 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 387
Kat 221
Phil 86
iPhone 75
Freekie 69
CCMike 61
Justin 53
wirelesspacket 51
KY_Wildcat 48
boredcollegekid 39
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.