mIRC Home    About    Download    Register    News    Help

Print Thread
#135468 12/11/05 03:11 AM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
Looking for an uno script, I was wondering if one is premade or if it would be easy to make. I've seen a few floating around so one is probably made for public use. Here's one I found in #flukes via gamesurge:

[21:43] <EggBert> gliX played a Green 7! Play moves to BotPlayer!
[21:43] <EggBert> BotPlayer played a Green Skip! mTs`HeadAche was Skipped..Play moves to gliX!
[21:43] -EggBert- Your cards are: Yellow 1, Green Skip, Red Reverse, Red 1, Yellow Reverse, Yellow Draw Two, Red Reverse,
[21:43] -EggBert- The Current Card is: Green Skip
[21:43] <gliX> play green skip
[21:43] <EggBert> gliX played a Green Skip! BotPlayer was Skipped..Play moves to mTs`HeadAche!
[21:43] <mTs`HeadAche> play b s
[21:43] <EggBert> mTs`HeadAche played a Blue Skip! gliX was Skipped..Play moves to BotPlayer!
[21:43] <EggBert> BotPlayer drew a card...
[21:43] <EggBert> BotPlayer has passed! Play moves to mTs`HeadAche!

etc..

Last edited by gliX; 12/11/05 03:14 AM.
#135469 12/11/05 03:58 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252

#135470 12/11/05 04:51 AM
Joined: Oct 2005
Posts: 28
G
gliX Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2005
Posts: 28
Thanks, looks good. Only problem is that..a player who joined the game left the channel and it was his turn. The bot didn't acknowledge he had left the channel so no one could go cause it said "It is still this player's turn" How do you kick someone out of the game if they leave the channel..I don't see it on the readme.

Last edited by gliX; 12/11/05 04:54 AM.
#135471 12/11/05 09:04 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You'd be best to ask the author of the program for that information. I don't use that program, just remembered seeing it.

#135472 12/11/05 09:34 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Something like:

Code:
On *:Part:#YourChannel: {
  if ($hget(uno,+up) == $nick) hdel uno +up
}

On *:Quit: {
  if ($hget(uno,+up) == $nick) hdel uno +up
}

On *:Nick: {
  if ($nick ison #YourChannel) {
    if ($hget(uno,+up) == $nick) hadd uno +up $newnick
  }
}


Maybe?

-Andy

#135473 14/11/05 03:13 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, I think that part/quit will work only if the person leaves WHILE it's his/her turn. I didn't get or look at the bot script, so I'm unsure how +up is used. So, perhaps I'm wrong.

I'd say that you should put a thing in the game, wherever it starts a player's turn, that if the player !ison $chan then it will change players and remove that player.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard