Register for your free account! | Forgot your password?

You last visited: Today at 13:51

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

Advertisement



[problem] Job query fail

Discussion on [problem] Job query fail within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
[problem] Job query fail [Request2close]

hey guys i used this query

PHP Code:
DECLARE @NewQuot FLOAT -- @ SRO_VT_SHARD 
DECLARE @NewPrice INT 
DECLARE @NewStack INT 
DECLARE @NewSellPrice INT 
SET 
@NewQuot -- Doubles the profit trough "2.0" (e.g2.6 is also possible
SET @NewPrice 6000 -- Goods Price the Shop 
SET 
@NewStack 40 -- Increases/Decreases the maximum Stack, Default = 40 
SET 
@NewSellPrice 4000 -- Goods Price if you sell them directly again without trading

-- 
Profit 

UPDATE [dbo].[_ItemQuotation
SET BaseQuot BaseQuot*@NewQuot 
WHERE RefItemID BETWEEN 2147 
AND 2158 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_LB Quot_LB*@NewQuot 
WHERE RefItemID BETWEEN 2147 
AND 2158 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_UB Quot_UB*@NewQuot 
WHERE RefItemID BETWEEN 2147 
AND 2158 

UPDATE 
[dbo].[_ItemQuotation
SET BaseQuot BaseQuot*@NewQuot 
WHERE RefItemID BETWEEN 10394 
AND 10401 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_LB Quot_LB*@NewQuot 
WHERE RefItemID BETWEEN 10394 
AND 10401 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_UB Quot_UB*@NewQuot 
WHERE RefItemID BETWEEN 10394 
AND 10401 

UPDATE 
[dbo].[_ItemQuotation
SET BaseQuot BaseQuot*@NewQuot 
WHERE RefItemID BETWEEN 24671 
AND 24672 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_LB Quot_LB*@NewQuot 
WHERE RefItemID BETWEEN 24671 
AND 24672 

UPDATE 
[dbo].[_ItemQuotation
SET Quot_UB Quot_UB*@NewQuot 
WHERE RefItemID BETWEEN 24671 
AND 24672 

-- Price SellPrice 

UPDATE 
[dbo].[_RefObjCommon
SET Price = @NewPrice 
WHERE ID BETWEEN 2147 
AND 2158 

UPDATE 
[dbo].[_RefObjCommon
SET SellPrice = @NewSellPrice 
WHERE ID BETWEEN 2147 
AND 2158 

UPDATE 
[dbo].[_RefObjCommon
SET Price = @NewPrice 
WHERE ID BETWEEN 10394 
AND 10401 

UPDATE 
[dbo].[_RefObjCommon
SET SellPrice = @NewSellPrice 
WHERE ID BETWEEN 10394 
AND 10401 

UPDATE 
[dbo].[_RefObjCommon
SET Price = @NewPrice 
WHERE ID BETWEEN 24671 
AND 24672 

UPDATE 
[dbo].[_RefObjCommon
SET SellPrice = @NewSellPrice 
WHERE ID BETWEEN 24671 
AND 24672 

-- MaxStack 

UPDATE 
[dbo].[_RefObjItem
SET MaxStack = @NewStack 
WHERE ID BETWEEN 1926 
AND 1937 

UPDATE 
[dbo].[_RefObjItem
SET MaxStack = @NewStack 
WHERE ID BETWEEN 5881 
AND 5888 

UPDATE 
[dbo].[_RefObjItem
SET MaxStack = @NewStack 
WHERE ID BETWEEN 11159 
AND 11160 

-- Price 

UPDATE 
[dbo].[_RefPricePolicyOfItem
SET Cost = @NewPrice 
Where RefPackageItemCodeName like 
'%ITEM_ETC_TRADE%' 
it gave me 16b from Alex -> Samarkand (SET @NewQuot = 50)
so like an idiot i used it again in order to reduce it (derp) (SET @NewQuot = 5)
*it gave me 100b and only sold 2 star out of 5
what i did wrong & how to fix it
what is the best value to make profit gives like 1~2b
B13. is offline  
Old 07/25/2015, 18:10   #2
 
Zodiao's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 748
Received Thanks: 227
Code:
@NewQuot = 1/98
Try that and go from there.
Zodiao is offline  
Old 07/28/2015, 05:40   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 30
Received Thanks: 5
@NewQuot is the percentage , if it gives 16 B as reward then write 1/8 and it will give you 2B
S-R Online is offline  
Old 07/28/2015, 10:30   #4
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
so i try it and looks like that i added another 0 by mistake
now trade gives 0 Gold DUMB-ME


#Request2close#
B13. is offline  
Reply


Similar Threads Similar Threads
Problem Query
12/12/2014 - SRO Private Server - 2 Replies
Fixed Thanks.
Mob Query Problem
04/11/2013 - Metin2 Private Server - 4 Replies
Guten Tag Epvp derzeit habe ich ein Problem mit diesem Query hier: INSERT INTO mob_proto VALUES ('50000', 'Odin', 'Odin', '4', '1', '0', '250', '', 'NOMOVE,NOMOVE', '0', 'UNDEAD', '', '0', '', '2', '999', '999', '999', '999', '100', '100', '100', '100', '100', '100', '100', '100', '100', '100', '100', '0', '2000', '100', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0 ', '0', '0', '100', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'); ...
[HELP]Query problem
08/18/2012 - Shaiya - 1 Replies
#close request
Query fail'd -> Hilfe dringend benötigt!
05/14/2011 - Metin2 Private Server - 4 Replies
Guuten Morgen, ja, ich versuche schon seit Stunden diese scheiß Metins in die DB reinzubekommen -> jedoch ohne Erfolg. Der Query fail'd immer. SELECT * FROM `mob_proto`; Affected rows: 0 Time: 0.148ms
Problem mit Query
04/26/2011 - Metin2 Private Server - 0 Replies
Hey Leute wir haben auf unserem Server eine Neue Rüstung erstellt Namens: Mystischer-Platten-Panzer /Anzu /Kleidung /Panzer aber wenn ich das einfügen will in meine item_proto kommt ein error -.- was kann ich tun?



All times are GMT +2. The time now is 13:51.


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.