Re: [Guide] Stackable Items Guide
Woot! Old news! I stole atomix's method loong time ago!! ~~ Kidding...
love the release bro! i was always wondering how the Media calculated the max limits... thought it was interface xD
Re: [Guide] Stackable Items Guide
Quote:
Originally Posted by
Jangan
Woot! Old news! I stole atomix's method loong time ago!! ~~ Kidding...
love the release bro! i was always wondering how the Media calculated the max limits... thought it was interface xD
NP :wink: you only had to ask me you know that :)
Re: [Guide] Stackable Items Guide
I'll be trying this soon with more stackable items.
Re: [Guide] Stackable Items Guide
great Guide.. thxxxxxxxxxxxxx
Re: [Guide] Stackable Items Guide
I made some nonsense for lazy ones regarding to the topic :)
PHP Code:
USE SRO_VT_SHARD
Declare @NEWMaxStack varchar(10)
Declare @ItemID int
Declare @oldStack varchar(10)
SET @NEWMaxStack = 75 /* e.g. stackable up to 75 */
SET @ItemID = 4 /* ID of the Item ofrom the itemdata.txt files */
SET @oldStack = (SELECT MaxStack FROM _RefObjItem WHERE ID like (SELECT Link FROM _RefObjCommon WHERE ID like @ItemID))
UPDATE dbo._RefObjItem SET MaxStack = @NEWMaxStack WHERE ID = (SELECT Link FROM _RefObjCommon WHERE ID like @ItemID)
/* Which Itemdata.txt is affected in the Media.pk2*/
Declare @newItemID varchar(5)
IF (@ItemID < 5000)
SET @newItemID = 5000
else if (@ItemID < 10000)
SET @newItemID = 10000
else if (@ItemID < 15000)
SET @newItemID = 15000
else if (@ItemID < 20000)
SET @newItemID = 20000
else if (@ItemID < 25000)
SET @newItemID = 25000
else if (@ItemID < 30000)
SET @newItemID = 30000
else if (@ItemID < 35000)
SET @newItemID = 35000
else if (@ItemID < 40000)
SET @newItemID = 40000
else if (@ItemID >= 40000)
SET @newItemID = 45000
/*END which Itemdata.txr*/
Declare @CodeName varchar(74)
Declare @DDJ varchar(74)
SET @CodeName = (SELECT CodeName128 FROM _RefObjCommon WHERE ID like @ItemID)
SET @DDJ = (SELECT AssocFileIcon128 FROM _RefObjCommon WHERE ID like @ItemID)
/* Paths */
print ''
print '@ Media\server_dep\silkroad\textdata\itemdata_'+@newItemID+'.txt'
print ''
print 'Change the line within the Itemdata.txt file like stated below:'
print ''
print 'Press CTRL+F and paste '+'"'+@CodeName+'"'+' into the box and search for the line at the file.'
print 'Scroll to the right till you reach '+'"'+@DDJ+'"'+' and change the value behind the 2x "xxx" from '+'"'+@oldStack+'"'+' to '+'"'+@NEWMaxStack+'"'+'.'
Change only the values of @NEWMaxStack and @ItemID!
Will give you everything out what and where you need to change it.
Re: [Guide] Stackable Items Guide
I think you like doing querys. Great work!
Re: [Guide] Stackable Items Guide
Quote:
Originally Posted by
Caipi
I made some nonsense for lazy ones regarding to the topic :)
PHP Code:
USE SRO_VT_SHARD
Declare @NEWMaxStack varchar(10)
Declare @ItemID int
Declare @oldStack varchar(10)
SET @NEWMaxStack = 75 /* e.g. stackable up to 75 */
SET @ItemID = 4 /* ID of the Item ofrom the itemdata.txt files */
SET @oldStack = (SELECT MaxStack FROM _RefObjItem WHERE ID like (SELECT Link FROM _RefObjCommon WHERE ID like @ItemID))
UPDATE dbo._RefObjItem SET MaxStack = @NEWMaxStack WHERE ID = (SELECT Link FROM _RefObjCommon WHERE ID like @ItemID)
/* Which Itemdata.txt is affected in the Media.pk2*/
Declare @newItemID varchar(5)
IF (@ItemID < 5000)
SET @newItemID = 5000
else if (@ItemID < 10000)
SET @newItemID = 10000
else if (@ItemID < 15000)
SET @newItemID = 15000
else if (@ItemID < 20000)
SET @newItemID = 20000
else if (@ItemID < 25000)
SET @newItemID = 25000
else if (@ItemID < 30000)
SET @newItemID = 30000
else if (@ItemID < 35000)
SET @newItemID = 35000
else if (@ItemID < 40000)
SET @newItemID = 40000
else if (@ItemID >= 40000)
SET @newItemID = 45000
/*END which Itemdata.txr*/
Declare @CodeName varchar(74)
Declare @DDJ varchar(74)
SET @CodeName = (SELECT CodeName128 FROM _RefObjCommon WHERE ID like @ItemID)
SET @DDJ = (SELECT AssocFileIcon128 FROM _RefObjCommon WHERE ID like @ItemID)
/* Paths */
print ''
print '@ Media\server_dep\silkroad\textdata\itemdata_'+@newItemID+'.txt'
print ''
print 'Change the line within the Itemdata.txt file like stated below:'
print ''
print 'Press CTRL+F and paste '+'"'+@CodeName+'"'+' into the box and search for the line at the file.'
print 'Scroll to the right till you reach '+'"'+@DDJ+'"'+' and change the value behind the 2x "xxx" from '+'"'+@oldStack+'"'+' to '+'"'+@NEWMaxStack+'"'+'.'
Change only the values of @NEWMaxStack and @ItemID!
Will give you everything out what and where you need to change it.
Thanks bro! Very helpful. If only you were like 8 days earlier? T_T haha would of saved me quite a while.
Re: [Guide] Stackable Items Guide
Quote:
Thanks bro! Very helpful. If only you were like 8 days earlier? T_T haha would of saved me quite a while.
I actually thought that changing the MaxStack is so easy that no one will ever need such a detailed one.. ^^
Re: [Guide] Stackable Items Guide
Well, i have a strange bug, i set the maxstack to 100 for elixirs like this
Quote:
USE SRO_VT_SHARD
UPDATE _RefObjItem SET MaxStack=100 WHERE ID=3679
UPDATE _RefObjItem SET MaxStack=100 WHERE ID=3680
UPDATE _RefObjItem SET MaxStack=100 WHERE ID=3681
UPDATE _RefObjItem SET MaxStack=100 WHERE ID=3682
Of course i edited it at media.pk2 too,(for example i have 20 put together), but when i put that 20 on a weapon, start alchemy, it uses 19, and i have only one left. Anybody know what can cause this?
EDIT:
Working..... I used the ID instead of the Link lol
Re: [Guide] Stackable Items Guide
well i used a query its like this
UPDATE dbo._RefObjCommon
SET MaxStack = Number of Stack
WHERE ID BETWEEN Start from id of item AND to last item id
Re: [Guide] Stackable Items Guide
Quote:
Originally Posted by
dragonzee
well i used a query its like this
UPDATE dbo._RefObjCommon
SET MaxStack = Number of Stack
WHERE ID BETWEEN Start from id of item AND to last item id
yeah I know it too, but I want to see everything what did I do :)
Re: [Guide] Stackable Items Guide
Re: [Guide] Stackable Items Guide
have 5 elixier when use 1 .. all go
and when have 2 immortal and teleport it be 1 - 1
any help ?!!
Re: [Guide] Stackable Items Guide