Register for your free account! | Forgot your password?

You last visited: Today at 00:32

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

Advertisement



Albetros source easy reborn

Discussion on Albetros source easy reborn within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 106
Received Thanks: 9
Albetros source easy reborn

i'm not sure it's allright ...debug yourself
PHP Code:
/// <summary>
        /// 转世
        /// </summary>
        /// <param name="jobid">职业</param>
        
public void RebornTo(byte jobid)
        {
            if (
this.Reborn 1)
                return;
            if (
this.Reborn == 0)
            {
                
byte OldPro this.Profession;
                
byte OldLevel Level;
                
byte newLevel 15;
                
string AtrStr "";
                
string[] tmp;
                
#region 重置属性点
                
switch (jobid)
                {
                    case 
11:
                        
//勇士
                        
AtrStr Albetros.Game.Calculations.Experience.TrojanStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Length;i++ )
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                    case 
21:
                        
//战士
                        
AtrStr Albetros.Game.Calculations.Experience.WarriorStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Length;i++ )
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                    case 
41:
                        
//弓手
                        
AtrStr Albetros.Game.Calculations.Experience.ArcherStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Lengthi++)
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                    case 
51:
                        
//忍者
                        
AtrStr Albetros.Game.Calculations.Experience.NinjaStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Lengthi++)
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                    case 
61:
                        
//武僧
                        
AtrStr Albetros.Game.Calculations.Experience.MonkStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Lengthi++)
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                    case 
131:
                    case 
141:
                        
//道士
                        
AtrStr Albetros.Game.Calculations.Experience.TaoistStats[newLevel];
                        
tmp AtrStr.Split(',');
                        for (
int i 0tmp.Lengthi++)
                        {
                            
StatPoint += Convert.ToUInt16(tmp[i]);
                        }
                        break;
                }

                
//超过130转世每级加3点
                
if (OldLevel >= 130)
                {
                    for (
int i 0OldLevel 129i++)
                    {
                        
StatPoint += 3;
                    }
                }
                
#endregion

                
this.Reborn 1;
                
this.Level newLevel;
                
this.Profession jobid;

                
#region 技能重置
                
ushort[] tmpSkills null;
                
OldPro /= 10;
                
jobid /= 10;
                switch (
OldPro)
                {
                    case 
1// 勇士
                        
switch (jobid)
                        {
                            case 
5:
                            case 
4tmpSkills = new ushort[] { 11101190 }; break;
                            case 
14tmpSkills = new ushort[] { 111011901270 }; break;
                            case 
1tmpSkills = new ushort[] { 3050 }; break;
                            case 
2tmpSkills = new ushort[] { 111011905100 }; break;
                        }
                        break;
                    case 
2// 战士
                        
switch (jobid)
                        {
                            case 
4:
                            case 
14tmpSkills = new ushort[] { 10201040 }; break;
                            case 
5:
                            case 
1tmpSkills = new ushort[] { 104010151320 }; break;
                            case 
2tmpSkills = new ushort[] { 3060 }; break;
                            case 
13tmpSkills = new ushort[] { 102010401025 }; break;
                        }
                        break;
                    case 
4// 弓手
                        
switch (jobid)
                        {
                            case 
4tmpSkills = new ushort[] { 5000 }; break;
                        }
                        break;
                    case 
5// 忍者
                        
switch (jobid)
                        {
                            case 
5tmpSkills = new ushort[] { 600060016002600360106011 }; break;
                            default: 
tmpSkills = new ushort[] { 6001 }; break;
                        }
                        break;
                    case 
13// 水道
                        
switch (jobid)
                        {
                            case 
13tmpSkills = new ushort[] { 3090 }; break;
                            case 
2:
                            case 
5:
                            case 
1tmpSkills = new ushort[] { 10051090109511951085 }; break;
                            case 
14tmpSkills = new ushort[] { 1050117510751055 }; break;
                        }
                        break;
                    case 
14// 火道
                        
switch (jobid)
                        {
                            case 
14tmpSkills = new ushort[] { 3080 }; break;
                            case 
13tmpSkills = new ushort[] { 1120 }; break;
                            case 
1:
                            case 
2:
                            case 
5:
                            case 
4tmpSkills = new ushort[] { 1000100110051195 }; break;
                        }
                        break;
                }

                
this.Skills.Clear();
                foreach (
ushort skillId in tmpSkills)
                {
                    if (!
this.Skills.ContainsKey(skillId))
                        
AddSkill(skillId00);
                }
                
#endregion

                
Albetros.Game.Handler.LowerAllItems(this);
            }
        } 
somecode is offline  
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 00:32.


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.