Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Albetros Source

Discussion on [Help] Albetros Source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
[Help] Albetros Source

im working on codeing reborn into it and it downgrades the items and all but when it gets to the skills it will not teach them could someone help me out and tell me where im going wrong

all code inside Spoiler


and i changed it so there first Profession reads as Profession not Profession1

any help would be great.
coreymills is offline  
Old 09/17/2012, 12:27   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Code:
            bool KeepSkill = false;

            if (KeepSkill)
            {
If this doesn't answer you...
I don't have a username is offline  
Old 09/17/2012, 23:39   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Side note... why hard code things like this? In my own version (thought it was included as part of the revision I uploaded) I handle it via a database system...

When server is loaded it pulls all the entries in the database to populate nested collections for easy access.

You simply do...

foreach(Skill _skill in RebornSkillsGained[user.Profession1][user.Profession2])
user.AddSkill(_skill);
foreach(Skill _skill in RebornSkillsLost[user.Profession1][user.Profession2])
user.RemoveSkill(_skill);

Same thing for 2nd reborn except that it's..

foreach(Skill _skill in SecondRebornSkillsGained[user.Profession1][user.Profession2][user.Profession3])
user.AddSkill(_skill);
foreach(Skill _skill in SecondRebornSkillsLost[user.Profession1][user.Profession2][user.Profession3])
user.RemoveSkill(_skill);


Makes it a lot easier to edit and sooo much more readable imo.

Note: In this example it would be collections consisting of...

Dictionary<byte, Dictionary<byte, List<ushort>>>

And

Dictionary<byte, Dictionary<byte, Dictionary<byte, List<ushort>>>>
pro4never is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Some albetros source's bug .. help me fixed?
03/08/2012 - CO2 Private Server - 5 Replies
first: when the player died , client's mouse is show the player still can attack。 Second: when the player died , a monk use skill lock the ghost , but Client show he still can use the PathFinding Third: when the player use any skill .have some delay Fourth: some skill can't use...
Albetros Source Register successful but not in db
03/08/2012 - CO2 Private Server - 6 Replies
When i register it says register seccessful but dont show in db? i trying App Server 2.6.0 Xampp 7.7.1 and Xampp 7.1.1 Any ideas
Need albetros source help ... Pro4ever[pls come here,thx]
02/17/2012 - CO2 Private Server - 1 Replies
iwant make 100+ static AIPlayer in market map or another map from database characters table when the user no in the game... it mean the AIPlayer didn't do anything -_-~ how can i do ... i read your code ... like duelist .... can you teach me how to code -_-!
pro4ever .. albetros source cheat???
02/03/2012 - CO2 Private Server - 9 Replies
why did the albetros source , some player can cheat,add much statpoint and cps .....i'm in trouble ,how can i do , in the server didn't saw any Exception.. but some player can make statpoint up to 10000+ and cps add 1,000,000,000 + how can i prevent that cheat again help me ....
albetros source question!!!
01/30/2012 - CO2 Private Server - 3 Replies
ok ... i only have one question ... what is the IrcBot? how can i use it fully ??



All times are GMT +1. The time now is 22:17.


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