Query To Set New MaxStack Of Stones / Tablets / Elements / Elixirs

12/25/2013 13:07 MÓE#1
actually i don't know if it's released before or not but it's helpful

MAGICSTONE


ATTRSTONE



MAGICTABLET


ATTRTABLET


ELEMENT



Elixirs



follow these steps

1- Open your sql


2- Press New query


3- Paste Query There


4- Change @MaxStack=(NewMaxStack)



5- Press Execute


6- Query executed successfully


7- Media Side - edit itemdata"xxx".txt in your media as the stack number


8- Restart Server






Congratulations!
12/25/2013 17:39 PortalDark#2
#Approved
12/25/2013 18:15 radde94#3
Good comment!
12/25/2013 18:30 TrixArts#4
Thanks very helpful :)
12/25/2013 18:31 eXoTe30#5
are the attribute stones and magicstones not bugged after this because of 0% 10% 20% and 30% stones are stacked at the same slot?

nice work thank you
12/25/2013 18:33 MÓE#6
no it's working fine tested in sql 2008 r2 , you are welcome
12/25/2013 18:33 bxxb#7
HelpFull thanks
12/25/2013 18:34 MÓE#8
you're welcome
12/25/2013 18:55 Empire-Sro#9
Help Full Thank You
12/25/2013 18:57 MÓE#10
you're welcome
12/25/2013 19:35 Certus#11
good job, but here is a clearer version of this query

Type 1 = Stones
Type 2 = Tablets
Type 3 = Elements
Type 4 = Elixirs

PHP Code:
USE SRO_VT_SHARD
/******By Certus ******/
DECLARE @Type INT 1
DECLARE @MaxStack INT 250 

-- *******************************************************************************
-- 
CHANGE STACK OF STONES
-- *******************************************************************************
IF @
Type 1
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%STONE%' AND Service=1)
DECLARE @
PrintMessageStones VARCHAR (50) = 'Stack of stones is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageStones
END

-- *******************************************************************************
-- 
CHANGE STACK OF TABLETS
-- *******************************************************************************
IF @
Type 2
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%TABLET%' AND Service=1)
DECLARE @
PrintMessageTablets VARCHAR (50) = 'Stack of tablets is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageTablets
END

-- *******************************************************************************
-- 
CHANGE STACK OF ELEMENTS
-- *******************************************************************************
IF @
Type 3
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%ELEMENT%' AND Service=1)
DECLARE @
PrintMessageElements VARCHAR (50) = 'Stack of elements is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageElements
END

-- *******************************************************************************
-- 
CHANGE STACK OF ELIXIRS
-- *******************************************************************************
IF @
Type 4
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE '%ITEM_ETC_ARCHEMY_REINFORCE_RECIPE_%_B%' AND Service=1)
DECLARE @
PrintMessageElexirs VARCHAR (50) = 'Stack of elixirs is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageElexirs
END

IF @Type NOT BETWEEN 1 AND 4
BEGIN
PRINT 'Please set Type to 1 for stones'
PRINT 'Please set Type to 2 for tablets'
PRINT 'Please set Type to 3 for elements'
PRINT 'Please set Type to 4 for elixirs'
END 
12/25/2013 19:47 awful1337#12
good job fifa..

very helpful
thanks mate<3
12/25/2013 20:27 MÓE#13
Quote:
Originally Posted by Certus View Post
good job, but here is a clearer version of this query

Type 1 = Stones
Type 2 = Tablets
Type 3 = Elements
Type 4 = Elixirs

PHP Code:
USE SRO_VT_SHARD
/******By Certus ******/
DECLARE @Type INT 1
DECLARE @MaxStack INT 250 

-- *******************************************************************************
-- 
CHANGE STACK OF STONES
-- *******************************************************************************
IF @
Type 1
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%STONE%' AND Service=1)
DECLARE @
PrintMessageStones VARCHAR (50) = 'Stack of stones is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageStones
END

-- *******************************************************************************
-- 
CHANGE STACK OF TABLETS
-- *******************************************************************************
IF @
Type 2
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%TABLET%' AND Service=1)
DECLARE @
PrintMessageTablets VARCHAR (50) = 'Stack of tablets is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageTablets
END

-- *******************************************************************************
-- 
CHANGE STACK OF ELEMENTS
-- *******************************************************************************
IF @
Type 3
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE 'ITEM_ETC_ARCHEMY_%ELEMENT%' AND Service=1)
DECLARE @
PrintMessageElements VARCHAR (50) = 'Stack of elements is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageElements
END

-- *******************************************************************************
-- 
CHANGE STACK OF ELIXIRS
-- *******************************************************************************
IF @
Type 4
BEGIN
UPDATE _RefObjItem SET MaxStack 
= @MaxStack WHERE ID IN (SELECT Link FROM _RefObjCommon WHERE CodeName128 LIKE '%ITEM_ETC_ARCHEMY_REINFORCE_RECIPE_%_B%' AND Service=1)
DECLARE @
PrintMessageElexirs VARCHAR (50) = 'Stack of elixirs is successfully changed to '
    
RTRIM(CAST(@MaxStack AS nvarchar(30)))
PRINT @
PrintMessageElexirs
END

IF @Type NOT BETWEEN 1 AND 4
BEGIN
PRINT 'Please set Type to 1 for stones'
PRINT 'Please set Type to 2 for tablets'
PRINT 'Please set Type to 3 for elements'
PRINT 'Please set Type to 4 for elixirs'
END 
well mine working aswell so you can create a new topic thanks anyway

Quote:
Originally Posted by awful1337 View Post
good job fifa..

very helpful
thanks mate<3
thank you :) you're welcome
12/25/2013 20:46 MÓE#14
thank you!
12/25/2013 20:52 burundukas#15
Helpful ty ;)