Register for your free account! | Forgot your password?

You last visited: Today at 01:34

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

Advertisement



Request| Lines

Discussion on Request| Lines within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
Wink Request| Lines

i almost finish with jsro server files they state on 98% working
i just need to extract from characterdata.txt of jsro
the part of refobjchar.
if someone know a good way to do it , i be glad to hear.
CrystalCoder is offline  
Old 05/31/2012, 10:38   #2
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
Either bulk insert + drop column or bulk insert + insert into select *

Since the chardata contains pretty many columns I recommend you to use dynamic sql to create your table for to bulk insert
IceAmStiel is offline  
Old 05/31/2012, 10:46   #3
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
allright but also the link from refobjcommon need to be at id in refobjchar
soo can you give ex what you mean?
CrystalCoder is offline  
Old 05/31/2012, 10:49   #4
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
PHP Code:
Declare @ColumnAmount tinyint 64

Declare
        @
CurColumn tinyint 1
        @
CreateTable varchar(max) = 'CREATE TABLE _ChardataBulk ( ';

WHILE (@
CurColumn <= @ColumnAmount)
    
BEGIN
        SET 
@CreateTable += ' Column'+CONVERT(varchar(2),@CurColumn)+' varchar(max) NULL, '
        
SET @CurColumn += 1
    END

SET 
@CreateTable LEFT(@CreateTable,LEN(@CreateTable)-1) + ')'     
EXEC (@CreateTable)

SELECT FROM _ChardataBulk

DROP TABLE _ChardataBulk 
--> Table with 64 Columns


EDIT:

Actually you could also recreate _RefObjCommon+_RefObjChar w/o the columns which the chardata doesn't contain..

Right Click on the Table -> Script Table as -> Create To -> New Query Editor Window
(for _RefObjCommon as well as _RefObjItem, naturally to one table with a different name, to have the right column datatypes)

(SQL '08)
IceAmStiel is offline  
Old 05/31/2012, 11:19   #5
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
read pm.
CrystalCoder is offline  
Old 06/01/2012, 11:58   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 986
Received Thanks: 193
Use microsoft excel, it can do everything you want, it also can create numbers that increase by 1 every line for the id's
Janick_ is offline  
Reply


Similar Threads Similar Threads
Lines through screen. [Help]
01/06/2012 - EO PServer Hosting - 2 Replies
I have these random lines going through my screen, it looks like the interface but how would I fix this? It happens on 2 different clients that have nothing to do with each other, And I use to use one of these clients for my old server. http://img804.imageshack.us/img804/479/7527551.jp g
Game Lines
11/14/2010 - Say Hello - 2 Replies
ICH GRÜßE EUCH!
Add more lines to Npc
06/29/2010 - EO PServer Hosting - 4 Replies
hello everyone i was wonddering how to add more maps to teleporters so people can go to them i would thank u so much if u could help me
stupid lines
11/14/2006 - Conquer Online 2 - 1 Replies
if some 1 has a fix for this please save me there driving me crazey thort new interface would fix but still there i got them after 1st ever reinstalling CO with my Gforce 7800 GS and thay been there ever sins.



All times are GMT +2. The time now is 01:34.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.