Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Relay?
Relay? [message #188498] Sun, 05 February 2006 10:26 Go to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
Is there not a relay script for mirc...
One where it copies the text on one channel to another???
kinda like a admin channel.


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Relay? [message #188584 is a reply to message #188498] Mon, 06 February 2006 05:53 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
on *:TEXT:#adminchan: {
if ($nick == botnick) {
if (!help isin $1-) {
halt
}
msg #mainchan $1-
}
}

on *:TEXT:#mainchan: {
if ($1 == !pi) {
msg #adminchan !pi
}
}


Above is a very basic code for relaying messages to channel. Have a look through it and see if you can understand it. To make it work but it in an mIRC remote.

#mainchan = Your main channel
#adminchannel = You admin channel
botnick = Name of your brenbot/nr/cs bot


Let all your wishes be granted except one, so you will still have something to strieve for.
!setjoin? [message #188722 is a reply to message #188498] Mon, 06 February 2006 22:47 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
ok. Well now all i need is a !setjoin !viewjoin commands for my channels...lol does anyone know where to find???

http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Relay? [message #188727 is a reply to message #188498] Mon, 06 February 2006 23:40 Go to previous messageGo to next message
TD is currently offline  TD
Messages: 966
Registered: May 2005
Karma: 0
Colonel
You shouldn't use !setjoin and !viewjoin as a command for people at IRC, since it might interfere with BRenBot. You need a mIRC script for this.

http://i38.tinypic.com/6fs2s9.png
Re: Relay? [message #188743 is a reply to message #188498] Tue, 07 February 2006 01:42 Go to previous messageGo to next message
light is currently offline  light
Messages: 988
Registered: January 2005
Karma: 0
Colonel
Write your own, it's the best way to learn.

You can store them in a text file, or use a hash file.


http://www.azupload.com/displayImage.php/setid2745.png
Re: Relay? [message #188782 is a reply to message #188727] Tue, 07 February 2006 14:36 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
TD wrote on Mon, 06 February 2006 22:40

You shouldn't use !setjoin and !viewjoin as a command for people at IRC, since it might interfere with BRenBot. You need a mIRC script for this.


I dont use Brenbot. I use CS Very Happy
And how am i suppost to learn if i dont know where to start?

ive tired to do it but i cant (i ended up making !rec and !noob)
lol still !setjoin = hard


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Relay? [message #188906 is a reply to message #188498] Wed, 08 February 2006 04:23 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

http://www.multiplayerforums.net/index.php?showtopic=12702

https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Relay? [message #189042 is a reply to message #188498] Wed, 08 February 2006 20:26 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
http://img156.imageshack.us/img156/6120/untitled4iw.jpg

http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Relay? [message #189096 is a reply to message #188498] Thu, 09 February 2006 01:28 Go to previous messageGo to next message
light is currently offline  light
Messages: 988
Registered: January 2005
Karma: 0
Colonel
I'll start you off.

Here is how to add to a hash file

alias /joinadd {
  if ($ isin $2-) {
    /notice $$1 You cannot have the $ symbol in your join message.
    halt
  }
  .hadd -m JoinMsg $$1 $$2-
  /notice $$1 Your join message: $$2- has been set.
}


Note, the $ symbol isn't allowed because people can use $ip etc. to find out your info.

And here is how it is called:

    ; Join Message Commands
    else if ($1 == !setjoin) {
      /joinadd $nick $2-
    }


Learn about key-value pairs. One key for one peice of data. The key has to be unique, so a nickname is a good option for a key. The value can be anything, so thats your message.

; Displaying when a person joins
on *:JOIN:# {
  if ($hget(JoinMsg, $nick)) {
    /msg %mainchan [ $+ $nick $+ ]: $hget(JoinMsg, $nick)
  }
}



http://www.azupload.com/displayImage.php/setid2745.png
Re: Relay? [message #189109 is a reply to message #188498] Thu, 09 February 2006 05:49 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
To allow the $ you can use $eval(string, 0/1) I think.

Let all your wishes be granted except one, so you will still have something to strieve for.
Re: Relay? [message #189391 is a reply to message #188498] Fri, 10 February 2006 13:13 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
Useing a ini is much easyer to do

on *:join:#:{
  if (!$readini(ini\config.ini,setjoin,$nick)) {  }
  else { .msg %mainchan $readini(ini\config.ini,setjoin,$nick) }
}
on *:TEXT:!setjoin*:#:{
  .writeini ini\config.ini setjoin $nick $2- 
  .notice $nick your join message has been saved.
}
on *:TEXT:!viewjoin*:#:{
  if (!$readini(ini\config.ini,setjoin,$nick)) { 
  .notice $nick You haven't set a join message yet, Set it now by typing: !setjoin [message] }
  else { .msg %mainchan Your join message is: $readini(ini\config.ini,setjoin,$nick) }
}
on *:TEXT:!deljoin*:#:{
  if (!$readini(ini\config.ini,setjoin,$nick)) { 
  .notice $nick You haven't got a join message to delete }
  else { .remini ini\config.ini setjoin $nick | .notice $nick Done }
}





goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: Relay? [message #189414 is a reply to message #188498] Fri, 10 February 2006 16:30 Go to previous message
light is currently offline  light
Messages: 988
Registered: January 2005
Karma: 0
Colonel
A text file is easier I admit, but hash files are faster and more efficient. (You won't notice it, but it makes me feel good)

http://www.azupload.com/displayImage.php/setid2745.png
Previous Topic: NR & ssaow
Next Topic: Signature Pictures.
Goto Forum:
  


Current Time: Tue Dec 03 10:22:11 MST 2024

Total time taken to generate the page: 0.01418 seconds