[Release]Automatic Cps in Inventory

03/01/2010 01:47 Arcо#31
Quote:
Originally Posted by Decker_ View Post
where can I find that at?
Droprates.ini
04/14/2010 19:05 Lol23321#32
Thanks! You are great!
05/06/2010 00:37 Myndeth#33
Dude Arco, This is Not Working On Mine Or Maybe I Did Wrong

This is What I Did:
In Mobs.Cs:

Quote:
else if (MyMath.ChanceSuccess(DropRates.CPBag))
if (MyMath.ChanceSuccess(DropRates.CPs))
{
if (Char != null)
{
Char.CPs += 1000;
}
}
And In DropRates.Cs i Do This:

DropRates.Cs:

Quote:
Silver = 2,
CPs= 2,
Quote:
Silver = iNi.ReadDouble("Rates", "Silver");
CPs = iNi.ReadDouble("Rates", "CPs");
And On The OldCodb DropRates:

Quote:
[Rates]
DragonBall=100
Meteor=0.5
PlusOne=1.5
Refined=15
Unique=1
Elite=0
Super=0
OneSoc=20
TwoSoc=0
Gem=0.005
Silver=100000
CP10=5
CP30=2.33
CP60=1.665
PlusOneStone=0.15
PlusTwoStone=0.01
CPMiniBag=3
CPBag=0.1
CPBackpack=0
CleanWater=0
Item=50
PointCard=20
CPs=1000

05/06/2010 06:35 Arcо#34
Quote:
Originally Posted by Myndeth View Post
Dude Arco, This is Not Working On Mine Or Maybe I Did Wrong

This is What I Did:
In Mobs.Cs:



And In DropRates.Cs i Do This:

DropRates.Cs:





And On The OldCodb DropRates:

Did you compile?
05/12/2010 22:02 2010mrsurfer#35
hey Arco, ive done all this right what u said and ive got no errors but... when i open Mob.cs is C# i cant compile it... i can only save it :S do u know why?
05/12/2010 23:12 Arcо#36
You need to open NewestCOServer.csproj, not just the single cs files itself.
05/12/2010 23:23 2010mrsurfer#37
Quote:
Originally Posted by .Arco View Post
You need to open NewestCOServer.csproj, not just the single cs files itself.
ahhh so thats why my new npcs wont be working xD thanks for the info! ill do it right away and post my success soon :)
05/12/2010 23:29 Arcо#38
Quote:
Originally Posted by 2010mrsurfer View Post
ahhh so thats why my new npcs wont be working xD thanks for the info! ill do it right away and post my success soon :)
Lol yeah, that's something I noticed about a lot of the newcomers to C#.
They only open the cs file and not the entire project.
05/12/2010 23:29 2010mrsurfer#39
ok i compiled it... and it didnt work :( but i cant be bothered doing anything now so imma go to bed and re-do everything tomorrow and if it doesnt work i dont know what im going to do :(
05/12/2010 23:30 Arcо#40
Show me exactly what you did?
05/12/2010 23:31 2010mrsurfer#41
Quote:
Originally Posted by .Arco View Post
Lol yeah, that's something I noticed about a lot of the newcomers to C#.
They only open the cs file and not the entire project.
hehe ive tried C# before and i made a stopwatch.... not the sort of stopwatch u would except to work :P (it never worked :P)
05/12/2010 23:32 2010mrsurfer#42
Quote:
Originally Posted by .Arco View Post
Show me exactly what you did?
i shall take screenshots of what i did excatly in the morning and ill post them on here.. night
05/12/2010 23:34 Arcо#43
Alright, I'll try to help whenever you do.
05/13/2010 11:33 2010mrsurfer#44
Quote:
Originally Posted by .Arco View Post
Alright, I'll try to help whenever you do.
Ok i have took the screenshots on everything i did, i also took a screenshot of my own npc that i coded (got help with) could u tell me what is wrong with them please? If u know.
OK the first image is the first thing u told me to add first:
[Only registered and activated users can see links. Click Here To Register...]

Ok the second image is what u told me to add secondly:
[Only registered and activated users can see links. Click Here To Register...]

Ok the third image is what u told me to add thirdly:
[Only registered and activated users can see links. Click Here To Register...]

Ok the fourth image is what u told me to do last:
[Only registered and activated users can see links. Click Here To Register...]

Ok the fifth image is how i think u compile it, if its not tell me:
[Only registered and activated users can see links. Click Here To Register...]

Ok this last image is of my npc that i coded (got help with) could u look at it and see if its right please.
[Only registered and activated users can see links. Click Here To Register...]

Ok its took me 15 mins to write this xD thanks for your help
05/13/2010 11:41 Arcо#45
else if (MyMatch.ChanceSuccess(DropRates.CPBag) should be under
if (MyMatch.ChanceSuccess(DropRates.CPs)
{
if (Char != null)
{
Char.CPs += 500;
}
}