static IntelligentCreatureInfo() { BabyPig = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyPig, Icon = 500, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 4000, Info = "Can pickup items (3x3 semi-auto)." }; Chick = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Chick, Icon = 501, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "Can pickup items (7x7 auto/semi-auto, 11x11 mouse).", Info1 = "Can produce BlackStones." }; Kitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Kitten, Icon = 502, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 6000, Info = "Can pickup items (5x5 semi-auto)." }; BabySkeleton = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySkeleton, Icon = 503, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "Can pickup items (7x7 auto/semi-auto, 11x11 mouse).", Info1 = "Can produce BlackStones." }; Baekdon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Baekdon, Icon = 504, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "Can pickup items (7x7 auto/semi-auto, 11x11 mouse).", Info1 = "Can produce BlackStones." }; Wimaen = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Wimaen, Icon = 505, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "Can pickup items (5x5 auto/semi-auto, 7x7 mouse)." }; BlackKitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BlackKitten, Icon = 506, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "Can pickup items (5x5 auto/semi-auto, 7x7 mouse)." }; BabyDragon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyDragon, Icon = 507, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 7000, Info = "Can pickup items (5x5 auto/semi-auto, 7x7 mouse)." }; OlympicFlame = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.OlympicFlame, Icon = 508, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "Can pickup items (11x11 auto/semi-auto, 11x11 mouse).", Info1 = "Can produce BlackStones." }; BabySnowMan = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySnowMan, Icon = 509, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "Can pickup items (11x11 auto/semi-auto, 11x11 mouse).", Info1 = "Can produce BlackStones." }; }
static IntelligentCreatureInfo() { BabyPig = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyPig, Icon = 500, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 4000, Info = "아이템 줍기 가능(3x3 반자동)" }; Chick = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Chick, Icon = 501, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "아이템 줍기 가능(7x7 자동/반자동, 11x11 마우스)", Info1 = "흑옥 생산 가능" }; Kitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Kitten, Icon = 502, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 6000, Info = "아이템 줍기 가능(5x5 반자동)" }; BabySkeleton = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySkeleton, Icon = 503, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "아이템 줍기 가능(7x7 자동/반자동, 11x11 마우스)", Info1 = "흑옥 생산 가능" }; Baekdon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Baekdon, Icon = 504, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "아이템 줍기 가능(7x7 자동/반자동, 11x11 마우스)", Info1 = "흑옥 생산 가능" }; Wimaen = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Wimaen, Icon = 505, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "아이템 줍기 가능(5x5 자동/반자동, 7x7 마우스)" }; BlackKitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BlackKitten, Icon = 506, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "아이템 줍기 가능(5x5 자동/반자동, 7x7 마우스)" }; BabyDragon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyDragon, Icon = 507, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 7000, Info = "아이템 줍기 가능(5x5 자동/반자동, 7x7 마우스)" }; OlympicFlame = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.OlympicFlame, Icon = 508, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "아이템 줍기 가능(11x11 자동/반자동, 11x11 마우스)", Info1 = "흑옥 생산 가능" }; BabySnowMan = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySnowMan, Icon = 509, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "아이템 줍기 가능(11x11 자동/반자동, 11x11 마우스)", Info1 = "흑옥 생산 가능" }; }
public UserIntelligentCreature(BinaryReader reader) { PetType = (IntelligentCreatureType)reader.ReadByte(); Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = reader.ReadString(); Fullness = reader.ReadInt32(); SlotIndex = reader.ReadInt32(); var expireTime = reader.ReadInt64(); if (expireTime == -9999) { Expire = DateTime.MinValue; } else { Expire = DateTime.Now.AddSeconds(expireTime); } BlackstoneTime = reader.ReadInt64(); petMode = (IntelligentCreaturePickupMode)reader.ReadByte(); Filter = new IntelligentCreatureItemFilter(reader); if (Envir.LoadVersion > 48) { Filter.PickupGrade = (ItemGrade)reader.ReadByte(); MaintainFoodTime = reader.ReadInt64();//maintain food buff } }
public UserIntelligentCreature(MySqlDataReader readerIntelligentCreaturesDB) { PetType = (IntelligentCreatureType)Convert.ToInt32(readerIntelligentCreaturesDB["PetType"]); Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = readerIntelligentCreaturesDB["CustomName"].ToString(); Fullness = Convert.ToInt32(readerIntelligentCreaturesDB["Fullness"]); SlotIndex = Convert.ToInt32(readerIntelligentCreaturesDB["SlotIndex"]); ExpireTime = Convert.ToInt64(readerIntelligentCreaturesDB["ExpireTime"]); BlackstoneTime = Convert.ToInt64(readerIntelligentCreaturesDB["BlackstoneTime"]); petMode = (IntelligentCreaturePickupMode)Convert.ToByte(readerIntelligentCreaturesDB["PetMode"]); //Filter = new IntelligentCreatureItemFilter(reader); Filter = new IntelligentCreatureItemFilter(); Filter.PetPickupAll = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupAll"]); Filter.PetPickupGold = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupGold"]); Filter.PetPickupWeapons = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupWeapons"]); Filter.PetPickupArmours = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupArmours"]); Filter.PetPickupHelmets = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupHelmets"]); Filter.PetPickupBoots = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupBoots"]); Filter.PetPickupBelts = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupBelts"]); Filter.PetPickupAccessories = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupAccessories"]); Filter.PetPickupOthers = Convert.ToBoolean(readerIntelligentCreaturesDB["PetPickupOthers"]); Filter.PickupGrade = (ItemGrade)Convert.ToByte(readerIntelligentCreaturesDB["PickupGrade"]); MaintainFoodTime = Convert.ToInt64(readerIntelligentCreaturesDB["MaintainFoodTime"]);//maintain food buff }
public static IntelligentCreatureInfo GetCreatureInfo(IntelligentCreatureType petType) { for (int i = 0; i < Creatures.Count; i++) { IntelligentCreatureInfo info = Creatures[i]; if (info.PetType != petType) { continue; } return(info); } return(null); }
public UserIntelligentCreature(BinaryReader reader) { PetType = (IntelligentCreatureType)reader.ReadByte(); Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = reader.ReadString(); Fullness = reader.ReadInt32(); SlotIndex = reader.ReadInt32(); ExpireTime = reader.ReadInt64(); BlackstoneTime = reader.ReadInt64(); petMode = (IntelligentCreaturePickupMode)reader.ReadByte(); Filter = new IntelligentCreatureItemFilter(reader); }
static IntelligentCreatureInfo() { BabyPig = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyPig, Icon = 500, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 4000, Info = "自动拾取3X3的物品." }; Chick = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Chick, Icon = 501, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Kitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Kitten, Icon = 502, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 3, MinimalFullness = 6000, Info = "自动拾取5X5的物品." }; BabySkeleton = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySkeleton, Icon = 503, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Baekdon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Baekdon, Icon = 504, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 7, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 7, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Wimaen = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Wimaen, Icon = 505, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "自动拾取" }; BlackKitten = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BlackKitten, Icon = 506, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 5000, Info = "自动拾取." }; BabyDragon = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyDragon, Icon = 507, MousePickupEnabled = true, MousePickupRange = 7, AutoPickupEnabled = true, AutoPickupRange = 5, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 5, MinimalFullness = 7000, Info = "自动拾取" }; OlympicFlame = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.OlympicFlame, Icon = 508, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; BabySnowMan = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabySnowMan, Icon = 509, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Frog = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Frog, Icon = 510, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Monkey = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.BabyMonkey, Icon = 511, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; AngryBird = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.AngryBird, Icon = 512, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; Foxey = new IntelligentCreatureInfo { PetType = IntelligentCreatureType.Foxey, Icon = 513, MousePickupEnabled = true, MousePickupRange = 11, AutoPickupEnabled = true, AutoPickupRange = 11, SemiAutoPickupEnabled = true, SemiAutoPickupRange = 11, CanProduceBlackStone = true, Info = "自动拾取.", Info1 = "获取黑石." }; }
public UserIntelligentCreature(IntelligentCreatureType creatureType, int slot, byte effect = 0) { PetType = creatureType; Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = Settings.IntelligentCreatureNameList[(byte)PetType]; Fullness = 7500;//starts at 75% food SlotIndex = slot; if (effect > 0) { ExpireTime = effect * 86400; //effect holds the amount in days } else { ExpireTime = -9999; //permanent } BlackstoneTime = 0; Filter = new IntelligentCreatureItemFilter(); }
public UserIntelligentCreature(BinaryReader reader) { PetType = (IntelligentCreatureType)reader.ReadByte(); Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = reader.ReadString(); Fullness = reader.ReadInt32(); SlotIndex = reader.ReadInt32(); ExpireTime = reader.ReadInt64(); BlackstoneTime = reader.ReadInt64(); petMode = (IntelligentCreaturePickupMode)reader.ReadByte(); Filter = new IntelligentCreatureItemFilter(reader); if (Envir.LoadVersion > 48) { Filter.PickupGrade = (ItemGrade)reader.ReadByte(); MaintainFoodTime = reader.ReadInt64();//maintain food buff } }
public UserIntelligentCreature(IntelligentCreatureType creatureType, int slot, byte effect = 0) { PetType = creatureType; Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = Envir.Main.GetMonsterInfo(64, (byte)PetType)?.Name ?? PetType.ToString(); Fullness = 7500;//starts at 75% food SlotIndex = slot; if (effect > 0) { Expire = DateTime.Now.AddDays(effect); //effect holds the amount in days } else { Expire = DateTime.MinValue; //permanent } BlackstoneTime = 0; MaintainFoodTime = 0; Filter = new IntelligentCreatureItemFilter(); }
public UserIntelligentCreature(IntelligentCreatureType creatureType, int slot, byte effect = 0) { PetType = creatureType; Info = IntelligentCreatureInfo.GetCreatureInfo(PetType); CustomName = Settings.IntelligentCreatureNameList[(byte)PetType]; Fullness = 7500;//starts at 75% food SlotIndex = slot; if (effect > 0) ExpireTime = effect * 86400;//effect holds the amount in days else ExpireTime = -9999;//permanent BlackstoneTime = 0; MaintainFoodTime = 0; Filter = new IntelligentCreatureItemFilter(); }