Changeset 19 for minimanager/pomm_public/pomm_lib.php
- Timestamp:
- Aug 13, 2007, 9:05:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/pomm_public/pomm_lib.php
r5 r19 11 11 require_once("../scripts/config.php"); 12 12 require_once("../scripts/global_lib.php"); 13 require_once("../scripts/ mysql.php");13 require_once("../scripts/db_layer.php"); 14 14 require_once("../scripts/get_lib.php"); 15 15 … … 23 23 24 24 if ( !ini_get('session.auto_start') ) session_start(); 25 $realm_id = 1; //$_SESSION['realm_id']; 26 $user_lvl = 0; //$_SESSION['user_lvl']; 27 $user_id = 1; //$_SESSION['user_id']; 28 29 function get_player_position($x,$y,$map) { 30 global $zone_530; 31 25 $realm_id = 1; // $_SESSION['realm_id']; 26 $user_lvl = 0; // $_SESSION['user_lvl']; 27 $user_id = 1; // $_SESSION['user_id']; 28 29 function get_player_position($x,$y,$map,$zone) { 32 30 $xpos = round(($x / 1000)*17.7,0); 33 31 $ypos = round(($y / 1000)*17.7,0); … … 43 41 44 42 case 530: 45 $zone_id = 0; 46 for ($i=0; $i < count($zone_530); $i++) 47 if (($zone_530[$i][2] < $x) && ($zone_530[$i][3] > $x) && ($zone_530[$i][1] < $y) && ($zone_530[$i][0] > $y)){ 48 $zone_id = $zone_530[$i][5]; 49 break; 50 } 51 if (($zone_id == 3525) || ($zone_id == 3557) || ($zone_id == 3524)){ 43 if (($zone == 3525) || ($zone == 3557) || ($zone == 3524)){ 52 44 $pos['x'] = -162 - $ypos; 53 45 $pos['y'] = 75 - $xpos; 54 } else if (($zone _id == 3487) || ($zone_id == 3433) || ($zone_id== 3430)){46 } else if (($zone == 3487) || ($zone == 3433) || ($zone == 3430)){ 55 47 $pos['x'] = 528 - $ypos; 56 48 $pos['y'] = 218 - $xpos;
Note:
See TracChangeset
for help on using the changeset viewer.