[Release]Finally Working Codes for Vigor and Wolf to NPC

Results 1 to 22 of 22
  1. #1
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    [Release]Finally Working Codes for Vigor and Wolf to NPC

    First i like to Say thanks to Mr ( FallDown ) he helped a lot with his Release (http://forum.ragezone.com/f722/relea...rs-npc-796990/)

    i tried them but i fined Some Errors to my files to i got the solution for them and here it is

    Notes :

    1- before you edit in any thing you have to make Some backup from your Database and your media.
    2- when you edit in your media .dont make Spaces between your DATA . just hit ( tab ) from your Key board .. dont hit space


    Adding Wolf to NPC ( we assume that your media have the correct .ddj file )

    first we need to update your Data bass to make it Working .. we may use whose Quires ( from FallDown )

    PHP Code:
    Update _RefPackageItem 
    SET Service 

    WHERE CodeName128 
    'PACKAGE_ITEM_COS_P_FLUTE'

    Update _RefPricePolicyOfItem 
    SET Service 

    WHERE RefPackageItemCodeName 
    'PACKAGE_ITEM_COS_P_FLUTE'  

    Update _RefScrapOfPackageItem 
    SET Service 

    WHERE RefPackageItemCodeName 
    'PACKAGE_ITEM_COS_P_FLUTE'  

    Update _RefShopGoods 
    SET Service 

    WHERE RefPackageItemCodeName 
    'PACKAGE_ITEM_COS_P_FLUTE' 
    that is with SQL

    second we need to add the correct code to your media
    from refpackageitem.txt :
    PHP Code:
    1    15    24822    PACKAGE_ITEM_COS_P_FLUTE    0    EXPAND_TERM_ALL    SN_ITEM_COS_P_FLUTE    SN_ITEM_COS_P_FLUTE_TT_DESC    cos\item_cos_p_flute.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    from RefPricePolicyOfItem.txt

    PHP Code:
    1    15    PACKAGE_ITEM_COS_P_FLUTE    1    0    2000000    0    xxx    0    xxx    0    xxx    0    xxx 
    from RefScrapOfPackageItem.txt

    PHP Code:
    1    15    PACKAGE_ITEM_COS_P_FLUTE    ITEM_COS_P_FLUTE    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx    29952 
    from Refshopgoods.txt

    PHP Code:
    1    15    STORE_CA_STABLE_TAB3    PACKAGE_ITEM_COS_P_FLUTE    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx
    1    15    STORE_CH_STABLE_TAB3    PACKAGE_ITEM_COS_P_FLUTE    0    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx
    1    15    STORE_EU_STABLE_TAB3    PACKAGE_ITEM_COS_P_FLUTE    0    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx
    1    15    STORE_KT_STABLE_TAB3    PACKAGE_ITEM_COS_P_FLUTE    0    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx
    1    15    STORE_WC_STABLE_TAB3    PACKAGE_ITEM_COS_P_FLUTE    0    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    this Txt files from my working media so plzz dont say it dose not Working . if it is that meas you did some thing Wrong.

    Adding Vigor

    from your Data base you may inter this data bu your hand into your Data base

    from table name _RefPackageItem inter this
    PHP Code:
    1    15    84038    PACKAGE_ITEM_ETC_ALL_SPOTION_01    0    EXPAND_TERM_ALL    SN_ITEM_ETC_ALL_SPOTION_01    SN_ITEM_ETC_ALL_SPOTION_01_TT_DESC    item\etc\all_spotion_01.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    from table name _RefPricePolicyOfItem
    PHP Code:
    1    15    PACKAGE_ITEM_ETC_ALL_SPOTION_01    1    0    5000    0    xxx    0    xxx    0    xxx    0    xxx 
    from table name _RefScrapOfPackageItem
    PHP Code:
    1    15    PACKAGE_ITEM_ETC_ALL_SPOTION_01    ITEM_ETC_ALL_SPOTION_01    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx    86685 
    from table name _RefShopGoods
    PHP Code:
    1    15    STORE_CA_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    25    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_CH_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    27    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_EU_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    27    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_KT_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    23    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_WC_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    26    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    now with Media PK

    from RefPackageItem.txt

    PHP Code:
    1    15    84037    PACKAGE_ITEM_ETC_ALL_SPOTION_01    0    EXPAND_TERM_ALL    SN_ITEM_ETC_ALL_SPOTION_01    SN_ITEM_ETC_ALL_SPOTION_01_TT_DESC    item\etc\all_spotion_01.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    from RefPricePolicyOfItem.txt

    PHP Code:
    1    15    PACKAGE_ITEM_ETC_ALL_SPOTION_01    1    0    5000    0    xxx    -1    xxx    -1    xxx    -1    xxx 
    from RefScrapOfPackageItem.txt

    PHP Code:
    1    15    PACKAGE_ITEM_ETC_ALL_SPOTION_01    ITEM_ETC_ALL_SPOTION_01    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx    86767 
    form Refshopgoods.txt

    PHP Code:
    1    15    STORE_WC_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    26    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_KT_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    23    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1       15      STORE_EU_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    27    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_CH_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    27    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    1    15    STORE_CA_POTION_TAB1    PACKAGE_ITEM_ETC_ALL_SPOTION_01    25    
    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
    now it is Done

    Note:

    read well guyz and make it Write with out any spacing or any wrong letters

    ddj File location in worng because PHP Code removes \ So Change it to item\etc\all_spotion_01.ddj . this is must be Done

    in this Release i solved the problem when buying 50 unite Vigor you got DC or the game got Crashed



    if you got any Problems plss say it :))

    good luck guyz :D

    ((thanks so much RageZone you helped me a lot :D

    thanks mr Mohamed Mossa ))
    Attached Files Attached Files
    Last edited by 3d2000; 13-12-11 at 07:46 AM.


  2. #2
    Newbie iDarren is offline
    MemberRank
    Dec 2011 Join Date
    13Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Help me too !

    What thing hapening with the Impage

  3. #3
    kaju BadFist is offline
    Grand MasterRank
    Nov 2011 Join Date
    833Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    working but when i want to buy a stok 50 vigor i can buy only 5 and i ricive d/c after i log in in game i have 5 vigor each individual not 5 vigor stok who i can fix theat?

  4. #4
    Newbie iDarren is offline
    MemberRank
    Dec 2011 Join Date
    13Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC


  5. #5
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Quote Originally Posted by BadFist View Post
    working but when i want to buy a stok 50 vigor i can buy only 5 and i ricive d/c after i log in in game i have 5 vigor each individual not 5 vigor stok who i can fix theat?
    if you use my files and codes .. just Restart your server to reconnect server with new data base :))

    Quote Originally Posted by iDarren View Post
    i really dont know .. sorry :))

  6. #6
    Sorcerer Supreme arabianfox is offline
    Member +Rank
    Nov 2011 Join Date
    292Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Many thanks

  7. #7
    CPP/C#/PHP/ASM Naty48 is offline
    Grand MasterRank
    Apr 2009 Join Date
    IsraelLocation
    655Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    the problem with buying 50 is just -1 instead of 0 in
    RefScrapOfPackageItem.txt thats it , thanks anyway :D

  8. #8
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Quote Originally Posted by naty48 View Post
    the problem with buying 50 is just -1 instead of 0 in
    RefScrapOfPackageItem.txt thats it , thanks anyway :D
    i copied those text from my Data and my Media :))

    dose it make any Deference between different Servers and different Databases
    i really Dont know

  9. #9
    Elite Member Romochild is offline
    Member +Rank
    Dec 2006 Join Date
    In the CloudsLocation
    202Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    On my files this worked with out me having to do anything... odd.

  10. #10
    Member ByMaSTeRr is offline
    MemberRank
    Sep 2011 Join Date
    51Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    dog was vigor not

  11. #11
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Quote Originally Posted by ByMaSTeRr View Post
    dog was vigor not
    i am sorry what do say ??

  12. #12
    Member vista1 is offline
    MemberRank
    Nov 2011 Join Date
    26Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    hard work

  13. #13
    Sorcerer Supreme SL1MSH4DY is offline
    Member +Rank
    Dec 2011 Join Date
    USALocation
    418Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Could you upload your actual text files for the wolf? It still won't work for me and I've checked everything. Maybe I am importing them wrong in media.pk2?

    Edit: I must be importing them wrong manually. It says successful, but then I extract it and the changes I made aren't in the text files. So is there a specific way to manually import these files? I'm going to look around at the moment.

    Edit2: GOT IT! HAHAHA Finally :)
    Last edited by SL1MSH4DY; 16-12-11 at 10:09 PM.

  14. #14
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    :)) GOOD luck bro :D

  15. #15
    Sorcerer Supreme SL1MSH4DY is offline
    Member +Rank
    Dec 2011 Join Date
    USALocation
    418Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    What about white wolf to npc?

    Edit: Got it in the npc but when I buy it, takes my gold, but i dont get it and DC. Looking into the problem.
    Last edited by SL1MSH4DY; 17-12-11 at 10:20 PM.

  16. #16
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Quote Originally Posted by SL1MSH4DY View Post
    What about white wolf to npc?

    Edit: Got it in the npc but when I buy it, takes my gold, but i dont get it and DC. Looking into the problem.
    i think it is a Problem with your Media .. so u got it ^^ >>
    try to

    if you are using my Files plzz try to restart your Server and test it again ,, i am sure my files is Working ^^

  17. #17
    Sorcerer Supreme SL1MSH4DY is offline
    Member +Rank
    Dec 2011 Join Date
    USALocation
    418Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    You have the WHITE wolf working? I edited database and pk2 the same way as the grey and have dc. I set silk price to 0 and also had to edit DB to add to stable tab 3 in all cities. I also had to set service 1 for MALL_PET_SUMMON in the _RefShopTab.dbo. What else is there to do?
    Posted via Mobile Device

  18. #18
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    yes i have White Wolf Working in ITEM Mall ( not in NPC )

    alsoo this guide for Gray Wolf :) not White ^_^

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

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Try it with this one out.. (curious if it works properly)
    PHP Code:
    USE SRO_VT_SHARD /* ITEMS TO NPC FOR GOLD by Caipi */
    Declare @ItemID int
    Declare @yourPrice int
    Declare @WhichTAB varchar(74)



    SET @ItemID 23                            /* The Item ID of the Item you want to add to the NPC*/ --## <--
    SET @yourPrice 5000                        /* The price per Unit */ --## <--
    SET @WhichTAB 'STORE_CH_POTION_TAB1'        /* To which Tab at which NPC you want to add the Item*/



    /* Codename instead of the ID */ 
    Declare @CodeName varchar (74SET @CodeName = (SELECT CodeName128 FROM _RefObjCommon WHERE ID = @ItemID)

    /* Which Itemdata.txt is affected in the Media.pk2*/
    Declare @newItemID varchar(5)
    Declare @
    lastPrice varchar(25SET @lastPrice = (SELECT Price FROM _RefObjCommon WHERE ID = @ItemID)
    Declare @
    yourPriceCHAR varchar(25SET @yourPriceCHAR = @yourPrice
    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 SET @newItemID 45000
    print ''
    print @CodeName ' from Media\server_dep\silkroad\textdata\itemdata_'+@newItemID+'.txt'
    print 'Change the current Price of '+@lastPrice+' to '+@yourPriceCHAR+' at the itemdata_'+@newItemID+'. (For the visual Price ingame)'
    /*END which Itemdata.txr*/

    /*for _RefObjCommon Price*/
    UPDATE _RefObjCommon SET Price = @yourPrice WHERE ID = @ItemID

    /* for _RefPackageItem */
    IF EXISTS (SELECT CodeName128 FROM _RefPackageItem WHERE CodeName128 'Package_'+@CodeName)
        
    BEGIN
            
    print 'Already added @ RefPackageItem/.txt!'
        
    END
    ELSE BEGIN
    Declare @SN varchar(74SET @SN = (SELECT NameStrID128 FROM _RefObjCommon WHERE ID = @ItemID)
    Declare @
    DESC varchar(74SET @Desc = (SELECT DescStrID128 FROM _RefObjCommon WHERE ID = @ItemID)
    Declare @
    DDJ varchar(74SET @DDJ = (SELECT AssocFileIcon128 FROM _RefObjCommon WHERE ID = @ItemID)
    INSERT INTO _RefPackageItem (Service,Country,CodeName128,SaleTag,ExpandTerm,NameStrID,DescStrID,AssocFileIcon,Param1,Param1_Desc128,Param2,Param2_Desc128,Param3,Param3_Desc128,Param4,Param4_Desc128
    VALUES (1,15,'PACKAGE_'+@CodeName,0,'EXPAND_TERM_ALL',@SN,@Desc,@DDJ,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
    Declare @
    TOPID varchar (10SET @TOPID = (SELECT MAX(IDFROM _RefPackageItem)
    print 
    ''
    print 'Add the following line @ refpackageitem.txt'
    print '1    15    '+@TOPID+'    PACKAGE_'+@CodeName+'    0    EXPAND_TERM_ALL    '+@SN+'    '+@DESC+'    '+@DDJ+'    -1    xxx    -1    xxx    -1    xxx    -1    xxx'
    print ''
    END

    /* for _RefPricePolicyOfItem */
    IF EXISTS (SELECT RefPackageItemCodeName FROM _RefPricePolicyOfItem WHERE RefPackageItemCodeName 'Package_'+@CodeName AND PaymentDevice AND Cost = @yourPrice)
        
    BEGIN
            
    print 'Already added @ RefPricePolicyOfItem/.txt!'
        
    END
    ELSE BEGIN
    INSERT INTO _RefPricePolicyOfItem 
    (Service,Country,RefPackageItemCodeName,PaymentDevice,PreviousCost,Cost,Param1,Param1_Desc128,Param2,Param2_Desc128,Param3,Param3_Desc128,Param4,Param4_Desc128)
    VALUES (1,15,'PACKAGE_'+@CodeName,1,0,@yourPrice,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
    Declare @
    NEWPRICE varchar(15SET @NEWPRICE = @yourPrice
    print ''
    print 'Add the following line @ refpricepolicyofitem.txt'
    print '1    15    PACKAGE_'+@CodeName+'    1    0    '+@NEWPRICE+'    -1    xxx    -1    xxx    -1    xxx    -1    xxx'
    print ''
    END

    /* for _RefShopGoods */
    IF EXISTS (SELECT RefPackageItemCodeName FROM _RefShopGoods WHERE RefPackageItemCodeName 'Package_'+@CodeName AND RefTabCodeName = @WhichTAB)
        
    BEGIN
            
    print 'Already added @ RefShopGoods/.txt!'
        
    END
    ELSE BEGIN
    Declare @newSLOTINDEX varchar(15SET @newSLOTINDEX = (SELECT MAX(SlotIndexFROM _RefShopGoods WHERE RefTabCodeName = @WhichTAB)+1
    INSERT INTO _RefShopGoods 
    (Service,Country,RefTabCodeName,RefPackageItemCodeName,SlotIndex,Param1,Param1_Desc128,Param2,Param2_Desc128,Param3,Param3_Desc128,Param4,Param4_Desc128)
    VALUES (1,15,@WhichTAB,'PACKAGE_'+@CodeName,@newSLOTINDEX,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
    print 
    ''
    print 'Add the following line @ refshopgoods.txt'
    print '1    15    '+@WhichTAB+'    '+'PACKAGE_'+@CodeName+'    '+@newSLOTINDEX+'    -1    xxx    -1    xxx    -1    xxx    -1    xxx'
    print ''
    END

    /* for _RefScrapOfPackageItem */
    IF EXISTS (SELECT RefPackageItemCodeName FROM _RefScrapOfPackageItem WHERE RefPackageItemCodeName 'Package_'+@CodeName AND RefItemCodeName = @CodeName)
        
    BEGIN
            
    print 'Already added @ RefScrapOfPackageItem/.txt!'
        
    END
    ELSE BEGIN
    INSERT INTO _RefScrapOfPackageItem 
    (Service,Country,RefPackageItemCodeName,RefItemCodeName,OptLevel,Variance,Data,MagParamNum,MagParam1,MagParam2,MagParam3,MagParam4,MagParam5,MagParam6,MagParam7,MagParam8,MagParam9,MagParam10,MagParam11,MagParam12,Param1,Param1_Desc128,Param2,Param2_Desc128,Param3,Param3_Desc128,Param4,Param4_Desc128)
    VALUES (1,15,'PACKAGE_'+@CodeName,@CodeName,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
    Declare @
    ScrapIndex varchar(15)
    SET @ScrapIndex = (SELECT MAX([Index]) FROM _RefScrapOfPackageItem WHERE RefItemCodeName = @CodeName)
    print 
    ''
    print 'Add the following line @ refscrapofpackageitem.txt'
    print '1    15    '+'PACKAGE_'+@CodeName+'    '+@CodeName+'    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx    '+@ScrapIndex
    print ''
    END
    print ''
    print ''
    print 'Done!' 
    This will only work for well conducted DB's + pk2's cause it checks if a line is already added and it requires that the DB values = pk2 values.

  20. #20
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    what can i Say .............. Awesome as usual :))

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

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    Try it out at first ;D

  22. #22
    Sorcerer Supreme 3d2000 is offline
    Member +Rank
    Nov 2011 Join Date
    462Posts

    Re: [Release]Finally Working Codes for Vigor and Wolf to NPC

    no i trust u :P



Advertisement