Adding Crimson Ring To Data Base

Results 1 to 7 of 7
  1. #1
    Valued Member Acardia is offline
    MemberRank
    Jan 2011 Join Date
    129Posts

    Adding Crimson Ring To Data Base

    Can anyone tell me how i can add the crimson ring to my data base so i can use give item to get it also on the sets.iff is it possible to put a whole set on the shop by hexing that file...


  2. #2
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    Re: Adding Crimson Ring To Data Base

    You can easily add the Crimson Ring with the following query:

    Spoiler:

    Code:
    USE [Pangya_S4_TH]
    GO
    
    IF EXISTS ( SELECT TYPEID FROM PANGYA_ITEM_TYPELIST WHERE TYPEID = 1879113856 )
    BEGIN
       UPDATE PANGYA_ITEM_TYPELIST
       SET NAME = N'Crimson Ring'
       , ICON = N''
       , PRICE = 1000
       , ISCASH = 0
       WHERE TYPEID = 1879113856
    END
    ELSE
    BEGIN
       INSERT INTO PANGYA_ITEM_TYPELIST
       ( [TYPEID], [NAME], [ICON], [PRICE], [ISCASH] )
       VALUES ( 1879113856, N'Crimson Ring', N'', 1000, 0 )
    END
    
    GO


    As for the clubsets: If they are already defined in the IFF file, all you need to do is change their shop properties (and set the item to active if it isn't). You can get the necessary offsets from chreadie's IFF thread in development.

    Edit: Oopsie, edited the query to add the missing name value.
    Last edited by Tsukasa; 21-01-11 at 12:49 PM.

  3. #3
    Apprentice shadowsfx is offline
    MemberRank
    Jun 2009 Join Date
    20Posts

    Re: Adding Crimson Ring To Data Base

    since im interested in this too i tried it but it didn't work. i got this error from sms:

    Msg 109, Level 15, State 1, Line 13
    There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
    after that i added the item manually to the account and it worked.
    Last edited by shadowsfx; 21-01-11 at 03:13 AM.

  4. #4
    Proficient Member bubbastic is offline
    MemberRank
    Nov 2010 Join Date
    WindHillLocation
    181Posts

    Re: Adding Crimson Ring To Data Base

    You got this error because the 'name' value is missing in the INSERT command. Just add it to the previous query like this :

    INSERT INTO PANGYA_ITEM_TYPELIST ( [TYPEID], [NAME], [ICON], [PRICE], [ISCASH] )
    VALUES ( 1879113856, N'Crimson Ring', N'', 1000, 0 )


    Then you won't get the error again o.O

    Next time just look XD : 5 columns and 4 values and read carefully the error messages that say that the numbers of colums and values don't match XD
    Last edited by bubbastic; 21-01-11 at 12:23 PM.

  5. #5
    Apprentice AznSW is offline
    MemberRank
    Jan 2011 Join Date
    17Posts

    Re: Adding Crimson Ring To Data Base

    Do you happen to have the item ID for Hybrid ring too? :) thanks

  6. #6
    Deny everything. Tsukasa is offline
    MemberRank
    Jun 2005 Join Date
    Net SlumLocation
    558Posts

    Re: Adding Crimson Ring To Data Base

    You can use chreadie's FileXplorer to look up the ID yourself.

  7. #7
    Proficient Member boomboom is offline
    MemberRank
    Mar 2004 Join Date
    175Posts

    Re: Adding Crimson Ring To Data Base

    Spoiler:

    Code:
       INSERT INTO PANGYA_ITEM_TYPELIST
       ( [TYPEID], [NAME], [ICON], [PRICE], [ISCASH] )
       VALUES ( 1879113739, N'Mystic Ring', N'', 1000, 0 )
       VALUES ( 1879113744, N'Hybrid Ring', N'', 1000, 0 )
       VALUES ( 1879113745, N'Promise Ring', N'', 1000, 0 )
       VALUES ( 1879113856, N'Crimson Ring', N'', 1000, 0 )
       VALUES ( 1879113858, N'Ultimate Ring', N'', 1000, 0 )
    Last edited by boomboom; 04-02-11 at 08:55 AM.



Advertisement