You last visited: Today at 23:50
Advertisement
[TOOL]item_proto dumps zu .sql file
Discussion on [TOOL]item_proto dumps zu .sql file within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.
01/01/2010, 09:08
#1
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
[TOOL]item_proto dumps zu .sql file
Hab mal n Tool gescriptet das die item_proto dumps von tims archiver in .sql dateien umwandelt
Source:
PHP Code:
#include <String.au3>
#include <File.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
Opt ( "GUIOnEventMode" , 1 )
Global $ScriptDir = @ ScriptDir
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate ( "item_proto .xml zu .sql converter by iMer" , 353 , 156 , 193 , 125 )
GUISetOnEvent ( $GUI_EVENT_CLOSE , "_close" )
$input = GUICtrlCreateInput ( "item_proto_dump.xml" , 80 , 16 , 129 , 21 )
$Button1 = GUICtrlCreateButton ( "Durchsuchen..." , 216 , 16 , 83 , 25 , 0 )
GUICtrlSetOnEvent ( $Button1 , "_input" )
$Label1 = GUICtrlCreateLabel ( "Source:" , 32 , 16 , 41 , 17 )
$Label2 = GUICtrlCreateLabel ( "Output:" , 32 , 56 , 39 , 17 )
$output = GUICtrlCreateInput ( "item_proto.sql" , 80 , 56 , 129 , 21 )
$Button2 = GUICtrlCreateButton ( "Durchsuchen..." , 216 , 56 , 81 , 25 , 0 )
GUICtrlSetOnEvent ( $Button2 , "_output" )
$Button3 = GUICtrlCreateButton ( "Start" , 104 , 96 , 75 , 25 , 0 )
GUICtrlSetOnEvent ( $Button3 , "_con" )
GUISetState (@ SW_SHOW )
$Form2 = GUICreate ( "item_proto .xml zu .sql converter by iMer" , 264 , 156 , 194 , 128 )
GUISetOnEvent ( $GUI_EVENT_CLOSE , "_close" )
$t1we = GUICtrlCreateLabel ( "Zeilen:" , 16 , 16 , 36 , 17 )
$insgzeilen = GUICtrlCreateLabel ( "loading..." , 56 , 16 , 65 , 17 )
$dsv = GUICtrlCreateLabel ( "Aktuell:" , 16 , 56 , 39 , 17 )
$aktuellzeilen = GUICtrlCreateLabel ( "loading..." , 56 , 56 , 70 , 17 )
$Progress1 = GUICtrlCreateProgress ( 16 , 96 , 230 , 17 )
$Cancel = GUICtrlCreateButton ( "Cancel" , 184 , 128 , 75 , 25 , 0 )
GUICtrlSetOnEvent ( $Cancel , "_close" )
GUISetState (@ SW_HIDE )
#EndRegion ### END Koda GUI section ###
; $string = _StringBetween ( $sString , $start , $ende )
while 1
sleep ( 100 )
WEnd
Func _con ()
$lin = 0
GUISetState (@ SW_HIDE , $Form1 )
GUISetState (@ SW_SHOW , $Form2 )
$outfile = GUICtrlRead ( $output )
$file = GUICtrlRead ( $input )
if $file = "" Then
MsgBox ( 48 , "Fehler" , "Keine .xml Datei angegeben!" )
_input ()
EndIf
if $outfile = "" Then
if FileExists ( $ScriptDir & "item_proto.sql" ) then
_output ()
Else
$outfile = "item_proto.sql"
EndIf
EndIf
$lines = _FileCountLines ( $file ) - 1
$ges = _FileCountLines ( $file ) - 2
$start = '"'
$ende = '"'
While $lines - 1 >= 1
$lin = $lin + 1
$sString = FileReadLine ( $file , $lines )
$string = _StringBetween ( $sString , $start , $ende )
FileWrite ( $outfile , "INSERT INTO `item_proto` (`vnum`,`name`,`gb2312name`,`type`,`subtype`,`weight`,`size`,`antiflag`,`flag`,`wearflag`,`immuneflag`,`gold`,`shop_buy_price`,`limittype0`,`limitvalue0`,`limittype1`,`limitvalue1`,`applytype0`,`applyvalue0`,`applytype1`,`applyvalue1`,`applytype2`,`applyvalue2`,`value0`,`value1`,`value2`,`value3`,`value4`,`value5`,`socket0`,`socket1`,`socket2`,`socket3`,`socket4`,`socket5`,`refined_vnum`,`refine_set`,`magic_pct`,`specular`,`socket_pct`) VALUES (" )
FileWrite ( $outfile , "'" & $string [ 0 ]& "'," )
FileWrite ( $outfile , $string [ 1 ]& "," )
For $a = 2 to 38 Step 1
FileWrite ( $outfile , "'" & $string [ $a ]& "'," )
Next
FileWrite ( $outfile , "'" & $string [ 39 ]& "'" )
FileWrite ( $outfile , ");" &@ CRLF )
Local $perc = Round ( $lin / $ges * 100 )
GUICtrlSetData ( $Progress1 , $perc )
GUICtrlSetData ( $insgzeilen , $ges )
GUICtrlSetData ( $aktuellzeilen , $lin )
$lines = $lines - 1
WEnd
MsgBox ( 64 , "Fertig!" , "xml erfolgreich in sql umgewandelt!" )
_ende ()
EndFunc
Func _input ()
$in = FileOpenDialog ( 'Dateiauswahl' , "" , 'xml-Datein(*.xml)' )
GUICtrlSetData ( $input , $in )
EndFunc
Func _output ()
$out = FileOpenDialog ( 'Dateiauswahl' , "" , 'sql-Datein(*.sql)' )
GUICtrlSetData ( $output , $out )
EndFunc
Func _ende ()
Exit
EndFunc
Func _close ()
Exit
EndFunc
Ist in Autoit geschrieben
bin grad zu müde ne .exe hochzuladen
Scheint zu gehen habs nich genau getestet weil zu müde
gn8 und hf damit
01/01/2010, 09:47
#2
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 74
was bewiirkt das genau?
01/01/2010, 13:30
#3
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
NOT WORK !.
01/01/2010, 18:09
#4
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,444
Quote:
Originally Posted by
мзтіи2
NOT WORK !.
for me it works
01/01/2010, 19:00
#5
elite*gold: 7
Join Date: Jun 2008
Posts: 1,750
Received Thanks: 415
Quote:
Originally Posted by
XxGiGoLoxX
was bewiirkt das genau?
Frage ich mich auch...
...genauso, ob das in diesen Bereich gehört (aber ich weiß nicht ob ich mich irre, da ich den Sinn nicht ganz verstehe X.x)
01/01/2010, 19:21
#6
elite*gold: 0
Join Date: Dec 2009
Posts: 3,616
Received Thanks: 484
is das nicht pserver bereich ?? wenn nicht verbessert mich bitte
01/01/2010, 21:13
#7
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
Quote:
Originally Posted by
KaMeR1337
for me it works
oO how ?
01/02/2010, 13:13
#8
elite*gold: 0
Join Date: Feb 2009
Posts: 88
Received Thanks: 21
auf jeden fall pserver bereich, vor allem sind da einige spaltennamen dabei die mir gar nichts sagen.
01/02/2010, 15:27
#9
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
This Conwerter no dump to sql item_proto :/ '
Code:
[Err] 1136 - Column count doesn't match value count at row 1
[Err]
[Msg] Finished - Unsuccessfully
--------------------------------------------------
01/02/2010, 15:39
#10
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
setze mich jez drann und fixxe es
€dit: fixxed
01/02/2010, 18:31
#11
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
Not Work Please Fix.. Have Too Error
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ÇÕÆÇ,'Plywood','14','0','0','1','0','4','0','0',' 0','0','0','0','0','0','0','0',' at line 4
[Msg] Finished - Unsuccessfully
01/03/2010, 14:00
#12
elite*gold: 0
Join Date: Mar 2009
Posts: 204
Received Thanks: 8
was bewirkt das
01/03/2010, 14:05
#13
elite*gold: 28
Join Date: Dec 2009
Posts: 4,580
Received Thanks: 1,449
Echt gut gemacht
01/03/2010, 20:12
#14
elite*gold: 0
Join Date: Oct 2007
Posts: 80
Received Thanks: 9
Paar fragen was das tool bewirkt aber keine antwort... top upper...
ist es für denn Offizielen server oder nur für denn Privaten?
01/04/2010, 20:18
#15
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
Du kannst die Item_proto datei ausm extractor von tim (düt:
)
theorethisch zu .sql dateien machen
bei nem testfile klappts
bei anderen nich
ka worans noch liegen kann
wer den fehler weiß ~> pn
Similar Threads
How to modify the file item_proto? HELP! plz
05/10/2010 - Metin2 Private Server - 2 Replies
How to modify the file item_proto?
.../locale/hongkong/item_proto
Someone explains how to change the damage and that the weapons in the locale I know item_proto and file but can not open any FASST plz help me!
Plz commente in english ita our pt our german xDDDDDDD
item_proto (cannot build file)
05/01/2010 - Metin2 Private Server - 2 Replies
hey community, i have a problem with making the item_proto file from the item_proto_dump.xml..
how can i pack the file?
(i read the guide, but do not understand fully as google translate is bad ._.')
thanks
in schlechtem Deutsch xD
[TOOL]CM RF_Online.Bin File
08/27/2008 - RFO Hacks, Bots, Cheats, Exploits & Guides - 26 Replies
Heres the link for those have problem on finding the CM ver of RF_Online.bin
Dont forget to click the THANKS Button..
MEGAUPLOAD - The leading online storage and file delivery service
All times are GMT +2. The time now is 23:52 .