Register for your free account! | Forgot your password?

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

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

Advertisement



help with quality system

Discussion on help with quality system within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
help with quality system

hi there i am trying to create my new quality system but i am having little hard time here and any help will be thankful.


so as we know the quality system works with dragon ball, you give 1 db it will make it refine you give 2 it will make it unique etc etc

but i wane make this new system that lets say your item in normal you use this item (121213) to upgrade your normal to refine,

but then to make the refine to unique you use different stone (43343)

but i am having trouble thinking how to make this. anyone can give me idea?

also here is my quality upgrader if need by any chance.

LordGragen. is offline  
Old 02/24/2013, 11:21   #2
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
simply use that npcs it's all coded there
it does everything you want at the default
at
Code:
var item = client.Equipment.TryGetItem(client.SelectedItem);
var itemdetail = Rise_Of_Medusa.Database.ConquerItemInformation.Bas eInformations[item.ID];
it get the item and it's details
do whatever checks you want
for quality check do a simple method there to check for the last digit for the item id and make a enum so it makes life easier
then do your check
if item.quality = refind
if entity inventory contains whatever
if(entity inventory remove whatever) [i prefer it an if cuz the method is bool , more secure on the long turn]
then clone the old item
remove it
add the new item with better quality
or even update it

p.s that is not the private server discussion , it should be there
go for it is offline  
Old 02/24/2013, 21:52   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
#reported

This section is for official conquer server discussion. Nothing related to private servers should be in this section.

A mod will move this for you.
pro4never is offline  
Old 02/28/2013, 21:49   #4
 
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
Quote:
var item = client.Equipment.TryGetItem(client.SelectedItem);
var itemdetail = Rise_Of_Medusa.Database.ConquerItemInformation.Bas eInformations[item.ID];
byte Quality=item.ID%10;
uint NeededStoneId=121213;// norm-> ref
if(Quality==6) NeededStoneId=43343; //when ref-> uniq
else if(Quality==7) NeededStoneId=??????; //when uniq-> Eli
else if(Quality==8) NeededStoneId=????; //when eli-> super
if(client.hasitem(NeededStoneId))
{
//do ur upgrading codes here
//remove the NeededStoneId item
//u r now good to go
}

Note : as Go for it said , making an enum with quality vals is always a good idea
EgyptianMano is offline  
Old 02/28/2013, 22:39   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You may want a bit of extra logic in there.

#1: Fixed items cannot be upgraded, check if it's fixed quality
#2: There are multiple versions of normal items, Math.Max(5, quality) would work if you know it's not fixed already
#3: Personally I feel it's good coding practice to have a helper method to getUpgradeStoneID(quality). It makes your code easier to read and easier to change in the future.
#4: Switch statements are your friends.
pro4never is offline  
Reply


Similar Threads Similar Threads
AceSRO | D12/ PvE / Free Silks / New skill system / new online system / Jupiter
09/16/2012 - SRO PServer Advertising - 51 Replies
AceSro Online Private Server WebSite : http://acesro.com Register : Click Here Download : Click Here Video for the new skills : Click Here - Rates
MineCraft-Server 24/7 rate System, nonlag, city and region system
07/05/2011 - Minecraft Server Advertising - 2 Replies
Welcome, our new Server Europe is online and it growth. We are looking for new Members and maybe VIP's who want to build on a realistic City. Everyone could buy Region's or get one for a bit of work. We are a friendly community and so please visit us: Server: mc-craft.eu Website (Livemap): *removed



All times are GMT +1. The time now is 05:39.


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.