コード例 #1
0
        public override void Initialize()
        {
            tryes2   = 0;
            Instance = this;
            while (myclass < 0)
            {
                slog("Your class is not pala nor priest, insteas is {0} tryes {1} \n I'm retyng to undersand your class but if you are not a pala or priest you should not be here", Me.Class, tryes2);
                tryes2++;
                Thread.Sleep(1000);
                ObjectManager.Update();
            }
            if (myclass == 0)
            {
                slog(Color.Orange, "Hello Executor!\n I\'m UPaHCCBT and i\'m here to assist you keeping your friend alive\n You are using UPaHCCBT version {0} revision {1}", version, revision);
                Global_Judgment_range = (int)SpellManager.Spells["Judgement"].MaxRange;
                slog(Color.Orange, "Your Judgment range is {0} yard! will use this value", Global_Judgment_range);
                _can_dispel_disease = true;
                _can_dispel_magic   = true;
                _can_dispel_poison  = true;
            }
            else if (myclass == 1)
            {
                slog(Color.Orange, "Hello Executor!\n I\'m UPrHCCBT and i\'m here to assist you keeping your friend alive\n You are using UPrHCCBT version {0} revision {1}", version, revision);
                _can_dispel_disease = false;
                _can_dispel_magic   = true;
                _can_dispel_poison  = false;
            }

            AttachEventHandlers();
            if (!CreateBehaviors())
            {
                return;
            }
        }
コード例 #2
0
        public override void Initialize()
        {
            tryes2 = 0;
            Instance = this;
            while (myclass < 0)
            {
                slog("Your class is not pala nor priest, insteas is {0} tryes {1} \n I'm retyng to undersand your class but if you are not a pala or priest you should not be here", Me.Class,tryes2);
                tryes2++;
                Thread.Sleep(1000);
                ObjectManager.Update();
            }
            if (myclass == 0)
            {
                slog(Color.Orange, "Hello Executor!\n I\'m UPaHCCBT and i\'m here to assist you keeping your friend alive\n You are using UPaHCCBT version {0} revision {1}", version, revision);
                Global_Judgment_range = (int)SpellManager.Spells["Judgement"].MaxRange;
                slog(Color.Orange, "Your Judgment range is {0} yard! will use this value", Global_Judgment_range);
                _can_dispel_disease = true;
                _can_dispel_magic = true;
                _can_dispel_poison = true;
            }
            else if (myclass == 1)
            {
                slog(Color.Orange, "Hello Executor!\n I\'m UPrHCCBT and i\'m here to assist you keeping your friend alive\n You are using UPrHCCBT version {0} revision {1}", version, revision);
                _can_dispel_disease = false;
                _can_dispel_magic = true;
                _can_dispel_poison = false;
            }

            AttachEventHandlers();
            if (!CreateBehaviors())
            {
                return;
            }
        }