All pastes #673115 Raw Edit

Something

public text v1 · immutable
#673115 ·published 2007-08-28 04:33 UTC
rendered paste body
//////////////////////////////////////////////////////////////////////////////////////////
// Xel Village NOPVP NPC
// Made by: Xelynn
// Added waypoints: Xelynn
//
//////////////////////////////////////////////////////////////////////////////////////////

global XEL_NO_PVP_SPAWN = function(mob, plr)
{
    .SetMovementType(11);
    .CreateCustomWaypointMap();
    .CreateWaypoint(16468.91, 16228.31, 69.92, 3.11, 0, 1, 0);
    .CreateWaypoint(16434.45, 16228.77, 70.07, 2.32, 0, 1, 0);
    .CreateWaypoint(16421.96, 16243.91, 70.21, 0.81, 0, 1, 0);
    .CreateWaypoint(16445.72, 16263.33, 70.11, 0.97, 0, 1, 0);
    .CreateWaypoint(16455.25, 16277.44, 69.91, 5.32, 0, 1, 0);
    .CreateWaypoint(16485.33, 16235.75, 69.91, 3.38, 0, 1, 0);
};

global XEL_NO_PVP_WAYPOINT = function(waypoint_id)
{
    if(waypoint_id == 4) {.SendChatMessage("NO PVP ALOUD IN THIS AREA!");}
    if(waypoint_id == 1) {.SendChatMessage("Violaters will be BANNED!");}
    if(waypoint_id == 2) {.SendChatMessage("NO PVP ALOUD IN THIS AREA!");}
    if(waypoint_id == 5) {.SendChatMessage("Violaters will be BANNED!");}
    if(waypoint_id == 6) {.Despawn(3000, 1000);}
      {
          return;
      }
};

.RegisterUnitEvent(103122, 6,XEL_NO_PVP_SPAWN );
.RegisterUnitEvent(103122, 8,XEL_NO_PVP_WAYPOINT);