Register for your free account! | Forgot your password?

You last visited: Today at 02:22

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

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.

Closed Thread
 
Old   #1

 
iMer's Avatar
 
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"353156193125)
GUISetOnEvent($GUI_EVENT_CLOSE"_close")
$input GUICtrlCreateInput("item_proto_dump.xml"801612921)
$Button1 GUICtrlCreateButton("Durchsuchen..."2161683250)
GUICtrlSetOnEvent($Button1"_input")
$Label1 GUICtrlCreateLabel("Source:"32164117)
$Label2 GUICtrlCreateLabel("Output:"32563917)
$output GUICtrlCreateInput("item_proto.sql"805612921)
$Button2 GUICtrlCreateButton("Durchsuchen..."2165681250)
GUICtrlSetOnEvent($Button2"_output")
$Button3 GUICtrlCreateButton("Start"1049675250)
GUICtrlSetOnEvent($Button3"_con")
GUISetState(@SW_SHOW)
$Form2 GUICreate("item_proto .xml zu .sql converter by iMer"264156194128)
GUISetOnEvent($GUI_EVENT_CLOSE"_close")
$t1we GUICtrlCreateLabel("Zeilen:"16163617)
$insgzeilen GUICtrlCreateLabel("loading..."56166517)
$dsv GUICtrlCreateLabel("Aktuell:"16563917)
$aktuellzeilen GUICtrlCreateLabel("loading..."56567017)
$Progress1 GUICtrlCreateProgress(169623017)
$Cancel GUICtrlCreateButton("Cancel"18412875250)
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
    $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
iMer is offline  
Thanks
20 Users
Old 01/01/2010, 09:47   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 74
was bewiirkt das genau?
XxGiGoLoxX is offline  
Old 01/01/2010, 13:30   #3
 
мзтіи2's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
NOT WORK !.

мзтіи2 is offline  
Old 01/01/2010, 18:09   #4
 
KaMeR1337's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,444
Quote:
Originally Posted by мзтіи2 View Post
NOT WORK !.
for me it works
KaMeR1337 is offline  
Old 01/01/2010, 19:00   #5
 
elite*gold: 7
Join Date: Jun 2008
Posts: 1,750
Received Thanks: 415
Quote:
Originally Posted by XxGiGoLoxX View Post
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)
Tazaki is offline  
Thanks
1 User
Old 01/01/2010, 19:21   #6
 
greenst0rm's Avatar
 
elite*gold: 0
The Black Market: 305/0/0
Join Date: Dec 2009
Posts: 3,616
Received Thanks: 484
is das nicht pserver bereich ?? wenn nicht verbessert mich bitte
greenst0rm is offline  
Old 01/01/2010, 21:13   #7
 
мзтіи2's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
Quote:
Originally Posted by KaMeR1337 View Post
for me it works
oO how ?

мзтіи2 is offline  
Old 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.
dfish is offline  
Old 01/02/2010, 15:27   #9
 
Zonni's Avatar
 
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
--------------------------------------------------
Zonni is offline  
Old 01/02/2010, 15:39   #10

 
iMer's Avatar
 
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
setze mich jez drann und fixxe es
€dit: fixxed
iMer is offline  
Thanks
1 User
Old 01/02/2010, 18:31   #11
 
мзтіи2's Avatar
 
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
мзтіи2 is offline  
Old 01/03/2010, 14:00   #12
 
kevinkevin3700's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 204
Received Thanks: 8
was bewirkt das
kevinkevin3700 is offline  
Old 01/03/2010, 14:05   #13
 
elite*gold: 28
Join Date: Dec 2009
Posts: 4,580
Received Thanks: 1,449
Echt gut gemacht
[Ishtar] is offline  
Old 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?
FlashActiVe is offline  
Old 01/04/2010, 20:18   #15

 
iMer's Avatar
 
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
iMer is offline  
Closed Thread


Similar Threads 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 +1. The time now is 02:22.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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