Beispiel #1
0
        public static bool IsAdventurerBeginner(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            switch (currentJob)
            {
            case CharacterConstants.Job.Beginner:
                return(true);

            default: return(false);
            }
        }
Beispiel #2
0
        public static bool IsCygnusBeginner(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            switch (currentJob)
            {
            case CharacterConstants.Job.Noblesse:
                return(true);

            default: return(false);
            }
        }
Beispiel #3
0
        public static bool IsAdventurerSecondJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            switch (currentJob)
            {
            // warriors
            case CharacterConstants.Job.Page:
                return(true);

            case CharacterConstants.Job.Fighter:
                return(true);

            case CharacterConstants.Job.Spearman:
                return(true);

            // mages
            case CharacterConstants.Job.Cleric:
                return(true);

            case CharacterConstants.Job.IceLightningWizard:
                return(true);

            case CharacterConstants.Job.FirePoisonWizard:
                return(true);

            // thiefs
            case CharacterConstants.Job.Assassin:
                return(true);

            case CharacterConstants.Job.Bandit:
                return(true);

            // archers
            case CharacterConstants.Job.Hunter:
                return(true);

            case CharacterConstants.Job.CrossbowMan:
                return(true);

            // pirates
            case CharacterConstants.Job.Gunslinger:
                return(true);

            case CharacterConstants.Job.Brawler:
                return(true);

            default: return(false);
            }
        }
Beispiel #4
0
        private void SetJobTo(CharacterConstants.Job value)
        {
            job = value;

            if (!Parent.IsInitialized)
            {
                return;
            }

            CharacterStats.Update(Parent, CharacterConstants.StatisticType.Job);

            CharacterBuffs.ShowLocalUserEffect(Parent, CharacterConstants.UserEffect.JobChanged);
            //CharacterBuffs.ShowRemoteUserEffect(Parent, CharacterConstants.UserEffect.JobChanged); // TODO: crashes client
        }
Beispiel #5
0
        public static bool IsAdventurerFirstJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            switch (currentJob)
            {
            case CharacterConstants.Job.Warrior:
                return(true);

            case CharacterConstants.Job.Magician:
                return(true);

            case CharacterConstants.Job.Bowman:
                return(true);

            case CharacterConstants.Job.Thief:
                return(true);

            case CharacterConstants.Job.Pirate:
                return(true);

            default: return(false);
            }
        }
Beispiel #6
0
        public static bool IsCygnusFourthJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            switch (currentJob)
            {
            case CharacterConstants.Job.DawnWarrior4:
                return(true);

            case CharacterConstants.Job.BlazeWizard4:
                return(true);

            case CharacterConstants.Job.WindArcher4:
                return(true);

            case CharacterConstants.Job.NightWalker4:
                return(true);

            case CharacterConstants.Job.ThunderBreaker4:
                return(true);

            default: return(false);
            }
        }
Beispiel #7
0
        // TODO: finish this, sub-switch depending on skill and another on skill level.
        public static void AdjustHPOnLevelUP(Character character)
        {
            if (character == null)
            {
                return;
            }

            CharacterConstants.Job charJob = character.Job;
            Random r = new Random();

            switch (charJob)
            {
            case CharacterConstants.Job.Beginner:
                short HPBonusBeginner = Convert.ToInt16(r.Next(10, 16));
                AddHP(character, HPBonusBeginner);
                break;

            case CharacterConstants.Job.Aran:
                short HPBonusAran = Convert.ToInt16(r.Next(10, 16));
                AddHP(character, HPBonusAran);
                break;

            case CharacterConstants.Job.Noblesse:
                short HPBonusNoblesse = Convert.ToInt16(r.Next(10, 16));
                AddHP(character, HPBonusNoblesse);
                break;

            case CharacterConstants.Job.Warrior:
                short HPBonusWarrior = Convert.ToInt16(r.Next(24, 28));
                AddHP(character, HPBonusWarrior);
                break;

            case CharacterConstants.Job.DawnWarrior1:
                short HPBonusDawnWarrior1 = Convert.ToInt16(r.Next(24, 28));
                AddHP(character, HPBonusDawnWarrior1);
                break;

            case CharacterConstants.Job.Aran1:
                short HPBonusAran1 = Convert.ToInt16(r.Next(44, 48));
                AddHP(character, HPBonusAran1);
                break;

            case CharacterConstants.Job.Magician:
                short HPBonusCrusader = Convert.ToInt16(r.Next(10, 14));
                AddHP(character, HPBonusCrusader);
                break;

            case CharacterConstants.Job.BlazeWizard1:
                short HPBonusDawnWarrior2 = Convert.ToInt16(r.Next(10, 14));
                AddHP(character, HPBonusDawnWarrior2);
                break;

            case CharacterConstants.Job.Bowman:
                short HPBonusBowman = Convert.ToInt16(r.Next(20, 24));
                AddHP(character, HPBonusBowman);
                break;

            case CharacterConstants.Job.WindArcher1:
                short HPBonusWindArcher1 = Convert.ToInt16(r.Next(20, 24));
                AddHP(character, HPBonusWindArcher1);
                break;

            case CharacterConstants.Job.Thief:
                short HPBonusThief = Convert.ToInt16(r.Next(20, 24));
                AddHP(character, HPBonusThief);
                break;

            case CharacterConstants.Job.NightWalker1:
                short HPBonusNightWalker1 = Convert.ToInt16(r.Next(20, 24));
                AddHP(character, HPBonusNightWalker1);
                break;

            case CharacterConstants.Job.Pirate:
                short HPBonusPirate = Convert.ToInt16(r.Next(22, 28));
                AddHP(character, HPBonusPirate);
                break;

            case CharacterConstants.Job.ThunderBreaker1:
                short HPBonusThunderBreaker1 = Convert.ToInt16(r.Next(22, 28));
                AddHP(character, HPBonusThunderBreaker1);
                break;

            case CharacterConstants.Job.GM:
                short HPBonusGM = 30000;
                AddHP(character, HPBonusGM);
                break;

            case CharacterConstants.Job.SuperGM:
                short HPBonusSuperGM = 30000;
                AddHP(character, HPBonusSuperGM);
                break;

            case CharacterConstants.Job.Fighter:
                break;

            case CharacterConstants.Job.Crusader:
                break;

            case CharacterConstants.Job.Hero:
                break;

            case CharacterConstants.Job.Page:
                break;

            case CharacterConstants.Job.WhiteKnight:
                break;

            case CharacterConstants.Job.Paladin:
                break;

            case CharacterConstants.Job.Spearman:
                break;

            case CharacterConstants.Job.DragonKnight:
                break;

            case CharacterConstants.Job.DarkKnight:
                break;

            case CharacterConstants.Job.FirePoisonWizard:
                break;

            case CharacterConstants.Job.FirePoisonMage:
                break;

            case CharacterConstants.Job.FirePoisonArchMage:
                break;

            case CharacterConstants.Job.IceLightningWizard:
                break;

            case CharacterConstants.Job.IceLightningMage:
                break;

            case CharacterConstants.Job.IceLightningArchMage:
                break;

            case CharacterConstants.Job.Cleric:
                break;

            case CharacterConstants.Job.Priest:
                break;

            case CharacterConstants.Job.Bishop:
                break;

            case CharacterConstants.Job.Hunter:
                break;

            case CharacterConstants.Job.Ranger:
                break;

            case CharacterConstants.Job.BowMaster:
                break;

            case CharacterConstants.Job.CrossbowMan:
                break;

            case CharacterConstants.Job.Sniper:
                break;

            case CharacterConstants.Job.CrossbowMaster:
                break;

            case CharacterConstants.Job.Assassin:
                break;

            case CharacterConstants.Job.Hermit:
                break;

            case CharacterConstants.Job.NightLord:
                break;

            case CharacterConstants.Job.Bandit:
                break;

            case CharacterConstants.Job.ChiefBandit:
                break;

            case CharacterConstants.Job.Shadower:
                break;

            case CharacterConstants.Job.Brawler:
                break;

            case CharacterConstants.Job.Marauder:
                break;

            case CharacterConstants.Job.Buccaneer:
                break;

            case CharacterConstants.Job.Gunslinger:
                break;

            case CharacterConstants.Job.Outlaw:
                break;

            case CharacterConstants.Job.Corsair:
                break;

            case CharacterConstants.Job.MapleleafBrigadier:
                break;

            case CharacterConstants.Job.DawnWarrior2:
                break;

            case CharacterConstants.Job.DawnWarrior3:
                break;

            case CharacterConstants.Job.DawnWarrior4:
                break;

            case CharacterConstants.Job.BlazeWizard2:
                break;

            case CharacterConstants.Job.BlazeWizard3:
                break;

            case CharacterConstants.Job.BlazeWizard4:
                break;

            case CharacterConstants.Job.WindArcher2:
                break;

            case CharacterConstants.Job.WindArcher3:
                break;

            case CharacterConstants.Job.WindArcher4:
                break;

            case CharacterConstants.Job.NightWalker2:
                break;

            case CharacterConstants.Job.NightWalker3:
                break;

            case CharacterConstants.Job.NightWalker4:
                break;

            case CharacterConstants.Job.ThunderBreaker2:
                break;

            case CharacterConstants.Job.ThunderBreaker3:
                break;

            case CharacterConstants.Job.ThunderBreaker4:
                break;

            case CharacterConstants.Job.Aran2:
                break;

            case CharacterConstants.Job.Aran3:
                break;

            case CharacterConstants.Job.Aran4:
                break;

            default:
                AddHP(character, 100);
                break;
            }
        }
Beispiel #8
0
        public static bool IsSuperGMJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            return(currentJob == CharacterConstants.Job.SuperGM);
        }
Beispiel #9
0
        public static bool IsMapleleafBrigadierJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            return(currentJob == CharacterConstants.Job.MapleleafBrigadier);
        }
Beispiel #10
0
        public static bool IsAranFourthJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            return(currentJob == CharacterConstants.Job.Aran4);
        }
Beispiel #11
0
        public static bool IsAranThirdJob(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            return(currentJob == CharacterConstants.Job.Aran3);
        }
Beispiel #12
0
        public static bool IsAranBeginner(Character Player)
        {
            CharacterConstants.Job currentJob = Player.Job;

            return(currentJob == CharacterConstants.Job.Aran);
        }