Changeset 493 for trunk/gh_system/export_system
- Timestamp:
- Mar 14, 2009, 9:01:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gh_system/export_system/index.php
r492 r493 30 30 echo"<form method=post action=index.php?q=1&i=gameobject><input type=submit value='Přidat object do seznamu exportovaných'></form>"; 31 31 echo"<form method=post action=index.php?q=1&i=creature><input type=submit value='Přidat NPC do seznamu exportovaných'></form>"; 32 echo"<form method=post action=index.php?q=1&i=creature_movement><input type=submit value='Přidat Waypoint do seznamu exportovaných'></form>"; 32 33 echo"<br><br>"; 33 34 echo"<form method=post action=index.php?q=3&i=gameobject><input type=submit value='Zobrazit seznam objectů'></form>"; 34 35 echo"<form method=post action=index.php?q=3&i=creature><input type=submit value='Zobrazit seznam NPC'></form>"; 36 echo"<form method=post action=index.php?q=3&i=creature_movement><input type=submit value='Zobrazit seznam Waypointu'></form>"; 35 37 echo"<br><br>"; 36 38 echo"<form method=post action=index.php?q=2&i=gameobject><input type=submit value='Vytvořit export objectů'></form>"; 37 39 echo"<form method=post action=index.php?q=2&i=creature><input type=submit value='Vytvořit export NPC'></form>"; 40 echo"<form method=post action=index.php?q=2&i=creature_movement><input type=submit value='Vytvořit export Waypointu'></form>"; 38 41 39 42 } elseif($q==1){ … … 41 44 $typ = $_GET['i']; 42 45 $instal = $_POST['instal']; 46 43 47 44 48 if(empty($instal)): … … 79 83 $datum = date("Y-m-d"); 80 84 ////////////////Vytvoření souboru: 85 if($typ=="creature_movement"): 86 $soubor = fopen("waypoint.sql", "w"); 87 else: 81 88 $soubor = fopen("$typ.sql", "w"); 82 89 endif; 83 90 84 91 $hotovo = 0; … … 103 110 $prikaz = "INSERT INTO gamobject values('', '".$a['id']."', '".$a['map']."', '".$a['spawnMask']."', '".$a['position_x']."', '".$a['position_y']."', '".$a['position_z']."', '".$a['orientation']."', '".$a['rotation0']."', '".$a['rotation1']."', '".$a['rotation2']."', '".$a['rotation3']."', '".$a['spawntimesecs']."', '".$a['animprogress']."', '".$a['state']."');"; 104 111 $prikaz .= "\n"; 112 105 113 elseif($typ=="creature"): 106 107 $prikaz = "INSERT INTO creature values('', '".$a['id']."', '".$a['map']."', '".$a['spawnMask']."', '".$a['modelid']."', , '".$a['equipment_id']."', '".$a['position_x']."', '".$a['position_y']."', '".$a['position_z']."', '".$a['orientation']."', '".$a['spawntimesecs']."', '".$a['spawndist']."', '".$a['currentwaypoint']."', '".$a['curhealth']."', '".$a['curmana']."', '".$a['DeathState']."', '".$a['MovementType']."');"; 114 $prikaz = "INSERT INTO creature values('', '".$a['id']."', '".$a['map']."', '".$a['spawnMask']."', '".$a['modelid']."', , '".$a['equipment_id']."', '".$a['position_x']."', '".$a['position_y']."', '".$a['position_z']."', '".$a['orientation']."', '".$a['spawntimesecs']."', '".$a['spawndist']."', '".$a['currentwaypoint']."', '".$a['curhealth']."', '".$a['curmana']."', '".$a['DeathState']."', '".$a['MovementType']."');"; 115 $prikaz .= "\n"; 116 117 elseif($typ=="creature_movement"): 118 $prikaz = "INSERT INTO creature_movement values('".$a['id']."', '".$a['point']."', '".$a['position_x']."', '".$a['position_y']."', '".$a['position_z']."', '".$a['waittime']."', '".$a['text1']."', '".$a['text2']."', '".$a['text3']."', '".$a['text4']."', '".$a['text5']."', '".$a['emote']."', '".$a['spell']."', '".$a['wpguid']."', '".$a['orientation']."', '".$a['model1']."', '".$a['model2']."');"; 108 119 $prikaz .= "\n"; 109 120 endif;
Note:
See TracChangeset
for help on using the changeset viewer.