Moderator
Staff member
Moderator
- Joined
- Aug 27, 2013
- Messages
- 802
- Reaction score
- 1,989
I will try to explain as much server files to my knowledge as I possibly can, there will be mistakes and untested options (few of those), but people asking the most basic things in the past few months now encouraged to do this, so will try to do this as best to my knowledge as I can. Any corrections are welcome and I will update this thread with them.
Description:
This file is responsible for all (non event) NPC Shop contents, pricing, window display allocation and etc. It is quite self explanatory and very easy to understand and experiment (in case if you don't), but there are still people out there who either refuse to learn by themselves or those who are curious and would like to understand a bit of a structure of the files and what they do or are responsible for.
[File location: /etc/cabal/data/]
File has 3x sections, which are as follows:
(This section is usable only for those who have multiple Worlds in your servers, if you only have 1 World and multiple channels, leave this section alone.)
[Server] - Row number.
Server_Index - World ID number.
[Lets say you have YourServerWorld which is number 1 as default, if you make more Worlds, it will have different IDs and by that, this file will know which NPC shops links to which world.]
Shop_ID - Number that links to a Shop_ID in 2nd section and lets server select which NPCs are usable in which worlds.
[Example: You have 4x Worlds and got 4x different IDs for each of them. You want to make unique shop for your world number 3, so once set to number 3 in this section and 2nd one, the shops will be different for the World 3.]
[NPC] - Row number
Shop_ID - Number that select which World that NPC is set to.
World_ID - This is your Map ID.
[Can be found in cabal_msg.dec, example: World1 Bloody Ice - which means it's No. 1]
Order - Order ID to make sure that the NPCs in the map are not duplicating shop contents and links correctly. Guessing that it works like separator of some sort. (Not related to worldX-npc.scp)
NPC_ID - This is your NPC ID set in Data_World folder-> worldX_npc.scp ; extra_object.enc and cabal.enc [Refer to guide above]
Pool_ID1 - This is a linking of the content from Section 3 to actual in game NPC Shop "General" window. (Refer to the spoiler image below)
Pool_ID2 - This is a linking of the content from Section 3 to actual in game NPC Shop "ItemShop" window (Refer to the spoiler image below)
Yes, you can make on each NPC different contents inside both of the windows and it doesn't have to be N shop always in "ItemShop" section.
[Shop] - Row number.
Pool_ID - A number that links a full content of the shop to specific location in the above section. (refer to Pool_ID1 and Pool_ID2)
SlotID - NPC window slots ID number. (Refer to the image in the spoiler)
ItemKind - Item ID (cabal_msg.enc item list)
(Example: Item1 Upgrade Core (High) = Item ID is 1)
ItemOpt - Item Option / quantity for stackable items. (Refer to spoiler below for variety of ways to get options)
DurationIdx - Duration ID (refer to image in the spoiler)
MinLevel - Minimal level requirement to buy the item.
(Example: Set to 50, so that means no players with level below 50 an buy this item.)
MaxLevel - Maximum level required to buy the item.
(Example: Set to 50, so that means no players with level above 50 an buy this item.)
Reputation - Minimal Honor amount required to buy item.
(Example: If set to 600,000 [Class rank 7], players with honor rank lover than 7 will NOT be able to buy the item.) (Refer to image in the spoiler for default honor ranks for EP8)
OnlyPremium - "supposedly" premium only accounts can buy this item.
(On = 1 / off = 0) OR (Premium Service Number (located inside premium
OnlyWin - "supposedly" items can be bought by the winning Nation War nation. (Default = 0)
AlzPrice - Item price in alz amount.
WExpPrice - Item price in W.EXP (War Experience) amount.
DPPrice - Item price in DP (Dungeon Points) amount.
CashPrice - Item price in e.coins amount.
Renew - Untested option (Default = 0)
ChracterBuyLimit - Limit to buy X amount of items per character.
(Untested option)
SellLimit - "supposedly" a limit of items that can be sold per server (?) or until next server restart. (Untested option) (Default = 0)
Marker - 1 = New (N) / 2 = Hot (H) / 0 = No small icon on the item. (Refer to imagine in the spoiler)
MaxReputation - Maximum amount (Honor Rank) required to buy reputation.
(Meaning that anyone with a higher amount of Honor, than set in here, will NOT be able to buy the item.) (Refer to reputation part for the Honor Amounts and Ranks).
IMPORTANT NOTES:
If I find any other noteworthy configurations or "tricks", I will update this guide.
This tutorial is a continuation of How to add NPC and config it to work as a shop
Description:
This file is responsible for all (non event) NPC Shop contents, pricing, window display allocation and etc. It is quite self explanatory and very easy to understand and experiment (in case if you don't), but there are still people out there who either refuse to learn by themselves or those who are curious and would like to understand a bit of a structure of the files and what they do or are responsible for.
[File location: /etc/cabal/data/]
Right, lets get into it.
File has 3x sections, which are as follows:
Section 1:
Code:
[Server] Server_Index Shop_ID
[Server] - Row number.
Server_Index - World ID number.
[Lets say you have YourServerWorld which is number 1 as default, if you make more Worlds, it will have different IDs and by that, this file will know which NPC shops links to which world.]
Shop_ID - Number that links to a Shop_ID in 2nd section and lets server select which NPCs are usable in which worlds.
[Example: You have 4x Worlds and got 4x different IDs for each of them. You want to make unique shop for your world number 3, so once set to number 3 in this section and 2nd one, the shops will be different for the World 3.]
Section 2:
Code:
[NPC] Shop_ID World_ID Order NPC_ID Pool_ID1 Pool_ID2
[NPC] - Row number
Shop_ID - Number that select which World that NPC is set to.
World_ID - This is your Map ID.
[Can be found in cabal_msg.dec, example: World1 Bloody Ice - which means it's No. 1]
Order - Order ID to make sure that the NPCs in the map are not duplicating shop contents and links correctly. Guessing that it works like separator of some sort. (Not related to worldX-npc.scp)
NPC_ID - This is your NPC ID set in Data_World folder-> worldX_npc.scp ; extra_object.enc and cabal.enc [Refer to guide above]
Pool_ID1 - This is a linking of the content from Section 3 to actual in game NPC Shop "General" window. (Refer to the spoiler image below)
Pool_ID2 - This is a linking of the content from Section 3 to actual in game NPC Shop "ItemShop" window (Refer to the spoiler image below)
Yes, you can make on each NPC different contents inside both of the windows and it doesn't have to be N shop always in "ItemShop" section.
Section 3:
Code:
[Shop] Pool_ID SlotID ItemKind ItemOpt DurationIdx MinLevel MaxLevel Reputation OnlyPremium OnlyWin AlzPrice WExpPrice DPPrice CashPrice Renew ChracterBuyLimit SellLimit Marker MaxReputation
[Shop] - Row number.
Pool_ID - A number that links a full content of the shop to specific location in the above section. (refer to Pool_ID1 and Pool_ID2)
SlotID - NPC window slots ID number. (Refer to the image in the spoiler)
(Example: Item1 Upgrade Core (High) = Item ID is 1)
ItemOpt - Item Option / quantity for stackable items. (Refer to spoiler below for variety of ways to get options)
- Default stackable options are from 1 to 127.
- Epic Options for Items
- Weapon & Armor Scroll Options (Refer to your cabal.dec and cabal_msg for accurate list)
(Example: Set to 50, so that means no players with level below 50 an buy this item.)
MaxLevel - Maximum level required to buy the item.
(Example: Set to 50, so that means no players with level above 50 an buy this item.)
Reputation - Minimal Honor amount required to buy item.
(Example: If set to 600,000 [Class rank 7], players with honor rank lover than 7 will NOT be able to buy the item.) (Refer to image in the spoiler for default honor ranks for EP8)
(On = 1 / off = 0) OR (Premium Service Number (located inside premium
OnlyWin - "supposedly" items can be bought by the winning Nation War nation. (Default = 0)
AlzPrice - Item price in alz amount.
WExpPrice - Item price in W.EXP (War Experience) amount.
DPPrice - Item price in DP (Dungeon Points) amount.
CashPrice - Item price in e.coins amount.
Renew - Untested option (Default = 0)
ChracterBuyLimit - Limit to buy X amount of items per character.
(Untested option)
SellLimit - "supposedly" a limit of items that can be sold per server (?) or until next server restart. (Untested option) (Default = 0)
Marker - 1 = New (N) / 2 = Hot (H) / 0 = No small icon on the item. (Refer to imagine in the spoiler)
(Meaning that anyone with a higher amount of Honor, than set in here, will NOT be able to buy the item.) (Refer to reputation part for the Honor Amounts and Ranks).
IMPORTANT NOTES:
- You cannot have 2 different types of prices on the item. (Example: Alz + DP.) Only 1 type of price works per item in this file.
- You cannot have items in any price types, it's only for event database (this will be in the later event explanation tutorial).
- Always keep an eye on the shop window slots (SlotID), due to items getting into duplicated slots or overclashing items. I highly recommend you to keep an eye on this if you want to make it a whole shop in one go.
- You can mix up items with different types of prices in one shop, it can be 1 item for alz, 1 for DP, 1 for W.EXP and so on.
All credits of refered threads and images goes to their respective owners/creators.
Attachments
You must be registered for see attachments list
Last edited: