Beispiel #1
0
$text = '';
$ajaxptr = '';
$map = @$_REQUEST['map'] == '' ? -1 : intval(@$_REQUEST['map']);
$area = intval(@$_REQUEST['area']);
$width = intval(@$_REQUEST['width']) ? intval(@$_REQUEST['width']) : 900;
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']) {