Exemplo n.º 1
0
if ($area) {
    $a = getRenderAreaData($area);
    $map = $a[0];
}
//*****************************************************************************
// Create points list
//*****************************************************************************
$pointsList = new mapPoints();
if ($npc_id = intval(@$_REQUEST['npc'])) {
    $ajaxptr .= "&npc={$npc_id}";
    $pointsList->addNpc($npc_id, $map);
    $text = '<center>' . getCreatureName($npc_id) . '</center>';
}
if ($obj_id = intval(@$_REQUEST['obj'])) {
    $ajaxptr .= "&obj={$obj_id}";
    $pointsList->addGo($obj_id, $map);
    $text = '<center>' . getGameobjectName($obj_id) . '</center>';
}
if ($point = @$_REQUEST['point']) {
    $ajaxptr .= '&point=' . $point;
    $p = split(':', $point);
    $pointsList->addPoint(@$p[0], @$p[1], @$p[2], @$p[3]);
    $text = '<br>';
    //'<center>Point: map='.@$p[0].' x='.@$p[1].' y='.@$p[2].' z='.@$p[3].'</center>';
}
if ($waypoint = @$_REQUEST['waypoint']) {
    $ajaxptr .= '&waypoint=' . $waypoint;
    $pointsList->addWaypoint($waypoint, $dDB->selectCell('SELECT `map` FROM `creature` WHERE `guid` = ?d', $waypoint));
}
if ($width) {
    $ajaxptr .= "&width={$width}";