Add Item to NPC

Page 1 of 4 1234 LastLast
Results 1 to 15 of 51
  1. #1
    Valued Member Hean is offline
    MemberRank
    Sep 2011 Join Date
    126Posts

    Add Item to NPC

    Well, here is the query, just fill out the Data you need.
    You can add the same by my small n00b program :)
    There is an example inside so you will know how it works.

    Program(client side):


    Download



    MSSQL Query:
    PHP Code:
    USE SRO_VT_SHARD_INIT
    GO
    DECLARE @ID int
    DECLARE @CodeName varchar(129)
    DECLARE @
    DescSTRID varchar(129)
    DECLARE @
    File varchar(129)
    DECLARE @
    Price int
    DECLARE @Slot tinyint
    DECLARE @TAB varchar(129)
    DECLARE @
    Data int
    --- Set Variables
    SET 
    @ID 84037
    SET 
    @CodeName 'ITEM_ETC_ARCHEMY_MAGICSTONE_STR_08'
    SET @DescSTRID 'SN_ITEM_ETC_ARCHEMY_MAGICSTONE_STR_TT_DESC'
    SET @File 'item\etc\archemy_magicstone_str.ddj'
    SET @Price 9000000
    SET 
    @Slot 11
    SET 
    @TAB 'STORE_KT_ACCESSORY_TAB3'
    SET @Data 0

    SET IDENTITY_INSERT _RefPackageItem ON

    INSERT _RefPackageItem 
    (
    [
    Service],
    Country,
    ID,
    CodeName128,
    SaleTag,
    ExpandTerm,
    NameStrID,
    DescStrID,
    AssocFileIcon,
    Param1,
    Param1_Desc128,
    Param2,
    Param2_Desc128,
    Param3,
    Param3_Desc128,
    Param4,
    Param4_Desc128

    VALUES 
    115, @ID,'PACKAGE_' + @CodeName0'EXPAND_TERM_ALL''SN_' + @CodeName, @DescSTRID, @File, -1'xxx', -1'xxx', -1'xxx', -1'xxx')
    SET IDENTITY_INSERT _RefPackageItem OFF
    INSERT _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 
    (115'PACKAGE_' + @CodeName, @CodeName00,    @Data,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    -1,    'xxx',    -1,    'xxx',    -1,    'xxx',    -1,    'xxx' )

    INSERT _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,    @Price,    -1,    'xxx',    -1,    'xxx',    -1,    'xxx',    -1,    'xxx')

    INSERT _RefShopGoods
    (
    Service,
    Country,
    RefTabCodeName,
    RefPackageItemCodeName,
    SlotIndex,
    Param1,
    Param1_Desc128,
    Param2,
    Param2_Desc128,
    Param3,
    Param3_Desc128,
    Param4,
    Param4_Desc128


    VALUES 
    (1,    15,    @TAB,'PACKAGE_' + @CodeName, @Slot,    -1,    'xxx',    -1,    'xxx',    -1,    'xxx',    -1,    'xxx'


  2. #2
    #Yummi.sql Caipi is offline
    MemberRank
    Sep 2011 Join Date
    GermanyLocation
    403Posts

    Re: [Release] Add Item to NPC

    You cud add a retrieval for every Table if the item exists there already - otherwise it'll cause error - furthermore you can shorten those 8 variables to 3 in total actually :)

    And please change the 'SRO_VT_SHARD_INIT' into 'SRO_VT_SHARD' that's the common name for the DB.

    Anyway nice work ^^

  3. #3
    Account Upgraded | Title Enabled! SL1MSH4DY is offline
    MemberRank
    Dec 2011 Join Date
    USALocation
    418Posts

    Re: [Release] Add Item to NPC

    Wow great job. Do you think this will work with adding white wolf to npc?
    Posted via Mobile Device

  4. #4
    Valued Member Hean is offline
    MemberRank
    Sep 2011 Join Date
    126Posts

    Re: [Release] Add Item to NPC

    Quote Originally Posted by Caipi View Post
    You cud add a retrieval for every Table if the item exists there already - otherwise it'll cause error - furthermore you can shorten those 8 variables to 3 in total actually :)

    And please change the 'SRO_VT_SHARD_INIT' into 'SRO_VT_SHARD' that's the common name for the DB.

    Anyway nice work ^^
    I'm still a n00b with mssql and don't messed that much with the syntax now. but feel free to edit it :P

  5. #5
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: [Release] Add Item to NPC

    good job hean

  6. #6
    #Yummi.sql Caipi is offline
    MemberRank
    Sep 2011 Join Date
    GermanyLocation
    403Posts

    Re: [Release] Add Item to NPC

    http://forum.ragezone.com/f722/relea...21/index2.html Look at my second last post :) just to emphasize what I mean, it's nice anyway ^^

  7. #7
    Account Upgraded | Title Enabled! Larkon is offline
    MemberRank
    Jun 2008 Join Date
    258Posts

    Re: [Release] Add Item to NPC

    Truly nice job Hean

  8. #8
    Account Upgraded | Title Enabled! RevoLand is offline
    MemberRank
    Jan 2009 Join Date
    117Posts

    Re: [Release] Add Item to NPC

    Thanks for idea :)

  9. #9
    Valued Member Hean is offline
    MemberRank
    Sep 2011 Join Date
    126Posts

    Re: [Release] Add Item to NPC

    Quote Originally Posted by SL1MSH4DY View Post
    Wow great job. Do you think this will work with adding white wolf to npc?
    Posted via Mobile Device
    Yeah but at this point you only need to add Refprice and Refshop txt and table :) Because refscrap/package are already definied.

  10. #10
    __F0X__ arabianfox is offline
    MemberRank
    Nov 2011 Join Date
    292Posts

    Re: [Release] Add Item to NPC

    thank you

  11. #11
    Apprentice Pklawz is offline
    MemberRank
    Nov 2011 Join Date
    18Posts

    Re: [Release] Add Item to NPC

    Hean;
    Y'know the table editing skill moobs and drop?

  12. #12
    Proficient Member epvp2 is offline
    MemberRank
    Oct 2011 Join Date
    163Posts

    Re: [Release] Add Item to NPC

    Super lIke

  13. #13
    (*..:: RaGeZONER ::..*) 3d2000 is offline
    MemberRank
    Nov 2011 Join Date
    462Posts

    Re: [Release] Add Item to NPC

    thxx :)

  14. #14
    Apprentice MrLo0only is offline
    MemberRank
    Dec 2011 Join Date
    10Posts

    Re: [Release] Add Item to NPC

    very nice i was working on something like that but with web application you have to make some validations first (check the item exists and enabled .. calculate the slot automatically ..) but really nice effort thank you

  15. #15
    WINNER! saufitz77 is offline
    MemberRank
    Aug 2010 Join Date
    352Posts

    Re: [Release] Add Item to NPC

    Nice :D



Page 1 of 4 1234 LastLast

Advertisement