// Token: 0x060004A5 RID: 1189 RVA: 0x00019E98 File Offset: 0x00018098 public void Update(UpdatePacket update) { if (this._lootQuest != -1 && update.Drops.Contains(this._lootQuest)) { this._lootQuest = -1; if (this._lastQuest != -1) { QuestObjIdPacket questObjIdPacket = (QuestObjIdPacket)Packet.Create(PacketType.QUESTOBJID); questObjIdPacket.ObjectId = this._lastQuest; this._lastQuest = -1; this.client.SendToClient(questObjIdPacket); } } if (Settings.Default.AutoLootBigBags) { foreach (Entity entity in update.NewObjs) { if (Enum.IsDefined(typeof(Bags), entity.ObjectType)) { foreach (StatData stat in entity.Status.Data) { if (StatsType.Id(stat.Id, StatsType.Size)) { stat.IntValue = 175; } } } } } }
// Token: 0x060004E0 RID: 1248 RVA: 0x0001C37C File Offset: 0x0001A57C private void HandleStatus(Status status) { if (status.ObjectId == this.client.PlayerId) { foreach (StatData statData in status.Data) { if (StatsType.Id(statData.Id, StatsType.MP)) { this._realMpValue = statData.IntValue; break; } } } if (!this.client.Enemies.ContainsKey(status.ObjectId)) { return; } if (!Settings.Default.EnableFameTools) { this.ApplyOriginalConditionStatdata(status.Data, status.ObjectId); return; } if (!Settings.Default.FameDontHitCubes && !Settings.Default.FameOnlyHitGods && !Settings.Default.FameDontHitIgnores) { this.ApplyOriginalConditionStatdata(status.Data, status.ObjectId); return; } GameObject gameObject = this.client.Enemies[status.ObjectId]; if ((Settings.Default.FameDontHitCubes && gameObject.Cube) || (Settings.Default.FameOnlyHitGods && !gameObject.God) || (Settings.Default.FameDontHitIgnores && Settings.Default.FameIngoredEnemies.Contains((int)gameObject.ObjectType))) { this._conditionModified[gameObject.ObjectId] = true; this.AddPauseToStatdata(status.Data); } }
// Token: 0x060004B4 RID: 1204 RVA: 0x0001ABD0 File Offset: 0x00018DD0 private void _BwUEkSS32j3v8tc5v3r4RiE6eiD(Status status, bool fromUpdate = false) { bool flag = false; foreach (StatData eawaZQvtvbptP3yFgHw8DNBicDZ in status.Data) { if (StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.HP)) { if (fromUpdate) { this._wIV6RuTHp6K14hjsabfqulJm6RB = eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue; this._MrinDQL27mmJE4svfljIZVv3O7b(eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue); } this._dTFvDKmJDtcJzyy5wFAsDubOP2x = eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue; } else if (!StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType._DVNBi2eQHLdmlmNyYH05WDcfCzq)) { if (!StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Inventory1)) { if (StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.HealthBonus)) { flag = true; } else if (!StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Effects)) { if (StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Effects2)) { this._ebyfk31Ab9aj569ppNj1fwNxyUG = ((eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue & 536870912) == 536870912); } } else if ((eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue & 67108864) != 0) { this._UorlUPPYrMfEq3JgqJC3zM4wIwf = false; } } else if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf._50Ms1zsqax9Ua48PaWMPQfIENYb._koPitlGqCPegcnIS2B6efWzp4zO == 799) { this._T1pUOttbRRz7ku5YCPysaK7ODuE(eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue); } } else { this._MrinDQL27mmJE4svfljIZVv3O7b(eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue); } } if (flag) { this._PAhfVkixgGie7An1LzLMAKuPLECA(); } if (this._y197qHnAdnQHPqX30R0Bq0tjIOcA - this._GKvDpEvGICPwzQQpBmeSSrSA0Ut > 700) { this._UorlUPPYrMfEq3JgqJC3zM4wIwf = false; } }
// Token: 0x060004E8 RID: 1256 RVA: 0x0001C77C File Offset: 0x0001A97C private void _gwQbCyGjOqugc22uFkNNeJgLuvV(Status status) { foreach (StatData eawaZQvtvbptP3yFgHw8DNBicDZ in status.Data) { if (!StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Size)) { eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue = 200; break; } } }
// Token: 0x06000506 RID: 1286 RVA: 0x0001DB30 File Offset: 0x0001BD30 private void _gwQbCyGjOqugc22uFkNNeJgLuvV(Status status) { foreach (StatData eawaZQvtvbptP3yFgHw8DNBicDZ in status.Data) { if (!StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.AltTextureIndex)) { this._DvFI4lAdBcrOLNGKR4DD0txYDzE = this._TAIsGGDN1hlbWv5A5WT7T4CvbcB.Contains(eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue); Console.WriteLine(string.Format("Oryx shielding: {0} (alt texture id {1})", this._DvFI4lAdBcrOLNGKR4DD0txYDzE, eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue)); break; } } }
// Token: 0x060004DF RID: 1247 RVA: 0x0001C2C4 File Offset: 0x0001A4C4 private void AddCond(Status status) { foreach (StatData eawaZQvtvbptP3yFgHw8DNBicDZ in status.Data) { if (StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Effects)) { if (this._originalConditions.ContainsKey(status.ObjectId)) { this._originalConditions[status.ObjectId] = eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue; break; } this._originalConditions.Add(status.ObjectId, eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue); this._conditionModified.Add(status.ObjectId, false); break; } } }
// Token: 0x06000488 RID: 1160 RVA: 0x000187B0 File Offset: 0x000169B0 private void ProcessStatus(Status status) { foreach (StatData statData in status.Data) { if (StatsType.Id(statData.Id, StatsType.Size)) { if (this._objectsToScale.ContainsKey(status.ObjectId)) { this._objectsToScale[status.ObjectId] = statData.IntValue; if (Settings.Default.AntiLagAllyPlayerSize != 100) { statData.IntValue = this.GetScaledSize(status.ObjectId); } } break; } } }
// Token: 0x06000468 RID: 1128 RVA: 0x000175C0 File Offset: 0x000157C0 private void ProcessStatus(Status status) { foreach (StatData statData in status.Data) { if (StatsType.Id(statData.Id, StatsType.HP)) { this._originalHealthValues[status.ObjectId] = statData.IntValue; break; } } if (Settings.Default.EnableFameTools && Settings.Default.FameAccuracyFarm) { StatData item = new StatData { Id = StatsType.HP, IntValue = int.MaxValue, StringValue = string.Empty }; status.Data.Add(item); } }
// Token: 0x060004E2 RID: 1250 RVA: 0x0001C540 File Offset: 0x0001A740 private void AddPauseToStatdata(List <StatData> statusData) { bool flag = false; foreach (StatData statData in statusData) { if (!StatsType.Id(statData.Id, StatsType.Effects)) { statData.IntValue |= 3145728; flag = true; } } if (!flag) { statusData.Add(new StatData { Id = StatsType.Effects, IntValue = 3145728, StringValue = "" }); } }
// Token: 0x06000477 RID: 1143 RVA: 0x00017BF4 File Offset: 0x00015DF4 private void FixPlayerDebuffs(List <StatData> statData) { StatData statData2 = null; StatData statData3 = null; foreach (StatData statData4 in statData) { if (StatsType.Id(statData4.Id, StatsType.Effects)) { statData2 = statData4; } else if (StatsType.Id(statData4.Id, StatsType.Effects2)) { statData3 = statData4; } if (statData2 != null && statData3 != null) { break; } } if (statData2 == null) { statData2 = this.PlayerCondition1Stat(); statData.Add(statData2); } if (statData3 == null) { statData3 = this.PlayerCondition2Stat(); statData.Add(statData3); } int num = 0; int num2 = 0; int num3 = 0; if (Settings.Default.IgnoreQuiet) { num |= 2; } if (Settings.Default.IgnoreWeak) { num |= 4; } if (Settings.Default.IgnoreSlowed) { num |= 8; } if (Settings.Default.IgnoreSick) { num |= 16; } if (Settings.Default.IgnoreDazed) { num |= 32; } if (Settings.Default.IgnoreStunned) { num |= 64; } if (Settings.Default.IgnoreParalyzed) { num |= 8192; } if (Settings.Default.IgnoreBleeding) { num |= 32768; } if (Settings.Default.IgnoreArmorBreak) { num |= 67108864; } if (Settings.Default.IgnorePetStasis) { num |= 2097152; } if (Settings.Default.IgnoreBlind) { num3 |= 128; } if (Settings.Default.IgnoreHallucinating) { num3 |= 256; } if (Settings.Default.IgnoreDrunk) { num3 |= 512; } if (Settings.Default.IgnoreConfused) { num3 |= 1024; } if (Settings.Default.IgnoreUnstable) { num3 |= 536870912; } if (Settings.Default.IgnoreDarkness) { num3 |= 1073741824; } if (Settings.Default.IgnorePetrified) { num2 |= 8; } if (Settings.Default.IgnoreSilence) { num2 |= 65536; } statData2.IntValue &= ~num3; if (this._aoeDebuff) { this._aoeDebuff = false; } else if (this._needsServerDebuffsFixed) { statData2.IntValue &= ~num; } if (this._aoeDebuff) { this._aoeDebuff = false; return; } if (this._needsServerDebuffsFixed) { statData3.IntValue &= ~num2; } }
// Token: 0x0600050C RID: 1292 RVA: 0x0001DDA4 File Offset: 0x0001BFA4 public void Update(UpdatePacket update) { foreach (Tile hVYZnKlD1p4NKgHvEIulwTgi91f in update.Tiles) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Tiles[(int)hVYZnKlD1p4NKgHvEIulwTgi91f.X * this._6cnIerYhzZda8dwMKe0N21tnsKG + (int)hVYZnKlD1p4NKgHvEIulwTgi91f.Y] = new Square(_JzyrOApzC09RC3fmb10FDURmyCl.Tiles.ByID(hVYZnKlD1p4NKgHvEIulwTgi91f.Type), hVYZnKlD1p4NKgHvEIulwTgi91f.X, hVYZnKlD1p4NKgHvEIulwTgi91f.Y, hVYZnKlD1p4NKgHvEIulwTgi91f.Type); } Entity[] jyJGMVpAZL4M3WPGiyvdnxz1cTH = update.NewObjs; int i = 0; while (i < jyJGMVpAZL4M3WPGiyvdnxz1cTH.Length) { Entity eTOyUHUGABMgTlUf3FUyHRn1uVv = jyJGMVpAZL4M3WPGiyvdnxz1cTH[i]; GameObject dbvvb43n9c5uNQ7JklPD1fnCEnv = new GameObject(eTOyUHUGABMgTlUf3FUyHRn1uVv); if (dbvvb43n9c5uNQ7JklPD1fnCEnv.Enemy) { goto IL_175; } if (dbvvb43n9c5uNQ7JklPD1fnCEnv.Player) { if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Players.ContainsKey(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Players.Remove(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId); } this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Players.Add(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId, dbvvb43n9c5uNQ7JklPD1fnCEnv); if (dbvvb43n9c5uNQ7JklPD1fnCEnv.ObjectId == this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.PlayerId && Settings.Default.EnableGlow) { using (List <StatData> .Enumerator enumerator = eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.Data.GetEnumerator()) { while (enumerator.MoveNext()) { StatData eawaZQvtvbptP3yFgHw8DNBicDZ = enumerator.Current; if (StatsType.Id(eawaZQvtvbptP3yFgHw8DNBicDZ.Id, StatsType.Glowing)) { eawaZQvtvbptP3yFgHw8DNBicDZ.IntValue = 100; break; } } goto IL_23F; } goto IL_175; } } IL_23F: if (eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId == this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.PlayerId) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Player = dbvvb43n9c5uNQ7JklPD1fnCEnv; } if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Objects.ContainsKey(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Objects.Remove(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId); } this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Objects.Add(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId, dbvvb43n9c5uNQ7JklPD1fnCEnv); i++; continue; IL_175: if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Enemies.ContainsKey(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Enemies.Remove(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId); } this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Enemies.Add(eTOyUHUGABMgTlUf3FUyHRn1uVv.Status.ObjectId, dbvvb43n9c5uNQ7JklPD1fnCEnv); goto IL_23F; } foreach (int key in update.Drops) { if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Enemies.ContainsKey(key)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Enemies.Remove(key); } if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Players.ContainsKey(key)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Players.Remove(key); } if (this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Objects.ContainsKey(key)) { this._W6Ov6AArxzTTDnCyBtZPqkqNaKf.Objects.Remove(key); } } }