NPC Shop !!!

Results 1 to 6 of 6
  1. #1
    Valued Member mafya077 is online now
    MemberRank
    Apr 2014 Join Date
    CabalOnlineLocation
    116Posts

    ! NPC Shop !!!

    Hi;

    I Have A Question About Npc Shop.

    How can I add a new payment method to purchase an item?

    What I'm trying to do is to exchange a item for another item.

    Like Database Event System.


  2. #2
    Proficient Member HariSeldon is offline
    MemberRank
    Oct 2019 Join Date
    189Posts

    Re: NPC Shop !!!

    You can set the key to open the box - it is assigned in item.enc/item.scp (Look at the example of a chaos lamp). Or use Event data.

  3. #3
    Valued Member mafya077 is online now
    MemberRank
    Apr 2014 Join Date
    CabalOnlineLocation
    116Posts

    ! Re: NPC Shop !!!

    I mean, how can I buy a item I want for another item.
    Attached Thumbnails Attached Thumbnails eventdata.png  

  4. #4
    Proficient Member HariSeldon is offline
    MemberRank
    Oct 2019 Join Date
    189Posts

    Re: NPC Shop !!!

    Code:
    [EventData].[dbo].[cabal_ems_event_npcitemshop_itemprice_table]
    ItemPriceID in cabal_ems_event_npcitemshop_table = ItemPriceID in cabal_ems_event_npcitemshop_itemprice_table

  5. #5
    Valued Member mafya077 is online now
    MemberRank
    Apr 2014 Join Date
    CabalOnlineLocation
    116Posts

    ! Re: NPC Shop !!!

    I saw this, I don't know how to set up npc shop.spc in this style...
    Attached Thumbnails Attached Thumbnails npcshopspc.png  

  6. #6
    Proficient Member HariSeldon is offline
    MemberRank
    Oct 2019 Join Date
    189Posts

    Re: NPC Shop !!!

    Code:
    [EventData].[dbo].[cabal_ems_event_npcitemshop_table]
    EventID    WorldIdx    NpcIdx    SlotIdx    ItemKindIdx    ItemOption    ItemDurationIdx    PriceAlz    PriceItemKindIdx_deleted    PriceItemOption_deleted    PriceItemCount_deleted    PricePoint_deleted    PriceCash_deleted    ItemPriceID    id    PricePoint
    1    3    49 0 1214 0    0    10000 NULL    NULL    NULL    NULL    NULL 1 NULL 0
    
    [EventData].[dbo].[cabal_ems_event_npcitemshop_itemprice_table]
    ItemPriceID    ItemKindIdx    ItemOption    ItemCount
    1    9    0    10
    
    [EventData].[dbo].[cabal_ems_event_npcitemshop_uistyle_table]
    eventID    uiStyle
    1    3
    
    [EventData].[dbo].[cabal_ems_event_npcitemshopname_table]
    EventID    CollectinName
    1    Cool Shop
    
    [EventData].[dbo].[cabal_ems_event_npcscript_table]
    EventID    WorldIdx    NpcIdx    Script1    Script2    Script3    Script4    Script5    ScriptDesc
    1    3    49 Open Cool shop    NULL    NULL    NULL    NULL    NULL
    
    [EventData].[dbo].[cabal_ems_event_serial_table]
    EventID
    1
    
    [EventData].[dbo].[cabal_ems_event_table]
    EventID    EventType    BeginDate    EndDate    LastModifiedDate    UseFlag    Name    LogMessages    worldIndex    npcIndex    Option
    1    2    2020-06-01 00:00:00.000    2030-06-01 00:00:00.000    2020-06-01 00:00:00.000    1    Cool shop    NULL    3    49 2
    Like that. Some of the values and even the number of columns may not match yours, but in general you can experiment based on this. Search this forum for information on Event data - it will help you understand.



Advertisement