Register for your free account! | Forgot your password?

You last visited: Today at 15:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Automatic Cps in Inventory

Discussion on [Release]Automatic Cps in Inventory within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 12/16/2009, 18:17   #16
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by Hepatitis C View Post

It does not need to be else if.
Mine is "if" and it works perfectly.
Pretty sure it doesn't matter.
Basser is offline  
Thanks
1 User
Old 12/16/2009, 18:23   #17
 
Electro51's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 46
Received Thanks: 5
the code works perfectly
Electro51 is offline  
Old 12/16/2009, 22:21   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Smythe94 View Post
Pretty sure it doesn't matter.

Isn't that pretty much what I just said.
Arcо is offline  
Thanks
3 Users
Old 12/18/2009, 23:38   #19
 
Mjnorman's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 83
Received Thanks: 13
haha nice release but really this is a no brainer but hey im sure itl help the noobs extend there reaches to trying to be able to run a server
Mjnorman is offline  
Old 12/21/2009, 18:53   #20
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by Hepatitis C View Post

It does not need to be else if.
Mine is "if" and it works perfectly.
very minor and I'm sure most people know this but for those who don't.


If statements function in a logical pattern.


if
- if something then something. ONLY ONE or else all are valid

else if
- if first if didn't go off, the else can still happen. Can have lots of these in a row

else
- if none of the previous if/else if's were triggered else is triggered.


I have never looked at this new source so I don't know how that file is structured but just use some common sense. If you use an if in between a long list of else if's then you will break it up into 2 separate sections


Eg:

if x > 1
do x
if x > 2
do y

if x is under 1 then NEITHER go off
if x = 2 x happens
if x = 3 or more x AND y happens


Eg 2:

if x > 1
do x
else if x > 2
do y
else if x > 0
do z

again, x = 2 x happens
x >= 3 x happens (NOT X AND Y BECAUSE IT'S AN ELSE IF) In this case Y will never happen, nor will z.



So if in the existing source you have a logical flow of

if
else if
else if
else if
else

if you were to place a new if command somewhere in the else if statements, you will separate the flow of logic into 2 distinct sections causing new (sometimes odd things) to happen to your drop rate.


Anyways, not directed at anyone in particular, just figured I'd offer a small warning on when to use if/else if statements.
pro4never is offline  
Old 12/21/2009, 20:30   #21
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Then, my advice to you is, use spoilers instead of posting that miles long post.
ImmuneOne is offline  
Old 02/08/2010, 21:53   #22
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
I get an Error, I AM doing everything right,

In Mob.cs I get an error "The name 'Cps' does not exist in the current context.
In Droprates.cs I get an error: 'NewestCOServer.DropRates' does not contain a deinition for 'CPs'

Help please
paralyzer2 is offline  
Old 02/19/2010, 00:42   #23
 
gangsta119's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 24
Received Thanks: 11
Cps = 2

remember to put a commor

Cps = 2,

otherwise u will get errors people

Conquer 3.0 rules !
gangsta119 is offline  
Old 02/28/2010, 22:50   #24
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by .Arco View Post

Then go to OldCODB and at the very bottom put CPs=DropRate of your choice.
In DropRates.ini?
That is what I did and it didn't work.
I killed a pheasant and no cp's went to my inventory.

I went to the bottom of DropRates.ini and typed CPs=250 and still nothing
Decker_ is offline  
Old 02/28/2010, 22:53   #25
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
In DropRates.ini?
That is what I did and it didn't work.
I killed a pheasant and no cp's went to my inventory.

I went to the bottom of DropRates.ini and typed CPs=250 and still nothing
Then you did it wrong.
Arcо is offline  
Thanks
2 Users
Old 02/28/2010, 22:54   #26
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Can you upload your mob.cs and DropRates.cs?
Decker_ is offline  
Old 02/28/2010, 22:56   #27
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
Can you upload your mob.cs and DropRates.cs?
Nope.
Arcо is offline  
Thanks
2 Users
Old 02/28/2010, 22:58   #28
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Ok, my friend said they drop cpminibag, what do i search for to make pheasants drop them more often?
Decker_ is offline  
Old 02/28/2010, 22:59   #29
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
Ok, my friend said they drop cpminibag, what do i search for to make pheasants drop them more often?
The cpbag drop rate.
Arcо is offline  
Thanks
2 Users
Old 02/28/2010, 23:26   #30
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
where can I find that at?
Decker_ is offline  
Reply


Similar Threads Similar Threads
[Release] Automatic Hero Picker
11/22/2009 - Heroes of Newerth - 1 Replies
With this software, you can be sure to get the hero you want in All Pick mode. Start HoN, then this program, and then join an AP-game. The program will read from an external HeroPicker.txt, and automaticly pick that hero for you. I (DoubleDTheGreat) have included a full list of heroes, and their code, sorted alphabetically. Original author: Sheppard @ Edge of Nowhere Original thread: Edge of Nowhere Download (CLICK ME) Known bugs: - If you start this program, it will automaticly...
[Release] Custom Automatic Restarter for LOTF Source!!!
05/06/2009 - CO2 PServer Guides & Releases - 2 Replies
First in General.cs Search for public static void DoStuff() Above it add this Now go Some were around line 55 in General.cs and Put this!!! Now Goto Line 246 in General.cs and Put this! Hit Thanks if this helped you please



All times are GMT +2. The time now is 15:43.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.