Ok, I haven't seen any guides on how to do this so I figured that I'd make my own:
Let's Begin:
Files you will need:
DBCutil:Link
What this program does: basically converts DBC files into CSV files (and back again) for editing purposes. (credits go to nneonneo for making this program)
CSVed:Link
What this program does: allows you to edit and save CSV files.
Ok, now that you've downloaded those files, extract the DBCutil.rar to wherever you will remeber where it is, and install CSVed.exe\
STEP 1: Go and find the id of the token/event coin/etc... using Navicat etc... mine was 35091
STEP 2: Go into where your private server files are (pretty much ascent core, where you ascent and logonserver conf files are) and find the folder called "DBC"
STEP 3: In that folder locate and find the file called ItemExtendedCost.dbc, now copy and paste that file into the DBCutil folder.
STEP 4: DRAG the ItemExtendedCost.dbc file over to the file called DBCutil (it will be an application file). A window will come up, do something and then close (this is the conversion process). You will now see a new file has been created and is also called ItemExtendedCost.dbc (if you have MS Excel it will look like and excel file, please don't open it)
STEP 5: Open up CSVed and go to file, then open and select the newly created file in the DBCutil folder. NOTE: in the name it will be ItemExtended Cost.dbc but it is actually a .csv file, its just the name that might screw you up when looking for it in the DBCutil folder.
STEP 6: You will now see something similar to a table in Navicat appear. Scroll down to the bottom, right click and a drop down menu should appear. Select 'add record'. A new window will open up.
This is what you type in those fields:
Code:Column 1: The Entry ID, pick one that is not used already (try something higher than 3000) Column 2: 0 Column 3: 0 Column 4: The ID of your token/event coin etc... mine was 35091 so I type that here. Column 5: 0 Column 6: 0x0 (I don't know why it's like that, but it looks like some Hex. numbering, but you don't need to know that :p) Column 7: leave blank. Column 8: leave blank. Column 9: This is the amount of tokens/event coins that is required to purchase an item (ex. I made a custom item and I want it to cost 150 tokens, so I type 150 here) Column 10-14: all 0 and leave Column 15 blank.
STEP 7: Now go to file, scroll down and press Save (or you can do Ctrl+S)
STEP 8: Remember that ItemExtendedCost.dbc file that you copied and pasted into the DBCutil folder? Delete it.
STEP 9: In your DBCutil folder, drag and drop that ItemExtendedCost.dbc that looks like a MS Excel file over to the DBCutil application. Again, a window will appear with some text and close briefly. You will now see a new file created. This is your ItemExntendedCost.dbc that looked like a MS Excel file but it is now actually a .dbc file!
STEP 10: Ok, copy that file that was created and paste it into the DBC folder where your core files are and overwrite the old one (It will most likely ask you if you want to overwrite the old one, press yes)
STEP 11: Now all thats left to do is go into Navicat/etc.. and go into the table called items, find the item that you want to cost tokens/event coins. Scroll over to the column called ItemExtendedCost and type in the number that you chose back in step 6 for Column 1.
CONGRATS! You can now go and check in game if this was done successfully. You should now not be able to purchase that item
unless you have the correct number of tokens/event coins that you specified back in step 6 for Column 9.
*NOTE* I'm aware that ingame it doesn't show you how many tokens/coins/etc..
are needed, but you could edit the item in the yellow text area to say "Costs x Tokens" or something like that!
Hope this helped you out and if you run into any problems just ask here and I'll do my best to help you. :wave: