public uint GetTokExplore(TokInterface Interface, ushort PinX, ushort PinY, byte Realm) { Zone_Area Area = GetArea(PinX, PinY, Realm); if (Area == null) { return(0); } if (Area.TokExploreEntry == 0) { return(0); } if (Interface != null && Interface.HasTok(Area.TokExploreEntry)) { return(Area.TokExploreEntry); } if (IsOnExploreArea(Area, PinX, PinY)) { if (Interface != null) { Interface.AddTok(Area.TokExploreEntry); } return(Area.TokExploreEntry); } else { return(0); } }
public Player(GameClient Client, Character Info) : base() { Log.Success("Player", "Construction de " + Info.Name); _Client = Client; _Info = Info; _Value = Info.Value[0]; Name = Info.Name; SetFaction((byte)(8 * (8 * Info.Realm) + 6)); EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId); SocInterface = new SocialInterface(this); TokInterface = new TokInterface(this); }
public Player(GameClient Client,Character Info) : base() { Log.Success("Player", "Construction de " + Info.Name); _Client = Client; _Info = Info; _Value = Info.Value[0]; Name = Info.Name; SetFaction((byte)(8*(8*Info.Realm)+6)); EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId); SocInterface = new SocialInterface(this); TokInterface = new TokInterface(this); }
public Player(GameClient Client,Character Info) : base() { Log.Success("Player", "Construction de " + Info.Name); _Client = Client; _Info = Info; _Value = Info.Value[0]; Name = Info.Name; Realm = (GameData.Realms)Info.Realm; SetPvpFlag(false); EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId); SocInterface = new SocialInterface(this); TokInterface = new TokInterface(this); MlInterface = new MailInterface(this); }
public Player(GameClient Client, Character Info) : base() { _Client = Client; _Info = Info; _Value = Info.Value; Name = Info.Name; Realm = (GameData.Realms)Info.Realm; SetPVPFlag(false); EvtInterface = AddInterface(EventInterface.GetEventInterface((uint)_Info.CharacterId)) as EventInterface; SocInterface = AddInterface <SocialInterface>(); TokInterface = AddInterface <TokInterface>(); MlInterface = AddInterface <MailInterface>(); EvtInterface.AddEventNotify(EventName.ON_MOVE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_RECEIVE_DAMAGE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_DEAL_DAMAGE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_START_CASTING, CancelQuit); }
public Player(GameClient Client,Character Info) : base() { _Client = Client; _Info = Info; _Value = Info.Value; Name = Info.Name; Realm = (GameData.Realms)Info.Realm; SetPVPFlag(false); EvtInterface = AddInterface(EventInterface.GetEventInterface((uint)_Info.CharacterId)) as EventInterface; SocInterface = AddInterface<SocialInterface>(); TokInterface = AddInterface<TokInterface>(); MlInterface = AddInterface<MailInterface>(); EvtInterface.AddEventNotify(EventName.ON_MOVE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_RECEIVE_DAMAGE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_DEAL_DAMAGE, CancelQuit); EvtInterface.AddEventNotify(EventName.ON_START_CASTING, CancelQuit); }
public uint GetTokExplore(TokInterface Interface,ushort PinX, ushort PinY, byte Realm) { Zone_Area Area = GetArea(PinX, PinY, Realm); Log.Info("GetTokExplore", "Area = " + Area); if (Area == null) return 0; if (Area.TokExploreEntry == 0) return 0; if (Interface != null && Interface.HasTok(Area.TokExploreEntry)) return Area.TokExploreEntry; if (IsOnExploreArea(Area, PinX, PinY)) { if (Interface != null) Interface.AddTok(Area.TokExploreEntry); return Area.TokExploreEntry; } else return 0; }