Exemplo n.º 1
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player = skill.GetPlayer();

                skill.SetPlus(2600.0f);
                player.SetPerform(1);
            }
Exemplo n.º 2
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetPlus(((2 * (skill_level * skill_level + (25 * skill_level)) + 750)));
                player.SetPerform(1);
            }
Exemplo n.º 3
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetPlus(6 * skill_level + 3);
                player.SetPerform(1);
            }
Exemplo n.º 4
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            player_hp   = player.GetHp();
                int            skill_level = skill.GetLevel();

                skill.SetPlus((player_hp * (skill_level * 0.02f)));
                player.SetPerform(0);
            }
Exemplo n.º 5
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetRatio((skill_level * 0.1f + 1.1f));
                skill.SetPlus(((5 * skill_level + 40)));
                player.SetPerform(1);
            }
Exemplo n.º 6
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetRatio(1.0f);
                skill.SetPlus(((zrand(200) / 100.0f + 1.0f) * ((40 * skill_level))));
                player.SetPerform(1);
            }
Exemplo n.º 7
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetRatio((norm((skill_level / 60)) * 0.12f + (norm(skill_level / 30) * 0.12f + 1.0f)));
                skill.SetPlus(((11 * skill_level)));
                player.SetPerform(1);
            }
Exemplo n.º 8
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();
                int            skill_t0    = skill.GetT0();

                skill.SetRatio((skill_t0 * 0.01f + 1.0f));
                skill.SetPlus(((10 * skill_level + 133)));
                player.SetPerform(1);
            }
Exemplo n.º 9
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetRatio(0.0f);
                skill.SetPlus(((100 * skill_level)));
                player.SetDie(true);
                player.SetPerform(1);
            }
Exemplo n.º 10
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();

                skill.SetRatio((skill_level * 0.05f + 1.0f));
                skill.SetCrithurt((skill_level * 0.15f));
                skill.SetPlus(((86 * skill_level) + (skill_level * (skill_level * 4.2f)) + 785.0f));
                player.SetPerform(1);
            }
Exemplo n.º 11
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            skill_level  = skill.GetLevel();

                skill.SetRatio((D2INT(player_level / (12 - skill_level)) * 0.01f + (skill_level * 0.01f + 1.0f)));
                skill.SetPlus(((10 * skill_level)));
                player.SetPerform(1);
            }
Exemplo n.º 12
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_maxhp = player.GetMaxhp();
                int            player_res4  = player.GetRes4();

                player.SetVar1(player_res4);
                skill.SetPlus((player_maxhp * 0.2f));
                player.SetPerform(1);
            }
Exemplo n.º 13
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            skill_level  = skill.GetLevel();
                int            skill_t0     = skill.GetT0();

                skill.SetPlus((((20 * skill_level + 50) * norm(30 / player_level) + (5 * (skill_level * skill_t0 + skill_level)) + 40)));
                player.SetPerform(1);
            }
Exemplo n.º 14
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_maxhp = player.GetMaxhp();
                int            skill_level  = skill.GetLevel();

                skill.SetRatio(0.0f);
                skill.SetPlus((player_maxhp * (skill_level * 0.01f)));
                player.SetDie(true);
                player.SetPerform(1);
            }
Exemplo n.º 15
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player           = skill.GetPlayer();
                int            player_damagemin = player.GetMinatk();
                int            player_damagemax = player.GetMaxatk();
                int            player_damage    = (player_damagemax - player_damagemin) / 2;
                int            skill_level      = skill.GetLevel();

                skill.SetPlus((skill_level + 5) / 100.0f * player_damage + (36 * skill_level + 188));
                player.SetPerform(1);
            }
Exemplo n.º 16
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_hp    = player.GetHp();
                int            player_dodge = player.GetDodge();

                skill.SetRatio(0.0f);
                skill.SetPlus((player_hp * (player_dodge * 0.05f + 0.05f)));
                player.SetDie(true);
                player.SetPerform(1);
            }
Exemplo n.º 17
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            player_res1 = player.GetRes1();
                int            player_res6 = player.GetRes6();

                player.SetVar1(player_res1);
                player.SetVar2(player_res6);
                skill.SetPlus(((player_res1 * player_res6)));
                player.SetPerform(1);
            }
Exemplo n.º 18
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player        = skill.GetPlayer();
                int            player_maxatk = player.GetMaxatk();
                int            skill_level   = skill.GetLevel();
                int            skill_t0      = skill.GetT0();

                player.SetVar1(player_maxatk);
                skill.SetRatio((skill_t0 * 0.04f + ((4 * (skill_level + ((2 * skill_level - 30) * (skill_level / 15)))) * 0.01f + 1.0f)));
                skill.SetPlus(((3 * skill_level * skill_level + (21 * skill_level) + 375)));
                player.SetPerform(0);
            }
Exemplo n.º 19
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            player_hp   = player.GetHp();
                int            player_mp   = player.GetMp();
                int            skill_level = skill.GetLevel();

                skill.SetRatio(1.0f);
                skill.SetPlus(((player_mp + player_hp) * (skill_level * 0.15f)));
                player.SetMp(0.0f);
                player.SetHp(1.0f);
                player.SetPerform(1);
            }
Exemplo n.º 20
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            player_def   = player.GetDef();
                int            skill_level  = skill.GetLevel();
                int            skill_t0     = skill.GetT0();
                int            skill_t1     = skill.GetT1();

                skill.SetRatio((D2INT(player_level / (9 - skill_level)) * 0.01f + (skill_level * 0.06f + (skill_t0 * 0.1f + 1.0f))));
                skill.SetPlus((player_def * (skill_t1 * 0.03f) + ((215 * skill_level))));
                player.SetPerform(1);
            }
Exemplo n.º 21
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_mp    = player.GetMp();
                int            player_maxmp = player.GetMaxmp();
                int            player_res4  = player.GetRes4();
                int            player_res6  = player.GetRes6();

                player.SetVar1(player_res4);
                player.SetVar2(player_res6);
                player.SetVar3(player_maxmp);
                player.SetVar4(player_mp);
                skill.SetPlus(((player_res4 * player_res6)));
                player.SetPerform(1);
            }
Exemplo n.º 22
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            player_maxmp = player.GetMaxmp();
                int            skill_level  = skill.GetLevel();

                float pp;
                float p = 0.002f * player_maxmp;

                if (player.GetSkilllevel(4011) >= skill_level)
                {
                    pp = skill_level * p;
                }
                else
                {
                    pp = player.GetSkilllevel(4011) * p;
                }
                skill.SetPlus((((20 * skill_level + 50) * norm(30 / player_level)) + (5 * skill_level + 10) + pp));
                player.SetPerform(1);
                /**/
            }
        }
        public GSkill3997Stub()
            : base(3997)
        {
            occupation           = 56;
            maxlevel             = 8;
            maxlearn             = 6;
            eventflag            = 0;
            spcost               = 1;
            reborncount          = 0;
            type                 = 1;
            timetype             = 0;
            targettype           = 0;
            rangetype            = 0;
            doenchant            = false;
            dobless              = false;
            autoattack           = true;
            allowform            = 0;
            credittype           = 0;
            clearmask            = 0;
            skill_limit          = 0;
            skillelemsnum        = 0;
            skillelemsfactor     = 0.000000f;
            serialskill          = 0;
            charge               = 0;
            chargedist           = 0.000000f;
            succeedskillcolor    = 1;
            succeedskillcolornum = 1;
            comboskill           = 0;
            need_item            = false;
            item1_id             = -1;
            item1_num            = 0;
            item2_id             = -1;
            item2_num            = 0;
            item_relation        = 0;
            weapon_limit         = 9;
            SetAction(0, "ÐùÔ¯_·Éµ¯");
            SetAction(1, "0");
            SetAction(2, "0");
            SetAction(3, "0");
            SetAction(4, "0");
            SetAction(5, "0");
            SetAction(6, "0");
            SetAction(7, "0");
            SetAction(8, "0");
            SetAction(9, "ÐùÔ¯_·Éµ¯");
            SetAction(10, "0");
            SetAction(11, "0");
            SetAction(12, "0");
            SetAction(13, "");
            SetAction(14, "");
            SetAction(15, "");
            SetAction(16, "");
            SetAction(17, "");
            SetAction(18, "ÐùÔ¯_Æï³Ë_·Éµ¯");
            SetAction(19, "0");
            SetAction(20, "0");
            SetAction(21, "0");
            SetAction(22, "0");
            SetAction(23, "0");
            SetAction(24, "0");
            SetAction(25, "0");
            SetAction(26, "0");
            SetAction(27, "ÐùÔ¯_Æï³Ë_·Éµ¯");
            SetAction(28, "0");
            SetAction(29, "0");
            SetAction(30, "0");
            name       = "¾»Äù¡¤Ë·ÐÇ";
            nativename = "¾»Äù¡¤Ë·ÐÇ";
            icon       = "¾»Äù¡¤Ë·ÐÇ.dds";
            SetTalent(0, 4149);
            SetTalent(1, 0);
            SetTalent(2, 0);
            SetTalent(3, 0);
            SetTalent(4, 0);
            SetTalent(5, 0);
            SetTalent(6, 0);
            SetTalent(7, 0);
            talent_size       = 1;
            talent_type       = 0;
            use_proficiency   = false;
            inc_proficiency   = 0;
            preskillnum       = 0;
            cycle             = false;
            cyclemode         = 0;
            cyclegfx          = "";
            skill_class       = 11;
            guide             = false;
            summon_id         = -1;
            trigger           = false;
            conbutton_sub     = false;
            isBabySkill       = false;
            castInPreSkill    = false;
            preCastSkillId    = -1;
            darkLightType     = 0;
            followskill       = 0;
            targetcnt         = 0;
            excludemonstercnt = 0;

            AddState(new GState1());
            AddState(new GState2());
        }

        public override int GetExecutetime(GSkill skill)
        {
            return(1075);
        }

        public override int GetCooldowntime(GSkill skill)
        {
            return(200);
        }

        public override int GetEnmity(GSkill skill)
        {
            return(1);
        }

        public override int GetRequiredLevel(int level)
        {
            int[] array = { 1, 3, 5, 7, 9, 11 }; return(array[level - 1]);
        }

        public override float GetPraydistance(GSkill skill)
        {
            int skill_t0 = skill.GetT0();

            return(2 * skill_t0 + 17);
        }

        public override float GetCastdistance(GSkill skill)
        {
            int skill_t0 = skill.GetT0();

            return(2 * skill_t0 + 15);
        }

        public override float GetEffectdistance(GSkill skill)
        {
            int skill_t0 = skill.GetT0();

            return(2 * skill_t0 + 20);
        }

        public override float GetMpcost(GSkill skill)
        {
            return(10.000000f);
        }
    }
    public class GSkill3997 : GSkill
    {
        public GSkill3997()
            : base(3997)
        {
        }
    }
    public class GSkill3998Stub : GSkillStub
    {
        public class GState1 : GState
        {
            public override int GetTime(GSkill skill)
            {
                return(425);
            }

            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player = skill.GetPlayer();

                player.SetPray(1);
            }

            public override bool Cancel(GSkill skill)
            {
                return(true);
            }
        }
        public class GState2 : GState
        {
            public override int GetTime(GSkill skill)
            {
                return(450);
            }

            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_mp    = player.GetMp();
                int            player_maxmp = player.GetMaxmp();
                int            player_var1  = player.GetVar1();

                /*
                 * if ( player_mp >= player_maxmp / 10 )
                 * {
                 * v = player_maxmp / 10;
                 * }
                 * else
                 * {
                 * v = player_mp;
                 * }
                 * player.SetVar1(v);
                 * player.SetMp(((player_mp - player_var1)));
                 * player.SetPerform(1);
                 */
            }