Beispiel #1
0
        private void RegenTask(object sender, System.Timers.ElapsedEventArgs e)
        {
            int lvl = _hideout.GetFuncLevel(AgitManagerAi.DecotypeBuff);

            CurMp += _ai.RegenPerSec[lvl];
            if (CurMp >= _ai.RegenMax[lvl])
            {
                CurMp = _ai.RegenMax[lvl];
            }
        }
        private void RegenTask(object sender, System.Timers.ElapsedEventArgs e)
        {
            int lvl = hideout.GetFuncLevel(AgitManagerAI.decotype_buff);

            CurMP += ai.regenPerSec[lvl];
            if (CurMP >= ai.regenMax[lvl])
            {
                CurMP = ai.regenMax[lvl];
            }
        }
Beispiel #3
0
 public override void Write()
 {
     WriteByte(0xf7);
     WriteInt(_hideout.ID);                                             // clanhall id
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeHpregen));   // FUNC_RESTORE_HP (Fireplace)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeMpregen));   // FUNC_RESTORE_MP (Carpet)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeCpregen));   // FUNC_RESTORE_MP (Statue)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeXprestore)); // FUNC_RESTORE_EXP (Chandelier)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeTeleport));  // FUNC_TELEPORT (Mirror)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeBroadcast)); // Crytal
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeCurtain));   // Curtain
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeHanging));   // FUNC_ITEM_CREATE (Magic Curtain)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeBuff));      // FUNC_SUPPORT
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeOuterflag)); // FUNC_SUPPORT (Flag)
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypePlatform));  // Front Platform
     WriteByte(_hideout.GetFuncLevel(AgitManagerAi.DecotypeItem));      // FUNC_ITEM_CREATE
     WriteInt(0);
     WriteInt(0);
 }
Beispiel #4
0
 protected internal override void write()
 {
     writeC(0xf7);
     writeD(hideout.ID);                                             // clanhall id
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_hpregen));   // FUNC_RESTORE_HP (Fireplace)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_mpregen));   // FUNC_RESTORE_MP (Carpet)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_cpregen));   // FUNC_RESTORE_MP (Statue)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_xprestore)); // FUNC_RESTORE_EXP (Chandelier)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_teleport));  // FUNC_TELEPORT (Mirror)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_broadcast)); // Crytal
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_curtain));   // Curtain
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_hanging));   // FUNC_ITEM_CREATE (Magic Curtain)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_buff));      // FUNC_SUPPORT
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_outerflag)); // FUNC_SUPPORT (Flag)
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_platform));  // Front Platform
     writeC(hideout.GetFuncLevel(AgitManagerAI.decotype_item));      // FUNC_ITEM_CREATE
     writeD(0);
     writeD(0);
 }