示例#1
0
文件: AreaMapMgr.cs 项目: uvbs/DoR
        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);
            }
        }
示例#2
0
文件: Player.cs 项目: uvbs/DoR
        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();
                    }
                }
            }
        }
示例#3
0
        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;
        }