Ignore:
Timestamp:
Mar 14, 2009, 9:01:31 PM (16 years ago)
Author:
amun
Message:

Přidána možnost exportu Waypointu NPC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gh_system/export_system/index.php

    r492 r493  
    3030echo"<form method=post action=index.php?q=1&i=gameobject><input type=submit value='Přidat object do seznamu exportovaných'></form>";
    3131echo"<form method=post action=index.php?q=1&i=creature><input type=submit value='Přidat NPC do seznamu exportovaných'></form>";
     32echo"<form method=post action=index.php?q=1&i=creature_movement><input type=submit value='Přidat Waypoint do seznamu exportovaných'></form>";
    3233echo"<br><br>";
    3334echo"<form method=post action=index.php?q=3&i=gameobject><input type=submit value='Zobrazit seznam objectů'></form>";
    3435echo"<form method=post action=index.php?q=3&i=creature><input type=submit value='Zobrazit seznam NPC'></form>";
     36echo"<form method=post action=index.php?q=3&i=creature_movement><input type=submit value='Zobrazit seznam Waypointu'></form>";
    3537echo"<br><br>";
    3638echo"<form method=post action=index.php?q=2&i=gameobject><input type=submit value='Vytvořit export objectů'></form>";
    3739echo"<form method=post action=index.php?q=2&i=creature><input type=submit value='Vytvořit export NPC'></form>";
     40echo"<form method=post action=index.php?q=2&i=creature_movement><input type=submit value='Vytvořit export Waypointu'></form>";
    3841
    3942} elseif($q==1){
     
    4144$typ = $_GET['i'];
    4245$instal = $_POST['instal'];
     46
    4347
    4448if(empty($instal)):
     
    7983$datum = date("Y-m-d");
    8084////////////////Vytvoření souboru:
     85if($typ=="creature_movement"):
     86$soubor = fopen("waypoint.sql", "w");
     87else:
    8188$soubor = fopen("$typ.sql", "w");
    82 
     89endif;
    8390
    8491$hotovo = 0;
     
    103110         $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']."');";
    104111         $prikaz .= "\n";
     112         
    105113         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']."');";
    108119         $prikaz .= "\n";
    109120         endif;
Note: See TracChangeset for help on using the changeset viewer.