Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 22:34

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

Advertisement



Help with querry add silks to 1 player

Discussion on Help with querry add silks to 1 player within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
EQuiNoXsro's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 123
Received Thanks: 26
Help with querry add silks to 1 player

How totle say i need querry add silks just to 1 player i need update the silks not set the ampunt of silks . Like if player have 123 silks when use querry add 150 silk should be 273 silks .
EQuiNoXsro is offline  
Old 05/16/2017, 04:55   #2
 
Muhab*'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 885
Received Thanks: 1,419
Actually that query requires a very very basic knowledge about SQL!

Quote:
Code:
UPDATE table_1 SET column_1+= @silks WHERE column_2 = @jid
IF @@ROWCOUNT=0
	INSERT INTO table_1 VALUES(JID, @silks, 0, 0)
I don't really remember table & column names correctly and lazy to check them so just modify them..
Muhab* is offline  
Old 05/16/2017, 13:27   #3
 
EQuiNoXsro's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 123
Received Thanks: 26
And where put silks and where put char name ?
EQuiNoXsro is offline  
Old 05/16/2017, 17:59   #4
 
Snow*'s Avatar
 
elite*gold: 1
Join Date: Nov 2011
Posts: 2,532
Received Thanks: 1,439

Quote:
Originally Posted by Pr0x! View Post
Code:
USE SRO_VT_SHARD-- Use SHARD database
DECLARE @CharName16 varchar(64)
DECLARE @UserID INT
DECLARE @silk int
SET @silk = '9999' --Silk Here
SET @CharName16 = 'Zed*' --CharName here
SET @UserID = (select UserJID from _User where CharID = (SELECT CharID FROM _Char where CharName16 = @CharName16))
UPDATE SRO_VT_ACCOUNT.dbo.SK_Silk set silk_own = silk_own + @silk where JID = @UserID
Snow* is offline  
Reply


Similar Threads Similar Threads
[Release] Querry How to Add Blue At Devil/Angel Spirit.
11/10/2023 - SRO PServer Guides & Releases - 4 Replies
Here is The Querry :D USE SRO_VT_SHARD UPDATE dbo._Items set MagParamNum='5',MagParam1='30064771144',MagParam2= '30064771150',MagParam3='5583457484950',MagParam4= '5583457484962',MagParam5='257698037898'WHERE ID64='3889568' change where is '3889568' put the item code by SMC and put here !
[Release] Querry How to Add Blue At Devil/Angel Spirit.
05/14/2016 - SRO PServer Guides & Releases - 1 Replies
Hello Epvp . here is the querry . USE SRO_VT_SHARD UPDATE dbo._Items set MagParamNum='5',MagParam1='30064771144',MagParam2= '30064771150',MagParam3='5583457484950',MagParam4= '5583457484962',MagParam5='257698037898'WHERE ID64='3889568' where is 3889568 you need to put your id at devil spirit or angel spirit . you can found easy the id in SMC , Sr_UserEdit and at Char Item.
Suche Querry für Player-DB
02/26/2011 - Metin2 Private Server - 0 Replies
Hallo, ich bräuchte ne .sql für die Player-DB Also für die Account ist es zum Beispiel: SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` int(11) NOT NULL auto_increment, `login` varchar(30) NOT NULL default '', `password` varchar(45) NOT NULL default '',



All times are GMT +1. The time now is 22:35.


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