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 override void OnRangeUpdate() { if (CurrentPiece == null || !CurrentPiece.IsOn((ushort)(X / 64), (ushort)(Y / 64), Zone.ZoneId)) { CurrentPiece = Zone.ClientInfo.GetWorldPiece((ushort)X, (ushort)Y, Zone.ZoneId); if (CurrentPiece != null) { if (CurrentPiece.Area != null) { TokInterface.AddTok(CurrentPiece.Area.TokExploreEntry); } if (CurrentPiece.IsPvp((byte)Realm)) { CbtInterface.EnablePvp(); } } } }
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; }