Rümßäär's Place of Whatever Visit Phreik Chat Network Techgear 007


 

 Supertrivia using a Peacekeeper bot...
Eloise
Posted: Nov 2 2009, 20:56


Member


Group: Members
Posts: 23
Member No.: 233
Joined: 20-January 06



Hiya Peterje smile.gif

I wonder if you could help with this problem I've been having the last week plz? ohmy.gif

When our trivia reached the 2147483647 limit and someone would answer another question they would go into minus and then have to answer doubles to get themselves back out.
Well... this past week this hasn't happened and the scores just carry on building up and up... which can get a bit silly lol
I don't know what has gone wrong with it, as it's always worked fine.

The room is on Phreik and I don't know if it's anything to go with them now being UnrealIRCD rather than OCX (cos I don't know what the difference is lol unsure.gif )

If you could give any suggestions as to why it's not working as it used to, I'd be ever so grateful.
Thanx very much
Eloise smile.gif
Pete®tje
Posted: Nov 2 2009, 22:18


Forum Owner
Group Icon

Group: Executive
Posts: 576
Member No.: 1
Joined: 12-May 04



It has to do with the computer or operating system that you are using. The number you are showing is exactly 2G - 1, which in binary is: 1111111111111111111111111111111. This means all 31 bits all full. Either your computer or OS can't calc further.
Eloise
Posted: Nov 2 2009, 22:27


Member


Group: Members
Posts: 23
Member No.: 233
Joined: 20-January 06



Thanx so much for a quick reply smile.gif
I am using Windows Vista BUT even when I was using Windows XP the max score they could reach before going to minus was always 2147483647.
I've been using Vista for a while now and this has never happened before. huh.gif
Eloise
Posted: Nov 7 2009, 22:34


Member


Group: Members
Posts: 23
Member No.: 233
Joined: 20-January 06



I also tried another script I have on a PC using Windows XP, the same thing happened.

After asking various people a number of times, I've since been informed that it could be the points people are being awarded per question are set too high, and I've also been told to lower the amount of points that people can bet.

Soooo... I was wondering if you can tell me how I do this... what part of the script do I change so the maximum points anyone can bet is 10000

Any help, as always, is much appreciated smile.gif
Pete®tje
Posted: Nov 9 2009, 20:01


Forum Owner
Group Icon

Group: Executive
Posts: 576
Member No.: 1
Joined: 12-May 04



It is the maximum number where your mirc can calculate with because it uses 32 bits. You can lower the maximum amount where you can bet using the supertrivia settings.
FireHorse
Posted: Nov 10 2009, 14:57


Member


Group: Members
Posts: 30
Member No.: 121
Joined: 10-November 04



this might work

add this line:

if (%p > 9999) { mstat *s4 Please bet less than 10000 points $nick | return }

in the spot below

CODE
;____________________________________________________________________________________
;:::::::::::::::::::   handling input starting with .
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
on $*:text:/^\./g:#:{ if ($_(betting_active) != $true) return
 var %p = $remove($1-,.,$chr(32)), %mx = $iif($_(betmax),$ifmatch,$hof(p,$nick))
 if (%p == max) %p = %mx
 if (%p == half) %p = $round($calc($hof(p,$nick) / 2),0)
 if (%p isnum) {
   if (!$hof(p,$nick)) { mtime $nick $stm(nopoints,$nick) | return }
   if (%p > 9999) { mstat *s4 Please bet less than 10000 points $nick | return }
   if (%p < 1) || (%p > $hof(p,$nick)) mtime $nick $stm(pointstobet,$nick,%mx)
   else {
     $_s(bet_ $+ $nick, %p)


hope that helps
FireHorse
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Trivia | Next Newest »


Topic Options



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Archive