Item Upgrade Help?

All Helbreath Server Source Discussion here.
Post Reply
asdfd
Regular
Posts: 47
Joined: Sat Nov 13, 2004 7:27 am

Post by asdfd »

I followed the code from the other +3 topic so my upgrade success code looks like this

Code: Select all

switch (iValue) {
case 0: iProb = 33; break;  // +1 :90%    +1~+2
case 1: iProb = 33; break;  // +2 :80%      +3
case 2: iProb = 20; break;  // +3 :48%      +4
case 3: iProb = 15; break;  // +4 :24%      +5
case 4: iProb = 10; break;  // +5 :9.6%    +6
case 5: iProb = 10; break;  // +6 :2.8%    +7
case 6: iProb =  8; break;  // +7 :0.57%    +8
case 7: iProb =  8; break;  // +8 :0.05%    +9
case 8: iProb =  5; break;  // +9 :0.004%  +10
case 9: iProb =  3; break;  // +10:0.00016%
default: iProb = 1; break;
}
But it's still failing. Any tips?
Ice-T
Loyal fan
Posts: 262
Joined: Sat Oct 18, 2003 8:51 am
Location: nowere

Post by Ice-T »

what do u think iProb is?
<img src='http://www.prism.gatech.edu/~gtg818f/basesig.gif' border='0' alt='user posted image' /><br><img src='http://img228.imageshack.us/img228/439/steam1tf.gif' border='0' alt='user posted image' />
asdfd
Regular
Posts: 47
Joined: Sat Nov 13, 2004 7:27 am

Post by asdfd »

Originally the first iProb was 30, and on the side note it said that mean't to +1 its 90% chance right? so I put 33 for 99% just to see if it'd help a little.
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

put 100 no fail :D :ph34r:
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

asdfd wrote: Originally the first iProb was 30, and on the side note it said that mean't to +1 its 90% chance right? so I put 33 for 99% just to see if it'd help a little.
LOL!
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Post Reply