mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I am trying to make a small game for people in the chat to play. I made a pretty useful script:
Code:
on *:TEXT:!paintball *:#: {
  if ($2 == mark_paintball) {
    var %mark = $rand(1,3)
    if (%mark == 1) { msg # $$2 slaughters $$3 in a paintball battle! }
    elseif (%mark == 2) { msg # $$3 has been shot between the eyes by $$2 $+ ! }
    elseif (%mark == 3) { msg # Paintball match! $$2 wins by a landslide against $$3 $+ ! }
  }
  else {
    var %others = $rand(1,6)
    if (%others == 1) { msg # $$2 slaughters $$3 in a paintball battle! }
    elseif (%others == 2) { msg # $$3 has been shot between the eyes by $$2 $+ ! }
    elseif (%others == 3) { msg # Paintball match! $$2 wins by a landslide against $$3 $+ ! }
    elseif (%others == 4) { msg # $$3 slaughters $$2 in a paintball battle! }
    elseif (%others == 5) { msg # $$2 has been shot between the eyes by $$3 $+ ! }
    elseif (%others == 6) { msg # Paintball match! $$3 wins by a landslide against $$2 $+ ! }
  }
}
But when i issue the !paintball command it doesn't work. Any help?
If needed, my full remote is here http://pastebin.com/iQxvGrQQ
Also wanted this guy mark to always win if he was put in the duel, so you can see that


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
This text is present on line 236 and will prevent any text events (beginning with an exclamation point) defined below it from triggering, additionally it won't log any commands defined above it.

Code:
on *:text:!*:#:{
  write commandslog.txt $nick $+ : $$1-
}

Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
that works


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
What works? Speak in full sentences.

Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Sorry about that. I removed the lines that you said and it started working.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball

Link Copied to Clipboard