Automatic CPs

06/10/2010 12:42 2010mrsurfer#1
Okay i know there is already a few releases out for this but does anybody know how to get automatic cps working, so they go into your inventory? Ive tried to follow Arco's guide but it never worked (hes helped me before but i lost the source) and I tried the other one where it was random :$ atm im using Deckers source, but it doesnt have the CP thing in it, could anybody help me??


Thanks :)
06/10/2010 13:32 pro4never#2
Quote:
Originally Posted by 2010mrsurfer View Post
Okay i know there is already a few releases out for this but does anybody know how to get automatic cps working, so they go into your inventory? Ive tried to follow Arco's guide but it never worked (hes helped me before but i lost the source) and I tried the other one where it was random :$ atm im using Deckers source, but it doesnt have the CP thing in it, could anybody help me??


Thanks :)
Not quite sure what part wouldn't be working... it's a fairly basic thing to do. Find where your source handles monster death and then add player cp's and print out a nice msg. You can then do any random chance or amount calcs you want
06/10/2010 13:46 2010mrsurfer#3
}
else if (MyMath.ChanceSuccess(DropRates.CP))
{
if (Char != null)
if (Char.VipLevel >= 3)
{
if (Char.Inventory.Count <= 39)
{
return;
}

Is this sort of right? I just thought of it then?
06/10/2010 14:38 sawickas#4
Vip level =0 and cps + 50
06/10/2010 14:44 2010mrsurfer#5
Thanks I did the VIP 0 bit but where do I put the cps 50 bit ^^
06/10/2010 15:48 pro4never#6
Just remove the vip check entirely. The cps should be something similar to gc.mychar.cps += amount.
06/10/2010 22:22 2010mrsurfer#7
Huh I think C# doesnt like me at all....

if (MyMath.ChanceSuccess(DropRates.CPs))
{
if (Char != null)
{
Char.CPs += 200;
}
}
}


DI2.Info.ID = 1088000;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;

That's the code I put for the CP drops and there no errors, if I use somebody else's with is excatly the same I get errors xD wierddddd
06/11/2010 02:03 Arcо#8
Quote:
Originally Posted by sawickas View Post
Vip level =0 and cps + 50
Why not just take out the vip check completely?
06/11/2010 02:04 pro4never#9
Quote:
Originally Posted by 2010mrsurfer View Post
Huh I think C# doesnt like me at all....

if (MyMath.ChanceSuccess(DropRates.CPs))
{
if (Char != null)
{
Char.CPs += 200;
}
}
}


DI2.Info.ID = 1088000;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;

That's the code I put for the CP drops and there no errors, if I use somebody else's with is excatly the same I get errors xD wierddddd

You still have the wrong number of brackets! You must open/close the same ones. Remove one of the closing ones and you should be fine.
06/11/2010 02:05 Arcо#10
if (MyMath.ChanceSuccess(DropRates.CPs))
{
Char.CPs += amount;
}
Done.
06/11/2010 12:09 2010mrsurfer#11
hmm ill try it later, uploading a youtube video atm and its taking ages xD