Top

iRPG - idle Role Playing Game (v4.0)

Please Register to submit score.
Average Score  6.5
Scores Submitted  2
Date Added  Jan 08, 2008
Last Updated  Mar 29, 2008
Tags  easy  fun  game  i  idle  idler  idling  irpg  level  mirc  playing  role  rpg  score  script  snippet 

Introduction

For use with channel #iRPG and #iRPG_scores
Mode +N is no longer needed.
If you want to use a channel besides #iRPG or #iRPG_scores, just replace each text "#iRPG" or "#iRPG_scores" with your own channel.

This was inspired by the iRPG game on deviantART's chat system. Since I couldn't find an open source iRPG IRC bot anywhere, I decided to build my own. This does not implement leaving/kicking penalties, godsends, or calamities. I might include those in a later version.

Custom greet messages are now implemented! Type "!greet message" to set your welcome-back to "message". (Without quotes.)

One thing I included that the original iRPG doesn't is the nickname formatting for long-time players. When you reach 1 hour, 12 hours, 2 days, and 1 week of playing, your greet message gets fancier. ^_^ I also implemented the highscore table for the top 3 players.

For manual nick linking (when somebody comes into the channel with a different nick than they usually have), type this:
/linkscore NewNickname OldNickname
If the game doesn't initialize, type this in the server window:
/twelveseconds
To delete a player from the system, use:
/delplayer Nickname

v3.0 has a cleaner overall system and much better highscore table.
v3.1 has a fixed, foolproof highscore table and cleaner greet messages. Also implemented delplayer.
v3.11 has better defense against retards; also updated a very old #iRPG_scores feature, "!score username".

v4.0 implements "!greet <message>", less code junk, and a self-correcting highscore system.

Grab the Code

Comments

  (19)  RSS
Freckle
Comments: 36
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 9, 2008 9:23 am
There is no such command as "deinc" it's called "dec".
For the rest I didn't look at it very well I just noticed that thing.
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 9, 2008 5:23 pm
Thanks for the tip, Freckle. I fixed that.
^Alexis^
Comments: 46
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 9, 2008 9:09 pm
Is it the same as the original idle-rpg? /msg idle-rpg register <nick> <pass> <class> ? And good job :> in you're next version might wanna add like a tourney or item searcher,good luck
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 13, 2008 2:20 pm
I don't think it's very much like the original. However, I have updated this with many improvements. The game automatically tracks nickname changes, so mode +N is no longer needed. #iRPG_scores can now be used to display the top three scores on any network. It's overall quite a bit cleaner than the original code. Also, automatic +v for those who reach Level 5 (one straight week of playing).
^Alexis^
Comments: 46
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 13, 2008 2:48 pm
How do You like register?
tzar469
Comments: 17
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 13, 2008 7:26 pm
Name your timers so you don't unset every timer at the end. And if you want a repeating timer, set the repetition value to 0.

Look at /help /timer

Good job on this script so far :)
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 18, 2008 10:17 pm
Alexis: Registration is not required, it stores your score as your nickname.
tzar: I'm fairly new to using /timer, so I'll look into that.
darklong
Comments: 1
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Jan 21, 2008 10:50 am
can i use this for playing trivia or quiz :P
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Feb 22, 2008 3:18 pm
darklong: I suppose with heavy modification, you could, but that's not what the script is designed for.
LordHawk
Comments: 18
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 2, 2008 8:50 pm
::: Error: Unknown command ())
( 21:43:53 ) ::: Error: Unknown command ())
( 21:47:41 ) ::: Error: Unknown command ())
( 21:47:41 ) ::: Error: Unknown command ())

this is what i keep getting. i didnt change anything in your code. Im using the same preset channels you have coded into the script. Any help?
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 2, 2008 9:15 pm
LordHawk: I just fixed that a minute ago. I had an extra close parentheses at one point. Refresh the page, copy the script again, etc.
napa182
Comments: 798
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 2, 2008 9:17 pm
that error is from line #74 he has an extra ")"
this line has the extra ")"
Code:
if ( $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) == $int( $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) ) ) ) msg #iRPG $nick(#iRPG,%listing) $+ , your score is now $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) $+ .

replace it with this
Code:
if ( $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) == $int( $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) ) ) msg #iRPG $nick(#iRPG,%listing) $+ , your score is now $sqrt( %score. [ $+ [ $nick(#iRPG,%increasing) ] ] ) $+ .
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 2, 2008 9:19 pm
napa182: That has been fixed. There was another bug in that section of the code as well, so I suggest you re-copy the snippet. (As opposed to removing the extra paren. yourself)
napa182
Comments: 798
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 2, 2008 9:25 pm
thats ok im not useing the script, but thats the first one i saw from looking at ur code on here.
LordHawk
Comments: 18
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 3, 2008 9:34 am
ok, ive seen alot more bugs now. #Irpg doesnt keep an updated version of the score. !score LordHawk returns . but no score, It doesnt display when someone levels, actually for that matter Drizz has been playing for 8 hours and hasnt leveled the first time yet, (which should be 1 hour after he started )
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 3, 2008 5:47 pm
LordHawk: The score isn't displayed by using !score, you have to join #iRPG_scores to view it.
Make sure you're using the latest version as well. I've updated it quite a few times.

If the score simply isn't updating... I'm not sure what you're doing wrong. It works fine on my side.
LordHawk
Comments: 18
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 4, 2008 8:07 pm
Gforce your right i didnt have the latest version. I have 1 last problem, someone has 9 scores spots taken up.


#4: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #5: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #6: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #7: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #8: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #9: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #10: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #11: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #12: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)
( 21:05:56 ) ( ~LordHawk ) #13: el_cuervito (Played 9 minutes, currently has 3 points, and is on level 1.)

anyway i can fix that ?
Gforce20
Comments: 14
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Mar 24, 2008 11:51 am
Highscore bug fixed in v3.1.
Fuzion
Comments: 18
 
mIRC Snippet:  iRPG - idle Role Playing Game (v4.0)
Posted on Apr 9, 2008 5:46 pm
i really like this as im using it for my channel one qestion does it auto restart every month or is their a code to restart scores every month ? or does it just keep going ?

Please Register or Login to start posting comments.
Bottom