Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:06

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

Advertisement



is this bad? cps drop way

Discussion on is this bad? cps drop way within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
is this bad? cps drop way

Code:
 if (killer.MapID == 1000)
                    {
                        killer.Money += 500;
                        killer.ConquerPoints += 90;
                        killer.Owner.Send(new Network.GamePackets.Message("You killed " + Name + " and earned 90 cps and 500 silver!", System.Drawing.Color.Red, 2005));
                    }
Code:
if (killer.MapID == 1002)
                    {
                        killer.Money += 600;
                        killer.ConquerPoints += 100;
                        killer.Owner.Send(new Network.GamePackets.Message("You killed " + Name + " and earned 100 cps and 600 silver!", System.Drawing.Color.Red, 2005));
                    }

and

soon
marcbacor6666 is offline  
Old 12/19/2013, 19:06   #2
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
i prefer this
abdoumatrix is offline  
Old 12/19/2013, 19:06   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
What are you trying to ask?

Seems to me like you're just giving money/CPs to the character after killing a monster in a specific map.

That looks about right but maybe you can make it better.
killersub is offline  
Old 12/19/2013, 19:32   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
If it was me, I would add a field to the map database and populate that field with the drop amount.

Then you would simply do something like:

Player.CP += Player.Map.CPDrop

Would save going through switches or a bunch of if statements
Aceking is offline  
Old 12/19/2013, 19:34   #5
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
Quote:
What are you trying to ask?

Seems to me like you're just giving money/CPs to the character after killing a monster in a specific map.

That looks about right but maybe you can make it better.
yup im asking if its bad if i make the drops like that. "will it affects the server performance" like stability, memoryusage, cpuusage , something like that."
marcbacor6666 is offline  
Old 12/19/2013, 20:31   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Why do you hardcode it?
Store it in a table in your database and make it dynamic.
Super Aids is offline  
Thanks
4 Users
Old 12/19/2013, 21:05   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
As ^ said. Your system is pretty difficult to edit and not overly scalable.

In redux I just create a drop rule. It lets you add a line to database to control as many drops or gains as you want for a specific ID. Can be easily expanded to link up with quests as well!


EG:
On killing mob Id X there's Y percent chance to drop a(n) Z

It uses types so it supports ground items (drops), inventory items (quest items), inventory cp and inventory gold.

Take a look at that source if you want an example of how to handle it.
pro4never is offline  
Old 12/19/2013, 21:20   #8
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
Thank you very much for the reply guys
marcbacor6666 is offline  
Old 12/20/2013, 03:06   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
Yeah isn't this how its coded by default in all the egypt sources. Super Aids is right, if I were you I would definitely make it changeable from the database. Should be pretty simple to code if you look at some of the sources released here.

On another note, if this source is just for you and you don't mind having to edit the code to change everything, keep it how it is.

If you're planing on releasing it, as sad as it is, most people won't know how to edit that stuff anyway so you'd have to either make a guide for everything or put it in the database (:
.Light is offline  
Old 12/20/2013, 16:21   #10
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
i will try to make some tutorials if im done on my server im currently making a quest base on SwordARtOnline movie. the 100 room bosses.

i did that cps implementation cuz i want the map have different cps drops depends on map level sample the twincity is mostly level 1 + map. so it have the lowest cps drop something like that.

i will try to look at the public sources that been sticked here thanks guys for helping
marcbacor6666 is offline  
Reply


Similar Threads Similar Threads
[MU] IGE NETWORK S6EP3 ¦ ZENTINIAL 50x/25% drop ¦ ETX 200X/35% drop ¦24/7 LONGTERM
10/24/2013 - Private Server - 0 Replies
Hey dear members, IGE network has launched their 2 servers for the game . It has been advertised on R.agezone and different other platforms. The server configuration is unique, no donation/overpowered items, oldschool related gameplay where you have to work yourself to get strong. Most active staff so far, season 6 episode 3, professional staff working daily with the database to apply fixes/balances/improvements. Below you'll see everything that is needed to test the server out.
RappelzSro[Exp/350 SP/350 PT Exp/400 Gold Drop/100% Sox Item Drop/50% /100K Silk]
05/24/2012 - SRO PServer Advertising - 12 Replies
# Just Fixing Everything
Drop´s von der Sensi Truhe mit Doppel drop chance beeinflussbar?
12/28/2009 - Metin2 - 11 Replies
Allso ich hatte eine kleine diskusion mit meinem "Spielpartner". Er möchte do gerne Noch ein Giftschwert haben und meinte das er die Sensenmann Truhe öffnen möchte, weil er ja Doppel drop chance aus dem 90ger Metin bekommen habe... Ich hab dem nätürlich erklärt das es totaler unsinn ist, doch nun bin ich mir selber nicht mehr ganz sicher. Ist es wirklich möglich mit dem zusatz Item (egal aus dem Item-Shop oder gedropt) Doppel drop chance, die Rate zu erhöhe was "Gutes" Wie 75ger Waffen raus...



All times are GMT +1. The time now is 11:07.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.