public void Load(Character_tok[] Toks) { if(Toks != null) foreach (Character_tok Tok in Toks) _Toks.Add(Tok.TokEntry,Tok); base.Load(); }
public void AddTok(ushort Entry) { if (HasTok(Entry)) return; Tok_Info Info = WorldMgr.GetTok(Entry); if (Info == null) return; SendTok(Entry, true); Character_tok Tok = new Character_tok(); Tok.TokEntry = Entry; Tok.CharacterId = GetPlayer().CharacterId; Tok.Count = 1; _Toks.Add(Entry, Tok); GetPlayer().AddXp(Info.Xp); GetPlayer()._Info.Toks = _Toks.Values.ToList(); CharMgr.Database.AddObject(Tok); }