Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Relay?
Re: Relay? [message #189096 is a reply to message #188498] Thu, 09 February 2006 01:28 Go to previous messageGo to previous message
light is currently offline  light
Messages: 988
Registered: January 2005
Karma:
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NR & ssaow
Next Topic: Signature Pictures.
Goto Forum:
  


Current Time: Sat Feb 01 14:57:33 MST 2025

Total time taken to generate the page: 0.00770 seconds