static public bool ChapterTok(Player Plr, ref List <string> Values) { int Entry = GetInt(ref Values); int TokEntry = GetInt(ref Values); Chapter_Info Chapter = WorldMgr.GetChapter((UInt32)Entry); Tok_Info Tok = WorldMgr.GetTok((UInt32)Entry); if (Tok == null || Chapter == null) { return(false); } Chapter.TokEntry = (UInt32)TokEntry; Chapter.Dirty = true; WorldMgr.Database.SaveObject(Chapter); return(true); }
static public bool ChapterSave(Player Plr, ref List <string> Values) { int Entry = GetInt(ref Values); Chapter_Info Info = WorldMgr.GetChapter((UInt32)Entry); if (Info == null) { return(false); } Info.PinX = (ushort)Plr.X; Info.PinY = (ushort)Plr.Y; Plr.SendMessage(Plr, "Saved [" + Info.Name + "] to '" + Plr.X + "','" + Plr.Y + "'", SystemData.ChatLogFilters.CHATLOGFILTERS_SAY); Info.Dirty = true; WorldMgr.Database.SaveObject(Info); return(true); }