Пример #1
0
 public static void ShowTaxiList(Character chr, PathNode node)
 {
     if (node == null)
     {
         return;
     }
     TaxiHandler.ShowTaxiList(chr, (IEntity)chr, node);
 }
Пример #2
0
 public static void SendTaxiNodeStatus(IPacketReceiver client, PathNode curNode, EntityId vendorId,
                                       bool isActiveNode)
 {
     if (curNode != null)
     {
         TaxiHandler.SendTaxiPathUpdate(client, vendorId, isActiveNode);
     }
     else
     {
         TaxiHandler.sLog.Warn("Vendor: {0} not associated with a TaxiNode", vendorId.Full);
     }
 }
Пример #3
0
        /// <summary>Client asks "Is this TaxiNode activated yet?"</summary>
        public static void HandleTaxiStatusQuery(IRealmClient client, RealmPacketIn packet)
        {
            EntityId  entityId        = packet.ReadEntityId();
            Character activeCharacter = client.ActiveCharacter;
            NPC       npc             = activeCharacter.Map.GetObject(entityId) as NPC;

            if (npc == null)
            {
                return;
            }
            bool isActiveNode = activeCharacter.GodMode || activeCharacter.TaxiNodes.IsActive(npc.VendorTaxiNode);

            TaxiHandler.SendTaxiNodeStatus((IPacketReceiver)client, npc.VendorTaxiNode, entityId, isActiveNode);
        }