mIRC Home    About    Download    Register    News    Help

Print Thread
#262115 02/01/18 11:07 AM
Joined: Dec 2017
Posts: 15
S
super Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2017
Posts: 15
good Morning,
I want to connect two servers in a Mirc and each set up 2 #challel
see spoiler:
Click to reveal..

on 1:start: {

;start variablen ISKV
if (!%sm.nick-is) { set %sm.nick-is $$?="Bitte gib deinen NickNamen beim ISKV ein!" | nick %sm.nick-is }
if (!%sm.passwort-is) { set %sm.passwort-is $$?="Bitte gib ein Passwort für ISKV ein! (Und merke es dir!)" }

;start variablen stockreizer
if (!%sm.nick-sr) { set %sm.nick-sr $$?="Bitte gib deinen NickNamen beim stockreizer ein!" | nick %sm.nick-sr }
if (!%sm.passwort-sr) { set %sm.passwort-sr $$?="Bitte gib ein Passwort für stockreizer ein! (Und merke es dir!)" }

;start variablen EMAIL -- für beide server gültig
if (!%sm.email) { set %sm.email $$?="Bitte gib deine Email-Adresse ein!" | emailaddr %sm.email }

/server iZ-smart.net
/server -m irc.bongster.de
}

on *:CONNECT:{
if ($network == iZ-smart.net) {
/join #stockreizer
/nick %sm.nick-sr
/msg nickserv identify fischzucht
echo stockreizer
/window -h "Status Window"
}

if ($network == bongster) {
/join #Verband
/nick %sm.nick-is
/msg nickserv identify fischzucht
echo verband
/window -h "Status Window"
/window -h "Verband"
}
}




how can I now create independent MENU (popups) in the different #channel
it should
with server: iZ-smart.net in the channel #stockreizer a menu nicklist [/ echo hallo stockreizer] be set up.
with server: bongster in the channel #Verband a menu nicklist [/ echo hello band] be set up.


all a happy new year 2018

Many Thanks
greeting roland


PS: text was translated with google from german


Many Thanks
gruss roland alias [super]

PS: text was translated with google from german
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
This adds item to channel's right-click menu. The location within the menu depends whether it's in a script loaded above or below scripts where other menu items are located.

Code:
menu channel {
  $iif($network == iZ-smart.net,Label shown at iZ-smart.net)
  .$submenu($Any_Name_You_Choose($1))
  $iif($network == bongster    ,Label shown at bongster)
  .$submenu($Any_Name_You_Choose($1))
}

alias Any_Name_You_Choose {
  if ($1 == begin) return -
  if ($network == iZ-smart.net) {
    if ($1 == 1) return Label1:Command1
    if ($1 == 2) return Label2:Command2
    if ($1 == 3) return Label3:Command_or_alias 3
  }
  if ($network == bongster) {
    if ($1 == 1) return Label1:Command1
    if ($1 == 2) return Label2:Command2
    if ($1 == 3) return Label3:Command3
  }
  ; next menu items show at any network called by $submenu
  if ($1 == 4) return -
  if ($1 == 5) return Label5:Command5
  if ($1 == 6) return Label6:Command6
  if ($1 == end) return -
}

Last edited by maroon; 02/01/18 09:04 PM.

Link Copied to Clipboard