Changeset 383 for beta/inc/player.php
- Timestamp:
- Sep 28, 2008, 11:22:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/player.php
r380 r383 248 248 {$this -> Msg ("Tato postava není vaše.",1);} 249 249 } 250 public function PlayerJail ($guid) 251 { 252 // .go xyz -90.54 41.35 -31.71 253 // .go xyz -91.01 100.46 -31.71 254 // .go xyz -119.16 71.82 -31.71 255 $defined_positions = array ( 256 "x1" => "-90.54", 257 "y1" => "41.35", 258 "z1" => "-31.71", 259 "o1" => "1.4623", 260 261 "x2" => "-91.01", 262 "y2" => "100.46", 263 "z2" => "-31.71", 264 "o3" => "4.6282", 265 266 "x3" => "-119.16", 267 "y3" => "71.82", 268 "z3" => "-31.71", 269 "o3" => "6.2116", 270 ); 271 $rand_place = rand (1,3); 272 if (!$this -> IsOnline($guid)) 273 { 274 $this -> db -> select_db("characters"); 275 $this -> db -> query("UPDATE `characters` SET 276 `map` = '35' , 277 `orientation` = '".$defined_positions["o".$rand_place]."' , 278 `position_x` ='".$defined_positions["x".$rand_place]."' , 279 `position_y` = '".$defined_positions["y".$rand_place]."' , 280 `position_z` = '".$defined_positions["z".$rand_place]."' 281 WHERE `guid` ='".$guid."' LIMIT 1;"); 282 $this -> db -> query("INSERT INTO `character_aura` (`guid`, `caster_guid`, `spell`, `effect_index`, `amount`, `maxduration`, `remaintime`, `remaincharges`) VALUES 283 (".$guid.", ".$guid.", 23775, 0, 1, -1, -1, -1), 284 (".$guid.", ".$guid.", 36558, 0, 1, -1, -1, -1);"); 285 286 $this -> Msg ("Postava ve vězení.",0); 287 288 } 289 else 290 {$this -> Msg ("Postava musí být offline.",1);} 291 292 293 } 250 294 // -- done 251 295 public function IsOnline ($guid)
Note:
See TracChangeset
for help on using the changeset viewer.