how to fix bug in hp mp 1000 and exra 50

Results 1 to 3 of 3
  1. #1
    Member eshak is offline
    MemberRank
    Jan 2012 Join Date
    42Posts

    talk how to fix bug in hp mp 1000 and exra 50

    1.how to fix 1000mp or hp when u use 1 u get 49
    2.exra can store in 1 solt in 50 ps but when i use it all gone
    3. what table in my shard ican look in

    thxx guys ihope i get some help


  2. #2
    Sorcerer Supreme Caipi is offline
    Member +Rank
    Sep 2011 Join Date
    GermanyLocation
    403Posts

    Re: how to fix bug in hp mp 1000 and exra 50

    You obviously only changed the Stack clientside, you gotta change it as well at the _RefObjItem table..

    PHP Code:
    USE SRO_VT_SHARD
    Declare @NEWMaxStack varchar(10)
    Declare @
    ItemID int
    Declare @oldStack varchar(10)
    Declare @
    SpawnCodeID varchar(50)

    /*##############################################################################*/

    SET @NEWMaxStack 75                        /* e.g. stackable up to 75 */
    SET @SpawnCodeID 'ITEM_ETC_HP_POTION_01'    /* Has to be unique */

    /*##############################################################################*/

    SET @ItemID = (Select ID from _RefObjCommon WHERE CodeName128 like @SpawnCodeID)
    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 5000SET @newItemID 5000
    else if (@ItemID 10000SET @newItemID 10000
    else if (@ItemID 15000SET @newItemID 15000
    else if (@ItemID 20000SET @newItemID 20000
    else if (@ItemID 25000SET @newItemID 25000
    else if (@ItemID 30000SET @newItemID 30000
    else if (@ItemID 35000SET @newItemID 35000
    else if (@ItemID 40000SET @newItemID 40000
    else if (@ItemID >= 40000SET @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 @NEWMaxStack and @SpawnCodeID

  3. #3
    Member eshak is offline
    MemberRank
    Jan 2012 Join Date
    42Posts

    Re: how to fix bug in hp mp 1000 and exra 50

    thnxx dude for help



Advertisement