Exemple #1
0
 private void OnNewTickPacket(Client client, NewTickPacket packet)
 {
     if (this.m_currentGameId != -5) return;
     for (int i = 0; i < packet.Statuses.Length; i++)
         if (this.m_chests.ContainsKey(packet.Statuses[i].ObjectId))
             UpdateStats(ref packet.Statuses[i]);
 }
Exemple #2
0
 private void OnNewTick(Client client, NewTickPacket packet)
 {
     client.PlayerData.Parse(packet);
 }
Exemple #3
0
        public void Tick(NewTickPacket tick)
        {
            HP += (int)(0.2 + (client.PlayerData.Vitality * 0.024));

            foreach (Status status in tick.Statuses)
                if (status.ObjectId == client.ObjectId)
                    foreach (StatData stat in status.Data)
                        if (stat.Id == StatsType.HP)
                            HP = stat.IntValue;

            ArmorBroken = client.PlayerData.HasConditionEffect(ConditionEffects.ArmorBroken);
            Armored = client.PlayerData.HasConditionEffect(ConditionEffects.Armored);
        }
Exemple #4
0
 public void Parse(NewTickPacket newTick)
 {
     foreach (Status status in newTick.Statuses)
         if (status.ObjectId == OwnerObjectId)
             foreach (StatData data in status.Data)
             {
                 Pos = status.Position;
                 Parse(data.Id, data.IntValue, data.StringValue);
             }
 }