public static void ConvertV6ToV7(int num) { DataConverter.Npcs.V7.Npc npcV7 = new Server.DataConverter.Npcs.V7.Npc(); DataConverter.Npcs.V6.Npc npcV6 = Server.DataConverter.Npcs.V6.NpcManager.LoadNpc(num); npcV7.Name = npcV6.Name; npcV7.AttackSay = npcV6.AttackSay; npcV7.Behavior = npcV6.Behavior; npcV7.Form = 0; npcV7.ShinyChance = 0; npcV7.Species = npcV6.Species; for (int z = 0; z < Constants.MAX_NPC_DROPS; z++) { npcV7.Drops[z].ItemNum = npcV6.Drops[z].ItemNum; npcV7.Drops[z].ItemValue = npcV6.Drops[z].ItemValue; npcV7.Drops[z].Chance = npcV6.Drops[z].Chance; } npcV7.RecruitRate = npcV6.RecruitRate; npcV7.Moves[0] = npcV6.Moves[0]; npcV7.Moves[1] = npcV6.Moves[1]; npcV7.Moves[2] = npcV6.Moves[2]; npcV7.Moves[3] = npcV6.Moves[3]; npcV7.SpawnsAtDawn = npcV6.SpawnsAtDawn; npcV7.SpawnsAtDay = npcV6.SpawnsAtDay; npcV7.SpawnsAtDusk = npcV6.SpawnsAtDusk; npcV7.SpawnsAtNight = npcV6.SpawnsAtNight; npcV7.AIScript = npcV6.AIScript; Npcs.V7.NpcManager.SaveNpc(npcV7, num); }
public static void ConvertV6ToV7(int num) { DataConverter.Npcs.V7.Npc npcV7 = new Server.DataConverter.Npcs.V7.Npc(); DataConverter.Npcs.V6.Npc npcV6 = Server.DataConverter.Npcs.V6.NpcManager.LoadNpc(num); npcV7.Name = npcV6.Name; npcV7.AttackSay = npcV6.AttackSay; npcV7.Behavior = npcV6.Behavior; npcV7.Form = 0; npcV7.ShinyChance = 0; npcV7.Species = npcV6.Species; for (int z = 0; z < Constants.MAX_NPC_DROPS; z++) { npcV7.Drops[z].ItemNum = npcV6.Drops[z].ItemNum; npcV7.Drops[z].ItemValue = npcV6.Drops[z].ItemValue; npcV7.Drops[z].Chance = npcV6.Drops[z].Chance; } npcV7.RecruitRate = npcV6.RecruitRate; npcV7.Moves[0] = npcV6.Moves[0]; npcV7.Moves[1] = npcV6.Moves[1]; npcV7.Moves[2] = npcV6.Moves[2]; npcV7.Moves[3] = npcV6.Moves[3]; npcV7.SpawnsAtDawn = npcV6.SpawnsAtDawn; npcV7.SpawnsAtDay = npcV6.SpawnsAtDay; npcV7.SpawnsAtDusk = npcV6.SpawnsAtDusk; npcV7.SpawnsAtNight = npcV6.SpawnsAtNight; npcV7.AIScript = npcV6.AIScript; Npcs.V7.NpcManager.SaveNpc(npcV7, num); }