private static void DumpFilesToTmpSkill(string path) { string[] lines = File.ReadAllLines(path); for (int i = 0; i < lines.Length; i++) { string[] tmpString = lines[i].Split('\t'); tmpSkill_ tmp = new tmpSkill_(); tmp.Id = Convert.ToUInt32(tmpString[1]); tmp.NextId = Convert.ToUInt32(tmpString[9]); tmpSkills.Add(tmp); } }
private static byte GetNumberOfAttacks(tmpSkill_ tmp) { for (byte i = 0; i < 10; i++) { if (tmp.NextId != 0) { tmp = Silkroad.GetTmpSkillById(tmp.NextId); } else { return((byte)(i + 1)); } } return(1); }
private static byte GetNumberOfAttacks(tmpSkill_ tmp) { for (byte i = 0; i < 10; i++) { if (tmp.NextId != 0) tmp = Silkroad.GetTmpSkillById(tmp.NextId); else return (byte)(i + 1); } return 1; }