Register for your free account! | Forgot your password?

You last visited: Today at 12:39

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

Advertisement



Some Useful query

Discussion on Some Useful query within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
Dr.Abdelfattah's Avatar
 
elite*gold: 7
Join Date: May 2010
Posts: 2,115
Received Thanks: 2,373
Smile Some Useful query

Hello,

Let's Start
Some useful queries which could help u in edit the tables or databases data more fast and easier ,

PHP Code:
UPDATE dbo._RefObjChar SET DefaultSkill_1=33266 WHERE CodeName128 LIKE '%P2SKILL_INNATE_ASS%' 
this will update=edit at _RefObjChar table, the DefaultSkill_1 column to value 33266 WHERE=which CodeName123 this column LIKE=much the '%P2SKILL_INNATE_ASS%'=the column data which u need to edit DefaultSkill_1 at it's row
well %=accept any more work before P@SKILL and the one at last %=accept any more work after _ASS
So this query can edit many rows at column DefaultSkill_1 with the value 33266 which got rows name only %P2SKILL_INNATE_ASS% at column CodeName123


PHP Code:
UPDATE dbo._RefObjChar
SET DefaultSkill_1 
1
WHERE ID BETWEEN 18718 
AND 18780 
well UPDATE=edit , SET=change with the current value , DefaultSkill_1 the column name = 1 , 1 is the value , WHERE ID BETWEEN , ID=a column name , 18718 AND 18780=the rows at ID column From 18718 tell ~ 18780



PHP Code:
select from _RefSkill where Basic_Group like '%SKILL_OP_HARMONY_A%' 
Oky select=showing , _RefSkill the table name , where=at Basic_Group is a column , like=equal , '%SKILL_OP_HARMONY_A%' this the value rows which the query will look and will view , anyway the result can't view over 100 result(row)
if u need a right value if u post the complete data(name) so remove % , so it will be like 'SKILL_OP_HARMONY_A'

PHP Code:
UPDATE _Char
SET CurLevel 
'110',
MaxLevel '110'
WHERE CurLevel 139 
UPDATE=edit
SET=change
CurLevel is a column , '110' 110 is the value which the data going to change to
MaxLevel is a column , '110' 110 is the value which the data going to change to Too
WHERE=at CurLevel > 139 , CurLevel is the column which contain the value which equal 139 and if it's equal 139 so any row got Curlevel column = 139 will apply the changes at CurLevel Column and MaxLevel Column to let the data value to 110 .

Don't forget to check that u choose the right database
At Last use ur mine to change on those queries to change on them or to make them with new functions and to help u in what u need to edit .
Dr.Abdelfattah is offline  
Thanks
6 Users
Old 12/29/2011, 03:26   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 259
Received Thanks: 66
Thnx Dr.AbdelFattah
Yb2a kalmny 3shan 3ayzk.
Iillminetor is offline  
Thanks
1 User
Old 12/29/2011, 03:51   #3
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,308
Received Thanks: 6,469
Quote:
Originally Posted by Dr.Abdelfattah View Post

PHP Code:
UPDATE _Char
SET CurLevel 
'110',
   
MaxLevel '110'
WHERE CurLevel 139 
i could say that the MaxLevel could be just set 110 to all(in the case you want to set 110 as max lvl
PHP Code:
UPDATE _Char
SET CurLevel 
'110',
   
MaxLevel '110'
WHERE CurLevel 110 
Quote:
Originally Posted by Dr.Abdelfattah View Post
PHP Code:
select from _RefSkill where Basic_Group like '%SKILL_OP_HARMONY_A%' 
that one can be very useful
but i dont think someone will need harmony skills
i could say that they put the name of the mastery on it

PHP Code:
select from _RefSkill 
where Basic_Group like 
'%fire%' and Basic_Group like '%_CH_%'
OR Basic_Group like '%_EU_%' 
that will show you all skills for euro and chinese with fire as class
possible classes are
Code:
sword= blade/sword
spear=Glaive/Spear
Bow= Duh

cold=ice
fire= Fire(Eu/CH)
lightning
water=Force

Cleric
Bard
Warlock
Wizard
Rog= Rogue skills
Warrior=Warrio SkillsSkills
PortalDark is offline  
Thanks
2 Users
Old 12/29/2011, 04:26   #4
 
Keyeight's Avatar
 
elite*gold: 844
Join Date: Oct 2010
Posts: 839
Received Thanks: 192
Will good work guys
Keyeight is offline  
Thanks
1 User
Old 12/29/2011, 08:35   #5
 
elite*gold: 0
Join Date: Dec 2011
Posts: 356
Received Thanks: 69
good work dude .. deserve my thanks
!x_~! is offline  
Thanks
2 Users
Old 12/30/2011, 16:29   #6
 
Dr.Abdelfattah's Avatar
 
elite*gold: 7
Join Date: May 2010
Posts: 2,115
Received Thanks: 2,373
Quote:
Originally Posted by Iillminetor View Post
Thnx Dr.AbdelFattah
Yb2a kalmny 3shan 3ayzk.
y.w , 7ft7 now

Quote:
Originally Posted by PortalDark View Post
i could say that the MaxLevel could be just set 110 to all(in the case you want to set 110 as max lvl
PHP Code:
UPDATE _Char
SET CurLevel 
'110',
   
MaxLevel '110'
WHERE CurLevel 110 
that one can be very useful
but i dont think someone will need harmony skills
i could say that they put the name of the mastery on it

PHP Code:
select from _RefSkill 
where Basic_Group like 
'%fire%' and Basic_Group like '%_CH_%'
OR Basic_Group like '%_EU_%' 
that will show you all skills for euro and chinese with fire as class
possible classes are
Code:
sword= blade/sword
spear=Glaive/Spear
Bow= Duh

cold=ice
fire= Fire(Eu/CH)
lightning
water=Force

Cleric
Bard
Warlock
Wizard
Rog= Rogue skills
Warrior=Warrio SkillsSkills
almost i was post those queries with any example , just to let the people think to make a new query that will help him

Quote:
Originally Posted by mats0o0o0 View Post
Will good work guys
ty

Quote:
Originally Posted by !x_~! View Post
good work dude .. deserve my thanks
ty , and welcome
Dr.Abdelfattah is offline  
Closed Thread


Similar Threads Similar Threads
[Help] query in sql
06/06/2011 - Shaiya Private Server - 6 Replies
there is some easy query's already in this forum. but i hope some will share there other too. or i have one i realy want and can't make for mye self. when you get a username that has payed for points (AP) (DP) and so on is there a query to add to already points. so i don't just change it to 70 000 if he already have 20 000 and pays for 70 000. i want something to add 70 000 to 20 000 so i get 90 000 and not just change it to 70 000 and all the points he/she hade is gone. i don't...
query help
05/16/2011 - EO PServer Hosting - 2 Replies
how do i delete a item id from cq_dropItemrule like i tried delete cq_dropitemrule 1020150 lol i know its not that simple but can someone help i just want one certain item id removed from the droprule but theres like 200 of them so was wondering if theres a way to do a query to look for everything that says this 1020150 and remove or update it to a differnt id please let me know thanks :D
Query von Gm-eq
04/09/2011 - Metin2 Private Server - 22 Replies
hat einer von euch die Query von den Gm helmen etc wäre sehr nett wenn ihr sie posten könntet
[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 +2. The time now is 12:39.


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.