public static void ConvertV5ToV6(int num) { DataConverter.Npcs.V6.Npc npcV6 = new Server.DataConverter.Npcs.V6.Npc(); DataConverter.Npcs.V5.Npc npcV5 = Server.DataConverter.Npcs.V5.NpcManager.LoadNpc(num); npcV6.Name = npcV5.Name; npcV6.AttackSay = npcV5.AttackSay; npcV6.Sprite = npcV5.Sprite; npcV6.Behavior = npcV5.Behaviour; npcV6.Range = npcV5.Range; npcV6.Species = npcV5.Species; for (int z = 0; z < Constants.MAX_NPC_DROPS; z++) { npcV6.Drops[z].ItemNum = npcV5.Drops[z].ItemNum; npcV6.Drops[z].ItemValue = npcV5.Drops[z].ItemValue; npcV6.Drops[z].Chance = npcV5.Drops[z].Chance; } npcV6.RecruitRate = npcV5.RecruitRate; npcV6.Moves[0] = npcV5.Moves[0]; npcV6.Moves[1] = npcV5.Moves[1]; npcV6.Moves[2] = npcV5.Moves[2]; npcV6.Moves[3] = npcV5.Moves[3]; if (npcV5.SpawnTime == 2) { npcV6.SpawnsAtNight = true; } else { npcV6.SpawnsAtDay = true; } npcV6.AIScript = npcV5.AIScript; Npcs.V6.NpcManager.SaveNpc(npcV6, num); }