Register for your free account! | Forgot your password?
Rust Cheats
Rust Cheats

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 17:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] SQL to XML Converter (Hen! CMS)

Discussion on [Release] SQL to XML Converter (Hen! CMS) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
DexterSK's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 160
Received Thanks: 161
Cool [Release] SQL to XML Converter (Hen! CMS)

Hi epvp

Item Proto Converter [SQL to XML]

Code:
PHP Code:
<h2>ItemProto.sql to ItemProto.xml Converter By DexterSK</h2>
<?php
if($_SESSION['uzivatelske_prava']>=$adminRights['prehlad_postavy'])
{
  if(isset(
$_POST['odoslat']))
  {
    
$query mysql_query("SELECT * FROM player.item_proto ORDER BY vnum ASC") or die(mysql_error());
    
$apo "'";

    
$fh fopen('dump/'.$_POST['meno_i'].'''w');
    
$zapis1 fwrite($fh'<item_proto extended="true" version="1">'."\r\n");
    while(
$fetch mysql_fetch_assoc($query))
    {
    
$zapis2 fwrite($fh'  <Item vnum="'.$fetch['vnum'].'" name="'.$apo.''.$fetch['name'].''.$apo.'" gb2312name="'.$fetch['locale_name'].'" type="'.$fetch['type'].'" subtype="'.$fetch['subtype'].'" weight="'.$fetch['weight'].'" size="'.$fetch['size'].'" antiflag="'.$fetch['antiflag'].'" flag="'.$fetch['flag'].'" wearflag="'.$fetch['wearflag'].'" immuneflag="'.$fetch['immuneflag'].'" gold="'.$fetch['gold'].'" buy_price="'.$fetch['shop_buy_price'].'" limittype0="'.$fetch['limittype0'].'" limitvalue0="'.$fetch['limitvalue0'].'" limittype1="'.$fetch['limittype1'].'" limitvalue1="'.$fetch['limitvalue1'].'" applytype0="'.$fetch['applytype0'].'" applyvalue0="'.$fetch['applyvalue0'].'" applytype1="'.$fetch['applytype1'].'" applyvalue1="'.$fetch['applytype1'].'" applytype2="'.$fetch['applytype2'].'" applyvalue2="'.$fetch['applyvalue2'].'" value0="'.$fetch['value0'].'" value1="'.$fetch['value1'].'" value2="'.$fetch['value2'].'" value3="'.$fetch['value3'].'" value4="'.$fetch['value4'].'" value5="'.$fetch['value5'].'" socket0="'.$fetch['socket0'].'" socket1="'.$fetch['socket1'].'" socket2="'.$fetch['socket2'].'" socket3="'.$fetch['socket3'].'" socket4="'.$fetch['socket4'].'" socket5="'.$fetch['socket5'].'" refine_vnum="'.$fetch['refined_vnum'].'" refine_set="'.$fetch['refine_set'].'" magic_pct="'.$fetch['magic_pct'].'" specular="'.$fetch['specular'].'" socket_pct="'.$fetch['socket_pct'].'" />'."\r\n");
    }
    
$zapis3 fwrite($fh'</item_proto>');
    
fclose($fh);

    if(
$zapis1 AND $zapis2 AND $zapis3)
    {
      echo
'<p>Sucess.</p>';
    }
    else
    {
      echo
'<p>Error.</p>';
    }
  }
}
else
{
  echo
'<p>You dont have permision for this area!</p>';
}
?>
<form action="" method="post">
<table>
<tr>
<td>
Name of XML:
</td>
<td>
<input type="text" name="meno_i" size="40" value="item_proto_dump.xml" />
</td>
</tr>
<td width="90">
&nbsp;
</td>
<td width="150">
<input type="submit" name="odoslat" value="Convert" />
</TABLE>
</form>
Mob Proto Converter [SQL to XML]

Code:
PHP Code:
<h2>ItemProto.sql to ItemProto.xml Converter By DexterSK</h2>
<?php
if($_SESSION['uzivatelske_prava']>=$adminRights['prehlad_postavy'])
{
  if(isset(
$_POST['odoslat']))
  {
    
$query mysql_query("SELECT * FROM player.mob_proto ORDER BY vnum ASC") or die(mysql_error());

    
$fh fopen('dump/'.$_POST['meno_m'].'''w');
    
$zapis1 fwrite($fh'<mob_proto isOldStructure="false">'."\r\n");
    while(
$fetch mysql_fetch_assoc($query))
    {
    
$zapis2 fwrite($fh'  <Mob vnum="'.$fetch['vnum'].'" name="'.$fetch['locale_name'].'" gb2312name="'.$fetch['locale_name'].'" type="'.$fetch['type'].'" rank="'.$fetch['rank'].'" battle_type="'.$fetch['battle_type'].'" level="'.$fetch['level'].'" event_type="0" mob_color="'.$fetch['mob_color'].'" />'."\r\n");
    }
    
$zapis3 fwrite($fh'</mob_proto>');
    
fclose($fh);

    if(
$zapis1 AND $zapis2 AND $zapis3)
    {
      echo
'<p>Sucess.</p>';
    }
    else
    {
      echo
'<p>Error.</p>';
    }
  }
}
else
{
  echo
'<p>You dont have permision for this area!</p>';
}
?>
<form action="" method="post">
<table>
<tr>
<td>
Meno XML:
</td>
<td>
<input type="text" name="meno_m" size="40" value="mob_proto_dump.xml" />
</td>
</tr>
<td width="90">
&nbsp;
</td>
<td width="150">
<input type="submit" name="odoslat" value="Convert" />
</TABLE>
</form>
- This release dont work for me ..

DexterSK is offline  
Thanks
4 Users
Old 08/28/2013, 15:38   #2
 
elite*gold: 0
Join Date: Jul 2010
Posts: 83
Received Thanks: 89
Zapomel si tam dodat to, ze na ftp musi mit slozku dump s pravy 777 a taky bych pozmenil nazvy sessions

EN :
Forgot your there to deliver it from the ftp folder must have a dump with the right 777 and I'd modified the called Sessions: D
with google translate sorry
Adasaurus is offline  
Old 08/28/2013, 17:18   #3
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
SLAPI SKRYPT SI LAMAG

en:
Very nice work
[The]Domco is offline  
Thanks
1 User
Old 08/28/2013, 20:35   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 17
Received Thanks: 0
Usefull script, thanks!!
Burbank is offline  
Old 08/31/2013, 01:00   #5
 
elite*gold: 0
Join Date: Dec 2011
Posts: 7
Received Thanks: 1
Thank you so much DexterSK.
KubaBrtek is offline  
Old 08/31/2013, 01:33   #6
 
elite*gold: 0
Join Date: Aug 2011
Posts: 10
Received Thanks: 1
sorry, but, how to use?
juliangx is offline  
Reply


Similar Threads Similar Threads
[Release] DBC Converter Ini - DBC / DBC - INI
10/01/2023 - CO2 Weapon, Armor, Effects & Interface edits - 13 Replies
DBC Converter & WDB Extractor Small utility i put together to convert DBC files to ini files and vice versa. only usefull to private server developers, but here it is. i would also like to give credits to CptSky for his CO2_Core.dll very nice work mate. The DBC classes are from his CO2_Core. (Credit given where credit due). Instructions Drag the dbc/ini files onto the exe to have them converted.
[Release] Map Converter
07/29/2013 - Cube World - 13 Replies
CW Map Converter http://i.epvpimg.com/rprMf.png - Erstellt ein Backup der SP und MP map beim converten - Ermöglicht das spielen der MP map im SP* - Ermöglicht das spielen der SP map im MP - kein großer aufwand, funktioniert schnell *nur wenn man die map von SP in MP conventiert hat, und dann unter den selben namen zu SP conventiert.
[Release].php SQL zu XML Converter
06/14/2012 - Metin2 PServer Guides & Strategies - 8 Replies
Hey ho, ich hab mir mal die Mühe gemacht *hust* und habe einen .php Script erstellt, mit welchem man Items & Monster ( item_proto & mob_proto ) aus der Datenbank in das XML Format umwandelt. Wozu man das braucht? Wenn ihr "locale_name" habt:
[Release]DDS-Converter
01/20/2011 - Metin2 PServer Guides & Strategies - 22 Replies
Hey ich habe heute mal mein Desktop aufgeräumt :P und da fand ich plötzlich eine komische Datei. Aufeinmal stellte sich raus das es ein DDS-Converter war. Er wandelt DDS Dateien in jpg und png dateien um. Da das für manche Client´s nützlich ist dachte ich ich stell es mal hier rein. Virustotal Screen http://img3.fotos-hochladen.net/uploads/virrustot al0t16k9zq.png Screen vom Programm http://img3.fotos-hochladen.net/uploads/programmn gw8demb.png MfG Fun-Zocker
[RELEASE] DDS converter
08/18/2009 - EO PServer Guides & Releases - 9 Replies
Well, because this is a tool, i post it here and not on another section :bandit: People were complaining they cant open or edit a dds file.. This tool, can convert the dds file to jpg,png,bmp,tga and it can convert "to" dds :handsdown:



All times are GMT +1. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.