[Release]Automatic Cps in Inventory

05/13/2010 12:02 2010mrsurfer#46
Quote:
Originally Posted by .Arco View Post
else if (MyMatch.ChanceSuccess(DropRates.CPBag) should be under
if (MyMatch.ChanceSuccess(DropRates.CPs)
{
if (Char != null)
{
Char.CPs += 500;
}
}
fast reply but thanks, so its should be like: if(MyMatch.ChanceSuccess(DropRates.CPs))
{
if (Char != null)
{
Char.CPs += 500;
}
}
else if (MyMatch.ChanceSuccess(DropRates.CPBag)
{
05/13/2010 12:06 Arcо#47
Yup just like that.
05/13/2010 12:07 2010mrsurfer#48
Ok ive done that but its still not working i am pressing the right compile button right? the little button that looks like a play button
05/13/2010 12:10 Arcо#49
Show me what you have now.
05/13/2010 12:11 2010mrsurfer#50
if(MyMatch.ChanceSuccess(DropRates.CPs))
{
if (Char != null)
{
Char.CPs += 500;
}
}
else if (MyMatch.ChanceSuccess(DropRates.CPBag)
05/13/2010 12:13 Arcо#51
What's happening when you kill monsters?
Your cps doesn't raise at all?
05/13/2010 12:15 2010mrsurfer#52
nope the Cps dont move at all :(
05/13/2010 12:18 Arcо#53
And there are no errors popping up whatsoever?
05/13/2010 12:21 2010mrsurfer#54
Well... if your talking about errors theres... 21 errors and 20 of them are in NPCdialog.cs and theres 1 in Mob.cs.. there is a little squiggly red line and the end of this: else if (MyMatch.ChanceSuccess(DropRates.CPBag)
05/13/2010 13:23 2010mrsurfer#55
opps i miss-spelt something: red line at the end of this:
05/14/2010 05:44 Arcо#56
So there's an error where?
05/14/2010 11:13 2010mrsurfer#57
this screenshot below will show u the errors, the only bit i touched in NPCdialog.cs is when i created my own npc, now im not sure if i delete it, it may work im not sure and there is also 2 errors on Mobs.cs on the +2 stone bit:
[Only registered and activated users can see links. Click Here To Register...]
05/14/2010 11:14 Arcо#58
Add me on msn,I'll help ya out.
arcotemple@empty project.org
Takeout the space in that.
05/14/2010 11:19 2010mrsurfer#59
Okay thanks alot :)
05/14/2010 11:23 Arcо#60
No problem :)