Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 02:09

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

Advertisement



Slightly more inteligent Auto Cp System

Discussion on Slightly more inteligent Auto Cp System within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Slightly more inteligent Auto Cp System

So I've seen alot of releases over time for different sources dealing with auto cp/gold. The main problem that's bugged me with these scripts is there is no real chance to them! (it always seems to be, kill this mob, get x cp) or something similar.

My goal in this very small project was to create something that can be customized easily by server owners to allow for a more fair auto cp system.

The calculations WORK but they are not exactly set in stone, that's why I've made them so easy to edit to suit your server (not all servers need thousands of cps earnable in 5 minutes while others do, depends on your economy)


<edit>

Here's a link to the 5165 version: Full credit to walmartboi for converting it


This is for CoEmu but can be easily modified for use in an source. The principles are very basic and it's nothing complex by any means. Took all of like 5 minutes to code really

Code:
#region CpRates
                int cpDroprate = 10;//rate of cp for server
                int cpLow = 1;//min cp drop
                int cpHigh = 25;// max cp drop
                int cpMultiplyer = 5;// cp drop multiplier
                #endregion                
                double cpMobDropRate = (Convert.ToDouble(AttackedMob.Level) / Convert.ToDouble(CSocket.Client.Level)) * cpDroprate;                
                if (Calculation.PercentSuccess(cpMobDropRate))
                {
                    int cpBaseReward = Nano.Rand.Next(cpLow, cpHigh);
                    int cpToAdd = cpBaseReward * cpMultiplyer;
                    CSocket.Client.CPs += cpToAdd;
                    CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                    Database.Database.SaveCharacter(CSocket.Client);                  
                    CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[CPs] You have gained: " + cpToAdd + " CPs for killing a(n) " + AttackedMob.Info.Name , Struct.ChatType.Top));

                }
In this case drop RATES are effected by how high/low level a player is compared to a monster.

Drop AMOUNT is a random number between min/max drop rate multiplied by the server cp multiplier (could add more randomness ot he script by having the multiplier based on mob/player level and or random roll)

Install instructions!

doMonsterPlayer.cs search AttackedMob.Die(CSocket.Client.ID); and paste this code directly underneath. Nothing else should be required (make sure your SaveCharacter database void saves cp or this will not save properly. If you want, it would help to write a new database void for cp saving so you don't have to save the entire character every time you gain cp... redundant and resource consuming.



Please post any questions, problems or improvements to the script. This is not designed to be the ULTIMATE script, it's simply to help people think a bit more when implementing these systems. You could go a long way with this sort of thing (adding in different rates for lucky time, 2nd reborn, vip. Doing more complex calculations, etc) but this should point some ppl in the right direction.

Enjoy!
p4n
pro4never is offline  
Thanks
3 Users
Old 01/12/2010, 12:37   #2
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Can u make a script like this for web?
zbest is offline  
Old 01/12/2010, 16:13   #3
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Why would you intend to make this script for a website?
ImmuneOne is offline  
Thanks
1 User
Old 01/12/2010, 22:24   #4
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
I like this thanks chris =P
.Ryu is offline  
Old 01/12/2010, 22:26   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
got the same question...
~Yuki~ is offline  
Old 01/12/2010, 23:48   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by ~Yuki~ View Post
got the same question...
Huh, what question?

If you have any questions about it I'll be happy to try to help.
pro4never is offline  
Old 01/12/2010, 23:55   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by pro4never View Post
Huh, what question?

If you have any questions about it I'll be happy to try to help.

He was talking about zbest's question that made no sense whatsoever.
Arcо is offline  
Old 01/13/2010, 01:24   #8
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Would be a good ideea.
Pay for a vip web account ,log there click the buton and you got 999KK CPS :X:X.
And TADA you make some money and you can pay you HOST :X:X.
zbest is offline  
Old 01/13/2010, 01:30   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
So you are looking for a donation system?

You do realize this has to do with earning cps from hunting right? That has NOTHING to do with donations or websites.

I haven't done any donation systems but I would assume you would need to

A) Setup a merchant paypal account that would send proper confirmation to you when payment has cleared
B) use that confirmation to have the web server either
i: Send out a confirmation e-mail with a claim id/pass which can be used on the website
ii: Use the pre-entered paypal info to make a database entry for the character determining what they can claim ingame
C) Have a php form on the website for claim id/pass given character id/pass/server which (if it matches a valid id/pass on server database) will modify the character database to determine what they can claim ingame
D) Npc ingame that will check the character database to see if they can claim anything, and if they can then award the prize (cp in this case) and then update the database (so it can't be claimed multiple times)

That should be all there would be to such a system but as stated it has NOTHING to do with this thread.
pro4never is offline  
Old 01/13/2010, 01:35   #10
 
elite*gold: 0
Join Date: Sep 2009
Posts: 84
Received Thanks: 14
Quote:
Originally Posted by zbest View Post
Would be a good ideea.
Pay for a vip web account ,log there click the buton and you got 999KK CPS :X:X.
And TADA you make some money and you can pay you HOST :X:X.
So what you mean is, when a person that has bought a VIP account for your website and logs in, their character will receive 999 million cps? Well, I think you might want to consult a php coder for that, or just learn php yourself.

gl0verseer is offline  
Thanks
1 User
Old 01/13/2010, 02:54   #11
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
lmao zbest
copz1337 is offline  
Old 01/13/2010, 02:57   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by gl0verseer View Post
So what you mean is, when a person that has bought a VIP account for your website and logs in, their character will receive 999 million cps? Well, I think you might want to consult a php coder for that, or just learn php yourself.

It can be done by lets say the person donates and everything, then they type in their character name. After that have a MySQL function that changes that characters cps in the cps table to 999kk.
Arcо is offline  
Old 01/13/2010, 03:09   #13
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Quote:
Originally Posted by Hepatitis C View Post
It can be done by lets say the person donates and everything, then they type in their character name. After that have a MySQL function that changes that characters cps in the cps table to 999kk.
Yeah that i want to say,999KK was a example lol:P
Not only CPS and silvers :X.
zbest is offline  
Old 01/13/2010, 03:10   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by zbest View Post
Yeah that i want to say,999KK was a example lol:P
Not only CPS and silvers :X.

Well can you be a bit more specific?
I'm a bit handy with MySQL shiz.
Arcо is offline  
Old 01/13/2010, 03:27   #15
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Now you understand?
zbest is offline  
Reply


Similar Threads Similar Threads
Auto-Ban System
06/28/2010 - CrossFire - 2 Replies
6000+ CF Account Suspensions Issued - Z8Games
Auto EP System
05/04/2010 - EO PServer Hosting - 8 Replies
I Am Curious And Wanted To Ask B4 I Implemented Into My server Do the Majority Perfer Auto EP? Whats The Ups And Downs?
Auto LvL System
01/12/2010 - Kal Online - 5 Replies
Es gab doch mal so ein Auto_battle system? Weiss jemand ob das auf dem Int noch geht? Hab vorhin erst neu angefangen auffen int auf Hanin :P & wollte ma fragen ::: ... ging doch irgentwie System.ini muss rein :
AUTO BAN SYSTEM
05/19/2007 - MapleStory - 6 Replies
MapleStory has a .erl file that creates a log of other programs that run while MapleStory is running. that includes CHEAT ENGINES! when wizet patches the game, that .erl file goes to wizet and they check it or something. ^_^ thats just a theory. this guy can explain better: "Hutzon" from Game Cheetah forums. Around 2 months ago GG was updated and a new file was added to the GameGuard folder. A .erl file that would create a big log of any files that would be running while you had...
Auto attacking system
05/15/2007 - Silkroad Online - 3 Replies
i did a search and couldnt find anything on this topic, ok bot works 100% but when my char targets things but it doesnt always attack, this means i have to do it manually. i have loop all bot active and all that, i just dont understand why it will target the monster and run 2 it but just stand there. i use a bow if that matters. although sometimes it does attack auto, after sitting for 2 mins wasting pots. is there a way to fix it to where its constintaly attacking? thanks in advance :D ...



All times are GMT +2. The time now is 02:09.


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.