Пример #1
0
 void WaypointReached(uint32 waypointId)
 {
     switch (portalLocationID)
     {
         case 0:
             if (waypointId == 5)
                CreatureStartAttackDoor();
             break;
         case 1:
             if ((waypointId == 8 && secondPortalRouteID == 0) || (waypointId == 7 && secondPortalRouteID == 1))
                 CreatureStartAttackDoor();
             break;
         case 2:
             if (waypointId == 7)
                CreatureStartAttackDoor();
             break;
         case 3:
             if (waypointId == 8)
                 CreatureStartAttackDoor();
             break;
         case 4:
             if (waypointId == 5)
                 CreatureStartAttackDoor();
             break;
         case 5:
             if (waypointId == 3)
                 CreatureStartAttackDoor();
             break;
     }
 }
Пример #2
0
 void WaypointReached(uint32 id)
 {
     if (PLoc<6)
         if (id == uint16(PLocWPCount[PLoc] -1 -(bAlt ? 1 : 0)))
             CreatureStartAttackDoor();
 }
Пример #3
0
 void JustReachedHome()
 {
     CreatureStartAttackDoor();
 }