Fight Resolver

By joshschooley444 on May 18, 2010

To start using the script type /fightset and follow the
input windows. To use on users fighting type /fight nick1 nick2
and the will automatically be joined to the designated fight
channel. If/when the conflict is resolved then /resolve will
unset and notify the users.
Also if you have a chance or some extra time come to our Network.
Akuma.EvangelionIRC.com
MUST BE IRCOP TO USE
last if statement's credit goes to Jethro_

# ~~~~~~~~~~~~~~~~~===========Custom made for EvangelionIRC===========~~~~~~~~~~~~~~~~~
# ~~~~~~~~=====/server -m Akuma.EvangelionIRC.com 6667 (+6697 for SSL)=====~~~~~~~~
on 1:LOAD:{
  echo Thank you for loading Google's Fight Resolution script
  echo To start using the script type /fightset and follow the
  echo input windows. To use on users fighting type /fight nick1 nick2
  echo and they will automatically be joined to the designated fight 
  echo channel. If/when the conflict is resolved then /resolve will
  echo unset and notify the users.
  echo Also if you have a chance or some extra time come to our Network.
  echo 9Akuma.EvangelionIRC.com
}

menu nicklist {
  -
  .Fight
  ..Fighting:fight $1 $2
  ..Resolved:resolve
  ..FightSet:fightset
}

alias Fightset {
  set %nofightchan $?="What is the channel that fights are not allowed in?"
  set %fightchan $?="What is the channel that fighters are forced to join?"
  Echo -a 11,15 Settings have been written!
}

alias fight {
  set %fight1 $$1
  set %fight2 $2
  notice $1 There was a fight detected in %nofightchan between you and %fight2 $+ . The channel you are currently joining will be permanent until you resolve your problems with %fight2 $+ .
  notice $2 There was a fight detected in %nofightchan between you and %fight1 $+ . The channel you are currently joining will be permanent until you resolve your problems with %fight1 $+ .

  sajoin $1 %nofightchan
  sajoin $2 %nofightchan
  sajoin $1 %fightchan
  sajoin $2 %fightchan
}

alias resolve {
  notice %fight1  Your conflict with %fight2 seems to be resolved. You may now join %nofightchan again.
  notice %fight2  Your conflict with %fight1 seems to be resolved. You may now join %nofightchan again.
  unset %fight1
  unset %fight2
}

on *:JOIN:%nofightchan: {
    if ($istok(%fight2 %fight1,$nick,32)) { sapart $nick %nofightchan }
  }

Comments

Sign in to comment.
PuNkTuReD   -  May 19, 2010

is it the shun command which stops a user, using any commands like join part etc?
thatd be nice to use, so the users get put in the channel and CANT do anything unless its resolved.

 Respond  
joshschooley444   -  May 18, 2010

thank you

 Respond  
Jethro   -  May 18, 2010
on *:JOIN:%nofightchan: {
    if ($istok(%fight2 %fight1,$nick,32)) { sapart $nick %nofightchan }
  }
 Respond  
joshschooley444   -  May 18, 2010

"on *:JOIN:%nofightchan:if ( $nick == %fight2 ) { sapart $nick %nofightchan }
elseif ( $nick == %fight1 ) { sapart $nick %nofightchan }"
would that work, I'm still learning lol.

 Respond  
Jethro   -  May 18, 2010

You have two join events there. Only one on the top will respond to trigger. Regardless, you should have combined them into one join event.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.