Register for your free account! | Forgot your password?

You last visited: Today at 10:41

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

Advertisement



Help Build a Query

Discussion on Help Build a Query within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Exclamation Help Build a Query

How can i build a query to change "CanRepair" column, i can build that query for spcific ID, but how can i make it for spcific degree & type for example

type: HEAVY
degree: 01


another example

type: EARRING
degree: 09




thanks in advance.
devdash is offline  
Thanks
1 User
Old 04/29/2019, 01:20   #2
 
elite*gold: 0
Join Date: Oct 2011
Posts: 163
Received Thanks: 28
USE SRO_VT_SHARD
set CanRepair = 0 where in (select ID from _refobjcommon where Codename128 like '%09%EARRING%')

I used the db's long time ago, im not sure about the earrings' codename... but you can figoure it out easily how it works...
NS
NagySandor96 is offline  
Thanks
1 User
Old 04/29/2019, 11:11   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 187
Received Thanks: 70
Quote:
Originally Posted by NagySandor96 View Post
USE SRO_VT_SHARD
set CanRepair = 0 where in (select ID from _refobjcommon where Codename128 like '%09%EARRING%')

I used the db's long time ago, im not sure about the earrings' codename... but you can figoure it out easily how it works...
NS
That query is wrong on so many levels I can't even count it.

UPDATE _RefObjCommon SET CanRepair = 0 WHERE CodeName128 LIKE 'ITEM_%_%_HEAVY_05_%_A_RARE'

(This will do it for CH/EU, Male + Female, Heavy Armor / Armor, 5th degree, ALL types of clothes, SOS)

% = anything

Use the example above and just build for whatever you need. I strongly advise you to "select" first and then "update" to prevent affecting rows you don't want to. Have fun.

JohnDornel^ is offline  
Thanks
2 Users
Old 04/29/2019, 12:52   #4

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JohnDornel^ View Post
That query is wrong on so many levels I can't even count it.

UPDATE _RefObjCommon SET CanRepair = 0 WHERE CodeName128 LIKE 'ITEM_%_%_HEAVY_05_%_A_RARE'

(This will do it for CH/EU, Male + Female, Heavy Armor / Armor, 5th degree, ALL types of clothes, SOS)

% = anything

Use the example above and just build for whatever you need. I strongly advise you to "select" first and then "update" to prevent affecting rows you don't want to. Have fun.

thanks alot, i really appreciate it, i think what u just gave me, will help me alot in manyways.


#topic close please.
devdash is offline  
Thanks
1 User
Old 04/29/2019, 16:04   #5
 
elite*gold: 0
Join Date: Oct 2011
Posts: 163
Received Thanks: 28
sure, i was wrong...
NagySandor96 is offline  
Old 04/29/2019, 16:46   #6

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by NagySandor96 View Post
sure, i was wrong...
i didn't try urs actually, but i think it would work too, thanks for ur post.
devdash is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
[Release][Query] Query _InvCOS Items WITH _Char Connection
12/29/2015 - SRO PServer Guides & Releases - 1 Replies
Ok, so i needed to write this query for a procedure im working on and not many people know how to connect the pet inventory table to the character table.... so this query will explain how its done... im not going to explain every single detail, like how there is no charcos when pet is despawned / dead... but yea you can probably figure that all out from this query... The code... USE SELECT pet_invo. ,pet_invo. PetSlot
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
08/18/2010 - Metin2 Private Server - 1 Replies
Ich weiß ich werd nervig aber ich suche die Query's für Alteklinge, Reichsklinge &' Strichdolche Why? Naya, weil ich in der DB i-wie nur Drachenmaulglocke hab ... not more -.- Auf jeden Fall Icon's etc. etc. etc. hab ich ich brauche nur die Query's



All times are GMT +1. The time now is 10:41.


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.