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 Online   content
newbie

Registered: 03/18/08
Posts: 42
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: 59
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 Online   content
newbie

Registered: 03/18/08
Posts: 42
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: 59
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 Online   content
newbie

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

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

Registered: 03/18/08
Posts: 42
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
Time Difference Script
by jwire4
4 minutes 39 seconds ago
Flash Chat version difference
by techman224
Today at 09:20 PM
Flash Chat and strange 'flashing' display
by techman224
Today at 08:48 PM
Fantasy Commands Feedback and Suggestions
by techman224
Today at 08:43 PM
!add !edIT !del for a mIRC bot
by Jerry
Yesterday at 06:41 PM
Kat
by techman224
08/18/08 10:11 PM
Hello #turtles People....
by techman224
08/18/08 10:06 PM
Looking for Half-ops and Ops for #techman
by techman224
08/18/08 09:57 PM
New Advertising Channel #advertising.
by techman224
08/18/08 09:43 PM
Rules for Voiced (+v) users in #Chris
by Bloomedis
08/15/08 04:12 AM
Chris Thanks
by iPhone
08/15/08 03:52 AM
Who ownes Wyldryde?
by techman224
08/14/08 09:10 AM
Recent Pics
Old school IRC
How to use Google!
TIX
Who's Online
5 Registered (Alicia, Fiber, jwire4, techman224, tengrrl), 7 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 426
Kat 228
iPhone 86
Phil 86
Freekie 77
CCMike 63
Justin 59
wirelesspacket 51
KY_Wildcat 48
tengrrl 46
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.