mIRC Home    About    Download    Register    News    Help

Print Thread
#146631 06/04/06 02:21 PM
Joined: Sep 2005
Posts: 116
I
Vogon poet
OP Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
i know to use ; in mic sripts but i was just wondering doesnt mmirc got some sing to disable big pieces of code ?

like c has / and /* */
lua has -- and --[[ ]]--

if not thn see it as a request :tongue:

#146632 06/04/06 02:29 PM
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
It does. It looks like this:
Code:
/*
This is a comment
This is more commenting.
More lines...
...
....
*/

#146633 06/04/06 03:36 PM
Joined: Sep 2005
Posts: 116
I
Vogon poet
OP Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
ah cool the c style :tongue:

#146634 06/04/06 05:30 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Another good way to "switch on-off" large pieces of code is to use groups...

[code]
#GroupName off
alias test {
; Groups must appear outside of aliases and events
}
#GroupName end

/enable #GroupName
/disable #GroupName


NaquadaBomb
www.mirc-dll.com
#146635 06/04/06 08:23 PM
Joined: Sep 2005
Posts: 116
I
Vogon poet
OP Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
funneh enoghu i borke my script completely whit commenting /* */ can some1 see the error ?

Code:
/*-----------------------------------------------------*\
;                     mIRC Commands                    ;
;------------------------------------------------------;
/smsg (servername) (channelname) (message)
;part of irc servername
;#channel
;message
will send a chat message to channel channelname on irc server servername

/scmd (servername) (command)
;part of irc servername
;command
will preform the command on irc server servername

/ingameirc_start (0 1 2) 
;scriptmode 0 = disabled 1 = enabled 2 = enabled whit reading console
starts sending messages

/ingameirc_stop
stops the script from sending messages

/ingameirc_sendtoconsole (cmd parameters)
;conosle command
send the entire message to your ingame conosle

/ingameirc_readconsole
read the console and prefrom any irc commands

/ingameirc_clearconsole
clears the hidden console

/ingameirc_addchan (channel nane including #) (channel flags)
;#channel
;flags (cnatijqpkbm)
add the channel for use in ingameirc

/ingameirc_togglechanflag (flag)
toggle the flag on or off

/ingameirc_removechan (channel name including #)
;#channel
removes the channel from the list

/ingameirc_addgame (RTCW ET Q3 COD CODUO ALL)
;game
adds a game to send to / read from

/ingameirc_togglegame (RTCW ET Q3 COD CODUO ALL)
;game
toggles a game on / off for ingameirc

/ingameirc_removegame (RTCW ET Q3 COD CODUO ALL)
;game
removes a game to send to / read from
;------------------------------------------------------;
\*----------------------------------------------------*/



/*----------------------------------------------------*\
;                    ingame command                    ;
;------------------------------------------------------;
/irc (command)
;mirc command
will send command to irc whit its parameters and, echo's a message back when console gets readed to see if the command was readed sucsesfully
;------------------------------------------------------;
\*----------------------------------------------------*/



;------------------------------------------------------;
;                IngameIRC Configuration               ;
;------------------------------------------------------;
alias -l ingameirc_load {
  $ingameirc_addgame(RTCW)
  $ingameirc_addgame(ET)
  ;the games u want
  /*
  ---parameters-1-
  1. the game u want to use whit ingameirc (allowed values: RTCW ET Q3 COD CODUO ALL)
  */

  $ingameirc_addchannel(#etpro,ctnaijqpkbm)
  $ingameirc_addchannel(#mirc,c)
  $ingameirc_addchannel(#=FF=Clan,cna)
  ;list of channels to send to ingame
  /*
  ---parameters-2-
  1. channel name including the # (allowed values: text)
  2. flags used to decide wut messages to send and witch not to send (allowed values: text only cnatijqpkbm)
  ----------------
  allowed flag: ((if u use UPPERCASE flags that message will be private messaged to u in ingame chat (useing /msg %ingameirc_nickname messsage)(only ET:ETPRO / RTCW:BANIMOD)(allowed values: text CNATIJQPKBMctnaijqpkbm)))
  c = normal chats
  n = notice
  a = action
  t = toipc
  i = nick
  j = join
  q = quit
  p = part
  k = kick
  b = ban
  m = channel modes
  */

  ;minor settings
  %ingameirc_nickname     = Et Player   ;your ingame nickname (used to msg yourself ingame)(allowed values: text)
  %ingameirc_prefix       = (InGameIRC) ;ingame prefix added to your messages (allowed values: text)
  %ingameirc_sendquery    = 1           ;send query messages (allowed values: 1 0)
  %ingameirc_senddcc      = 1           ;send DCC chats (allowed values: 1 0)
  %ingameirc_readingdelay = 5           ;reading interval delay in seconds (allowed values: nummers greater or equal then 1)


  $ingameirc_start(2)
  ;the mode the script will run in
  /*
  ---parameters-1-
  1. scriptmode 0 = disabled 1 = enabled 2 = enabled whit reading console (allowed values: 0 1 2)
  ----------------
  */

  ;just a litle message to ingame conosle
  ingameirc_sendtoconsole echo .^8..IRC^1(^7 $+ ^1INGAME IRC $+ ^1)^7: ^6 $+ Loaded ^1Version^7: ^32.0
}
;------------------------------------------------------;
;------------------------------------------------------;



;--------------;
;script startup;
;--------------;
on *:LOAD: { 
  set -n %imgameirc_temp $NULL
  set %ingameirc_script 0
  set %i 0
  set %ingameirc_sendquery 0
  set %ingameirc_senddcc 0
  set %ingameirc_readingdelay 10
  set -n %ingameirc_prefix $NULL
  set -n %ingameirc_nickname $NULL
  set -n %ingameirc_lastchannel $NULL
}
on *:START: {
  if ($exists(script/dlls/ingame_irc.dll) == $false) {
    echo IngameIrc ERROR: dll not found.
    Halt
  }
  $ingameirc_load()
}
;--------------;
;--------------;



;-----------------;
;  Remote Events  ;
;-----------------;
on *:TEXT:*:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(c)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ $nick $+ ^1)^7: $strip($1-)
      }
    }
  }
}
on *:TEXT:*:?: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if (%ingameirc_sendquery == 1) {
      ;;;if this enabled qeury messages are send as UPPECASE
      ;if (($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == FALSE) || ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == FALSE)) {
      ;  %temp = echo
      ;}
      ;else {
      ;  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE) %temp = msg IngameIrc
      ;  else %temp = msg %ingameirc_nickname
      ;}
      %ingameirc_lastchannel = $chan
      ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ ^4<Private> $+ ^1,^7 $+ $nick $+ ^1)^7: $strip($1-)
    }
  }
}
on *:CHAT:*: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if (%ingameirc_senddcc == 1) {
      ;;;if this enabled DCC messages are send as UPPECASE
      ;if (($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == FALSE) || ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == FALSE)) {
      ;  %temp = echo
      ;}
      ;else {
      ;  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE) %temp = msg IngameIrc
      ;  else %temp = msg %ingameirc_nickname
      ;}
      %ingameirc_lastchannel = $chan
      ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ ^5<DccChat> $+ ^1,^7 $+ $nick $+ ^1)^7: $strip($1-)
    }
  }
}
on *:NOTICE:*:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(n)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Notice> $+ ^1)^7: ^6 $+ $nick $+ : $strip($1-)
      }
    }
  }
}
on *:ACTION:*:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(a)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Action> $+ ^1)^7: ^6 $+ $nick $strip($1-)
      }
    }
  }
}
on *:JOIN:*: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(j)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Join> $+ ^1)^7: ^6 $+ $nick has joined
      }
    }
  }
}
on *:QUIT: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(q)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Quit> $+ ^1)^7: ^6 $+ $nick has quit irc ( $+ $strip($1-) $+ )
      }
    }
  }
}
on *:PART:*: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(r)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Part> $+ ^1)^7: ^6 $+ $nick has left
      }
    }
  }
}
on *:NICK: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(i)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Rename> $+ ^1)^7: ^6 $+ $nick is now known as $newnick
      }
    }
  }
}
on *:TOPIC:*: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(t)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Topic> $+ ^1)^7: ^6 $+ $nick changed topic to $strip($1-)
      }
    }
  }
}
on *:KICK:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(k)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Kick> $+ ^1)^7: ^6 $+ $nick kicked $knick $1-
      }
    }
  }
}
on *:BAN:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(b)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Kick> $+ ^1)^7: ^6 $+ $nick kicked $bnick $1-
      }
    }
  }
}
on *:MODE:#: {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  if (%ingameirc_script > 0) {
    if ($ingameirc_checkchan($chan) >= 0) {
      if ($ingameirc_checkflags(m)) {
        %ingameirc_lastchannel = $chan
        ingameirc_sendtoconsole %imgameirc_temp .^8..IRC^1(^7 $+ $chan $+ ^1,^7 $+ ^5<Mode> $+ ^1)^7: ^6 $+ $nick sets mode to $1-
      }
    }
  }
}
;-----------------;
;-----------------;



;---------------;
;script commands;
;---------------;
;;;$1 = mode the script wil run in (allowed values: 0 = disabled, 1 = only send from irc to ingame, 2 = allow comunication from game to irc this uses more CPU/MEM)
alias ingameirc_start {
  if ($ingameirc_scriptloaded == FALSE) $ingameirc_load()
  $dll(script/dlls/ingame_irc.dll,Start,$NULL)
  %ingameirc_script = 1
  if ($1 > 1) {
    %ingameirc_script = 2
    if (%ingameirc_readingdelay < 1) {
      echo variable ingameirc_readingdelay should be bigger then 1
      %ingameirc_readingdelay = 10
    }
    timerreadconsole -i 0 %ingameirc_readingdelay ingameirc_readconsole
  }
}
;;;

;;;no parameters
alias ingameirc_stop {
  timerreadconsole off
  dll -u script/dlls/ingame_irc.dll
  %ingameirc_script = 0
}
;;;

;;uses channelpionter
;;;$1 = channel
;;;$2 = flags
alias ingameirc_addchan {
  if ($dll(script/dlls/ingame_irc.dll,SelectChannel,$1) >= 0) Halt
  if ($dll(script/dlls/ingame_irc.dll,SelectFreeChannel,$1) == -1) {
    echo Failed to select channel
    Halt
  }
  $dll(script/dlls/ingame_irc.dll,SetChannelName,$1)
  $dll(script/dlls/ingame_irc.dll,SetChannelFlags,$2)
}
;;;

;;uses channelpionter
;;;$1 = flag
alias ingameirc_togglechanflag {
  return $dll(script/dlls/ingame_irc.dll,ToggleChanFlag,$1)
}
;;;

;;uses channelpointer
;;;$1 = channelname
alias ingameirc_removechan {
  if ($dll(script/dlls/ingame_irc.dll,SelectChannel,$1) == -1) {
    echo Failed to select channel
    Halt
  }
  $dll(script/dlls/ingame_irc.dll,ChannelRemove,$NULL)
}
;;;

;;;$1 = game
alias ingameirc_addgame {
  $dll(script/dlls/ingame_irc.dll,AddGame,$1)
}
;;;

;;;$1 = game
alias ingameirc_togglegame {
  if($dll(script/dlls/ingame_irc.dll,ifGameEnabled,$1) == TRUE) $dll(script/dlls/ingame_irc.dll,RemoveGame,$1)
  else $dll(script/dlls/ingame_irc.dll,AddGame,$1)
}
;;;

;;;$1 = game
alias ingameirc_removegame {
  $dll(script/dlls/ingame_irc.dll,RemoveGame,$1)
}
;;;

;;;$1- sends all stuff to game console
alias ingameirc_sendtoconsole {
  $dll(script/dlls/ingame_irc.dll,SendConsole,$1-)
}
;;;

;;;no parameters
alias ingameirc_readconsole {
  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE) $dll(script/dlls/ingame_irc.dll,ScanConsole,RTCW)
  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,ET) == TRUE) $dll(script/dlls/ingame_irc.dll,ScanConsole,ET)
  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,Q3) == TRUE) $dll(script/dlls/ingame_irc.dll,ScanConsole,Q3)
  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,COD) == TRUE) $dll(script/dlls/ingame_irc.dll,ScanConsole,COD)
  if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,CODUO) == TRUE) $dll(script/dlls/ingame_irc.dll,ScanConsole,CODUO)
}
;;;

;;;no parameters
alias ingameirc_clearconsole {
  $dll(script/dlls/ingame_irc.dll,ClearConsole,$NULL)
}
;;;

;;;$1 part of servername
;;;$2 channel / nick
;;;$3- message
alias smsg {
  %i = 0
  while (%i <= $scon(0)) {
    if ($1 isin $scon(%i).server) {
      scon %i msg $2 %ingameirc_prefix $3-
      ingameirc_sendtoconsole echo ^1sending command to^3: $+ $scon(%i).server $+ -> $+ $2-
    }
    inc %i 1
  }
}
;;;

;;;$1 part of servername
;;;$2- command
alias scmd {
  %i = 0
  while (%i <= $scon(0)) {
    if ($1 isin $scon(%i).server) {
      scon %i $2-
      ingameirc_sendtoconsole echo ^1sending message to^3: $+ $scon(%i).server $+ -> $+ $2 $+ ^7: %ingameirc_prefix $3-
    }
    inc %i 1
  }
}
;;;
;---------------;
;---------------;



;-----------------;
;old 1.0 commmands;
;-----------------;
;;;$1- message
alias ingameirc_say {
  msg %ingameirc_lastchannel %ingameirc_prefix $1-
}
;;;

;;;$1 channel / nick
;;;$2- message
alias ingameirc_msg {
  msg $1 %ingameirc_prefix $2-
}
;;;

;;;$1 part of servername
;;;$2 channel / nick
;;;$3- message
alias ingameirc_serv {
  smsg $1 $2 $3-
}
;;;
;-----------------;
;-----------------;



;---------------;
;$cript commands;
;---------------;
;;;$1 game
alias -l ingameirc_scriptloaded { return $dll(script/dlls/ingame_irc.dll,ifChannelsSet,$NULL) }
;;;

;;uses channelpionter
;;;$1 = channel
alias -l ingameirc_checkchan { return $dll(script/dlls/ingame_irc.dll,SelectChannel,$1) }
;;;

;;;$1 = original value 1/0
alias -l ingameirc_switch {
  if ($1 == 1) return 0
  else return 1
}
;;;

;;uses channelpionter
;;;$1 = flag
alias -l ingameirc_checkflags {
  %imgameirc_temp = $dll(script/dlls/ingame_irc.dll,CheckChanFlags,$1)
  if (%imgameirc_temp == TRUE) {
    %imgameirc_temp = echo
    return 1
  }
  elseif (%imgameirc_temp == UPPER) {
    if ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE) %imgameirc_temp = msg IngameIrc
    elseif ($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE) %imgameirc_temp = msg %ingameirc_nickname
    else %imgameirc_temp = echo
    return 2
  }
  return 0
}
;;;
;---------------;
;---------------;



;-------------------------------;
;$cript command to mIRC commands;
;-------------------------------;
alias -l ingameirc_switchgame 		{	ingameirc_togglegame		$1		}
alias -l ingameirc_removechannel 	{	ingameirc_removechan		$1		}
alias -l ingameirc_toggleflag 		{	ingameirc_togglechanflag	$1		}
alias -l ingameirc_addchannel 		{	ingameirc_addchan			$1 $2	}
;-------------------------------;
;-------------------------------;



;------------;
;   menus    ;
;------------;
menu channel {
  -
  Ingame Irc
  .InGameIRC Options
  ;  ..Menu: ingameirc_options NOT FINISHED YET
  ..$iif(%ingameirc_script > 0,$style(1)) Run/Stop Script
  ...$iif(%ingameirc_script > 0,$style(2)) Enable InGameIRC (mIRC to InGame communication only): ingameirc_start 1
  ...$iif(%ingameirc_script > 1,$style(2)) Enable InGameIRC (2 way communiction between mIRC and InGame): ingameirc_start 2
  ...$iif(%ingameirc_script == 0,$style(2)) Disable InGameIRC: ingameirc_stop
  ..Games
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE),$style(1)) (RTCW) Return to Castle Wolfenstein: $ingameirc_switchgame(RTCW)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,ET) == TRUE),$style(1)) (ET) Enemy Territory: $ingameirc_switchgame(ET)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,Q3) == TRUE),$style(1)) (Q3) Quake 3: $ingameirc_switchgame(Q3)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,COD) == TRUE),$style(1)) (COD) Call of Duty: $ingameirc_switchgame(COD)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,CODUO) == TRUE),$style(1)) (CODUO) Call of Duty - United Offensive: $ingameirc_switchgame(CODUO)
  ..Ingame Nick: %ingameirc_nickname = $?="Ingame Nickname:"
  ..Ingame Prefix: %ingameirc_prefix = $?="Ingame Prefix: (to add to your massages from InGame to mIRC)"
  ..$iif(%ingameirc_sendquery == 1,$style(1)) Send Query messages to InGame: %ingameirc_sendquery = $ingameirc_switch(%ingameirc_sendquery)
  ..$iif(%ingameirc_senddcc == 1,$style(1)) Send DCC messages to InGame: %ingameirc_senddcc = $ingameirc_switch(%ingameirc_senddcc)
  ..
  .Options for this Channel
  ..$iif($ingameirc_checkchan($chan) >= 0,$style(1)) Add/Remove Channel
  ...$iif($ingameirc_checkchan($chan) >= 0,$style(2)) Add this Channel (chats only): $ingameirc_addchannel(%ingameirc_chanptr,$chan,c)
  ...$iif($ingameirc_checkchan($chan) >= 0,$style(2)) Add this Channel (chats + notice's + actions): $ingameirc_addchannel(%ingameirc_chanptr,$chan,cna)
  ...$iif($ingameirc_checkchan($chan) >= 0,$style(2)) Add this Channel (whit all flags): $ingameirc_addchannel(%ingameirc_chanptr,$chan,ctnaijqpkbm)
  ...$iif($ingameirc_checkchan($chan) >= 0,,$style(2)) Remove: $ingameirc_removechannel($chan)
  ..$iif($ingameirc_checkchan($chan) >= 0,,$style(2)) Channel Flags
  ...$iif($ingameirc_checkflags(c) > 0,$style(1)) normal Chats: $ingameirc_toggleflag(c)
  ...$iif($ingameirc_checkflags(n) > 0,$style(1)) Notices: $ingameirc_toggleflag(n)
  ...$iif($ingameirc_checkflags(a) > 0,$style(1)) Actions: $ingameirc_toggleflag(a)
  ...$iif($ingameirc_checkflags(t) > 0,$style(1)) Topics: $ingameirc_toggleflag(t)
  ...$iif($ingameirc_checkflags(i) > 0,$style(1)) nIcks: $ingameirc_toggleflag(i)
  ...$iif($ingameirc_checkflags(j) > 0,$style(1)) Joins: $ingameirc_toggleflag(j)
  ...$iif($ingameirc_checkflags(q) > 0,$style(1)) Quits: $ingameirc_toggleflag(q)
  ...$iif($ingameirc_checkflags(p) > 0,$style(1)) Parts: $ingameirc_toggleflag(p)
  ...$iif($ingameirc_checkflags(k) > 0,$style(1)) Kicks: $ingameirc_toggleflag(k)
  ...$iif($ingameirc_checkflags(b) > 0,$style(1)) Bans: $ingameirc_toggleflag(b)
  ...$iif($ingameirc_checkflags(m) > 0,$style(1)) Modes: $ingameirc_toggleflag(m)
  ..
  .Send to Ingame: ingameirc_sendtoconsole $?="Send Game Command:"
}

menu status,menubar {
  Ingame Irc
  .InGameIRC Options
  ;  ..Menu: ingameirc_options NOT FINISHED YET
  ..$iif(%ingameirc_script > 0,$style(1)) Run/Stop Script
  ...$iif(%ingameirc_script > 0,$style(2)) Enable InGameIRC (mIRC to InGame communication only): ingameirc_start 1
  ...$iif(%ingameirc_script > 1,$style(2)) Enable InGameIRC (2 way communiction between mIRC and InGame): ingameirc_start 2
  ...$iif(%ingameirc_script == 0,$style(2)) Disable InGameIRC: ingameirc_stop
  ..Games
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,RTCW) == TRUE),$style(1)) (RTCW) Return to Castle Wolfenstein: $ingameirc_switchgame(RTCW)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,ET) == TRUE),$style(1)) (ET) Enemy Territory: $ingameirc_switchgame(ET)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,Q3) == TRUE),$style(1)) (Q3) Quake 3: $ingameirc_switchgame(Q3)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,COD) == TRUE),$style(1)) (COD) Call of Duty: $ingameirc_switchgame(COD)
  ...$iif($dll(script/dlls/ingame_irc.dll,ifGameEnabled,CODUO) == TRUE),$style(1)) (CODUO) Call of Duty - United Offensive: $ingameirc_switchgame(CODUO)
  ..Ingame Nick: %ingameirc_nickname = $?="Ingame Nickname:"
  ..Ingame Prefix: %ingameirc_prefix = $?="Ingame Prefix: (to add to your massages from InGame to mIRC)"
  ..$iif(%ingameirc_sendquery == 1,$style(1)) Send Query messages to InGame: %ingameirc_sendquery = $ingameirc_switch(%ingameirc_sendquery)
  ..$iif(%ingameirc_senddcc == 1,$style(1)) Send DCC messages to InGame: %ingameirc_senddcc = $ingameirc_switch(%ingameirc_senddcc)
  ..
  .Send to Ingame: ingameirc_sendtoconsole $?="Send Game Command:"
}
;------------;
;------------;
yep its big.. :tongue:

Last edited by Im2good4u; 06/04/06 08:45 PM.
#146636 06/04/06 08:34 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I think because of how you commented your script

The first part should be like this

Code:
 /*
-----------------------------------------------------
;                     mIRC Commands                    ;
;------------------------------------------------------;
/smsg (servername) (channelname) (message)
part of irc servername
#channel
message
will send a chat message to channel channelname on irc server servername

/scmd (servername) (command)
;part of irc servername
;command
will preform the command on irc server servername

/ingameirc_start (0 1 2) 
;scriptmode 0 = disabled 1 = enabled 2 = enabled whit reading console
starts sending messages

/ingameirc_stop
stops the script from sending messages

/ingameirc_sendtoconsole (cmd parameters)
;conosle command
send the entire message to your ingame conosle

/ingameirc_readconsole
read the console and prefrom any irc commands

/ingameirc_clearconsole
clears the hidden console

/ingameirc_addchan (channel nane including #) (channel flags)
;#channel
;flags (cnatijqpkbm)
add the channel for use in ingameirc

/ingameirc_togglechanflag (flag)
toggle the flag on or off

/ingameirc_removechan (channel name including #)
;#channel
removes the channel from the list

/ingameirc_addgame (RTCW ET Q3 COD CODUO ALL)
;game
adds a game to send to / read from

/ingameirc_togglegame (RTCW ET Q3 COD CODUO ALL)
;game
toggles a game on / off for ingameirc

/ingameirc_removegame (RTCW ET Q3 COD CODUO ALL)
;game
removes a game to send to / read from
;------------------------------------------------------;
----------------------------------------------------




----------------------------------------------------
;                    ingame command                    ;
;------------------------------------------------------;
/irc (command)
;mirc command
will send command to irc whit its parameters and, echo's a message back when console gets readed to see if the command was readed sucsesfully
;------------------------------------------------------;
----------------------------------------------------

*/ 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146637 06/04/06 08:46 PM
Joined: Sep 2005
Posts: 116
I
Vogon poet
OP Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
yeh indeed i should have known mirc coulnd understand /*blabla*/


Link Copied to Clipboard