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: 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
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 Online   content
WyldRyde Staff

Registered: 10/20/07
Posts: 62
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: 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]
Justin Administrator Online   content
WyldRyde Staff

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]
jwire4 Offline
newbie

Registered: 03/18/08
Posts: 46
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: 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]
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: 46
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
Caps Warning
by tplack
09/04/08 04:51 PM
Thank You Moderators
by UncleJohn
09/03/08 08:36 PM
mIRC on <censored> notice
by Jerry
09/03/08 08:29 PM
Who uses Twitter?
by Jerry
09/03/08 08:26 PM
Happy birthday usrbingeek!
by tplack
09/03/08 08:13 PM
What do you guys think the best IRC client is?
by iPhone
09/03/08 08:05 PM
!add !edIT !del for a mIRC bot
by boredcollegekid
09/02/08 05:14 PM
Using mIRC on multiple networks
by iAlex
09/02/08 01:20 AM
Profile Settings
by usrbingeek
09/01/08 03:15 PM
MyNick
by Jonny
09/01/08 05:49 AM
How do I identify on Rooms app for iPhone?
by techman224
08/31/08 06:26 PM
Automated Ban removal
by iPhone
08/28/08 11:32 PM
Recent Pics
Old school IRC
How to use Google!
TIX
Who's Online
1 Registered (houts), 4 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 438
Kat 235
iPhone 99
Phil 90
Freekie 79
techman224 68
CCMike 66
Justin 61
wirelesspacket 52
tengrrl 51
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.