[problem] Job query fail

07/25/2015 16:16 B13.#1
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 = 5 -- Doubles the profit % trough "2.0" (e.g. 2.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
07/25/2015 18:10 Zodiao#2
Code:
@NewQuot = 1/98
Try that and go from there.
07/28/2015 05:40 S-R Online#3
@NewQuot is the percentage , if it gives 16 B as reward then write 1/8 and it will give you 2B
07/28/2015 10:30 B13.#4
so i try it and looks like that i added another 0 by mistake
now trade gives 0 Gold DUMB-ME


#Request2close#