Jump to content
  • 0

IRC script help


NXwolf

Question

Not sure if this is a windows 7 thing or not, but it's annoying the heck out of me.  lol

 

Anyways.  I'm trying to setup a bunch of my old scripts from WAY back when I played a game called A Path Beyond.  Well, I'm using exact copies of all the scripts.  I even tried writting a new one and nothing works.  I then tried like the most basic of scripts and still nothing.  Not sure why it isn't working.  Here's my code:

 

on *:TEXT:!wolf:#vix:

{

if (NXwolf isin $nick) && (!wolf isin $1) { /msg #vix test complete }

}

 

As I said, most basic of scripts.  Basically, when I type !wolf, it's suppose to respond with test complete to the designated channel.  I just formed a unreged channel for testing purposes, not a real channel.

 

Anyways.  Nothing happens at all.  I tried linking the script to the #mpf-newmaps channel as well and that gave me a response of "unknown command".  Is atleast some progress, but still not working.  This code is below:

 

 

on *:TEXT:host:#mpf-newmaps:

{

if (host isin $1) { /msg NXwolf test complete }

}

 

I can't find anything wrong with this code.  I tried reinstalling IRC and running IRC in compatibility mode with Win XP SP3 as well as running as an admin.  Still nothing.

 

Any ideas?

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

its cause ur code sucks :P.

 

try something like this

on *:TEXT:*:#mpf-newmaps:


{


if ($host isin $1) { /msg NXwolf test complete }


}

 

on *:TEXT:*:#vix:


{


if (NXwolf isin $nick) && (!wolf isin $1) { msg #vix test complete }


}

Link to comment
Share on other sites

  • 0

Still doesn't work.  I've tried writing this code i several different ways and still no results.  I know it's not my code's, but it's IRC itself, but I'm not sure why IRC won't run my codes.  Only thing I can think of is because I'm running 64bit Win7, but even if that's the cause, there's gota be a fix, which I haven't found yet.

Link to comment
Share on other sites

  • 0

Try this ...

on *:TEXT:*:#:{

if ($nick == NXwolf) && (!wolf isin $1) {

msg #vix test complete }

}

if ($chan == #MPF-NewMaps) {

if ($1 == host) {

msg $chan NXwolf test complete }

}

}

}

Link to comment
Share on other sites

  • 0

on a side note can someone on debugg this one

 

on *:text:*:#:{  if ($chan == #MPF-NewMaps-Admin) || ($chan == #MPF-Westwood-Admin) || ($chan == #MPF-Snipers-Admin) || ($chan == #z-test) {    if ($nick == NewMapsBot) || ($nick == SnipersBot) || ($nick == WestwoodBot) || ($nick == ztest) {      if (Player isin $1) && (Serial isin $3) && (b5cee7a80120b097421fc1d37abe7c48 isin $4-) {        msg $chan !auth mauler        msg $chan !tagtext mauler police        msg $chan !snda ut3_oneshot_onekill.mp3        msg $chan !msg ONE SHOT ONE KILL..      }      if ($2 == killed) && ($3 == [MPF]Mauler) && ($4 == dumb) {        timer 1 10 msg $chan !tagtext mauler police        timer 1 10 msg $chan !snda ut2_sexy_holyshit.mp3      }    }  }

 

the auto tag police works when i die but the sound portion does not work :| holyshit one

Link to comment
Share on other sites

  • 0

its coz of the timer i think

 

if ($2 == killed) && ($3 == [MPF]Mauler) && ($4 == dumb) {

msg $chan !snda ut2_sexy_holyshit.mp3
timer 1 10 msg $chan !tagtext mauler police
 

 

ohh and i fixed the other type kills too

 

      if (<nick> isin $1) && (was isin $2) && (pwnd isin $3) {        timer 1 20 msg $chan !tagtext <nick> <keyword>      }      if (<nick> isin $1) && (killed isin $2) && (theirself. isin $3) {        timer 1 20 msg $chan !tagtext <nick> <keyword>      }      if (<nick> isin $1) && (didn't isin $2) {        timer 1 20 msg $chan !tagtext <nick> <keyword>      }    }     }}
Link to comment
Share on other sites

  • 0
on *:text:*:#:{  if ($chan == #MPF-NewMaps-Admin) || ($chan == #MPF-Westwood-Admin) || ($chan == #MPF-Snipers-Admin) || ($chan == #z-test) {    if ($nick == NewMapsBot) || ($nick == SnipersBot) || ($nick == WestwoodBot) || ($nick == ztest) {      if (Player isin $1) && (Serial isin $3) && (b5cee7a80120b097421fc1d37abe7c48 isin $4-) {        msg $chan !auth mauler        msg $chan !tagtext mauler police        msg $chan !snda ut3_oneshot_onekill.mp3        msg $chan !msg ONE SHOT ONE KILL..      }      if (mauler isin $1) && (was isin $2) && (pwnd isin $3) {        timer 1 20 msg $chan !tagtext mauler superstar      }      if (mauler isin $1) && (killed isin $2) && (theirself. isin $3) {        timer 1 20 msg $chan !tagtext mauler renegod      }      if (mauler isin $1) && (didn't isin $2) {        timer 1 20 msg $chan !tagtext mauler police      }    }     }}

 

 

 
Link to comment
Share on other sites

  • 0
on *:text:*:#:{  if ($chan == #MPF-NewMaps-Admin) || ($chan == #MPF-Westwood-Admin) || ($chan == #MPF-Snipers-Admin) || ($chan == #z-test) {    if ($nick == NewMapsBot) || ($nick == SnipersBot) || ($nick == WestwoodBot) || ($nick == ztest) {      if (Player isin $1) && (Serial isin $3) && (b5cee7a80120b097421fc1d37abe7c48 isin $4-) {        msg $chan !auth mauler        msg $chan !tagtext mauler police        msg $chan !snda ut3_oneshot_onekill.mp3        msg $chan !msg ONE SHOT ONE KILL..      }      if ($2 == killed) && ($3 == [MPF]Mauler) {        msg $chan !snda ut2_sexy_holyshit.mp3        timer 1 10 msg $chan !tagtext mauler police      }      if ([MPF]Mauler isin $1) && (was isin $2) && (pwnd isin $3) {        msg $chan !snda ut2_sexy_holyshit.mp3        timer 1 20 msg $chan !tagtext mauler police      }      if ([MPF]Mauler isin $1) && (killed isin $2) && (theirself. isin $3) {        msg $chan !snda ut2_sexy_holyshit.mp3        timer 1 20 msg $chan !tagtext mauler police      }      if ([MPF]Mauler isin $1) && (didn't isin $2) {        msg $chan !snda ut2_sexy_holyshit.mp3        timer 1 20 msg $chan !tagtext mauler police      }      if ([MPF]Mauler isin $1) && (Killed isin $2) && (/ isin $5) || (/ isin $6) {        msg $chan !snda ut2_sexy_holyshit.mp3      }      if ([MPF]Mauler isin $1) && (destroyed isin $2) {        msg $chan !snda ut2_sexy_holyshit.mp3      }    }     }}

yeah but ya missed some bits out lol

Link to comment
Share on other sites

  • 0

Problem Resolved. Script was placed in his IRC instead of bot. Ppl can still execute the script with the command if the parameters (NXwolf isin $nick) wasn't there. Otherwise, it wont work for self test purpose. Bot was needed for this.

 

Also Mauler. For your code to work with killed message

if ($2 == killed) && ($3 == [MPF]Mauler) && ($4 == dumb) {timer 1 10 msg $chan !tagtext mauler policetimer 1 10 msg $chan !snda ut2_sexy_holyshit.mp3}

Instead of using ($2 == killed), use $strip() as it strips out the colors, bold, italics, underlines:

if ($strip($2) == killed) && ($strip($3) == [MPF]Mauler) && ($strip($4) == dumb) {timer 1 10 msg $chan !tagtext mauler policetimer 1 10 msg $chan !snda ut2_sexy_holyshit.mp3}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.