|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Support::Windows Servers Support forum for Windows EQEMu users. |
03-27-2012, 10:15 AM
|
Fire Beetle
|
|
Join Date: Apr 2010
Posts: 16
|
|
Alternate Currency
First off wanted to say thank you to everyone. I just started a server a couple weeks ago and the helpful info here has been amazing. It takes a bit of digging through the searches depending on what your need, but it's usually there.
I've tried to find some info on alternate currency, but it seemed pretty slim. After a bit of experimenting I actually got it to work. Made a new item to be used for the currency, added it to the db, made a merchant that uses the currency and items can be bought.
My problem is that in the alt currency tab and on the vendor where it shows you how much of it you have it's giving me a Unknown DB String 1-18. I noticed it did that to most of the currencies on the tab too. Anyone have any thoughts of how to get these to show up correctly?
Goregut
|
03-27-2012, 04:40 PM
|
Sarnak
|
|
Join Date: Jul 2011
Posts: 33
|
|
Maybe I am misunderstanding, but there are items in the database already for the alternate currencies. I don't know if they work, and would like to know myself.
But itemtype 63 has a collection of these.
|
03-27-2012, 04:58 PM
|
|
Developer
|
|
Join Date: Mar 2003
Posts: 1,497
|
|
Correct. I added as many of the alternate currency items to the PEQ database that I could find. I assume that it could be looking for the currency type in the db string. Try with the existing tokens/crystals/etc. and see if they work for you.
|
03-27-2012, 05:48 PM
|
Fire Beetle
|
|
Join Date: Apr 2010
Posts: 16
|
|
Before I started messing with things the last half of the 15 currencies that were list in the tab showed up fine and worked if I set a merchant to those. The first half showed the unknown string on them. I made my own item and put it in the db to use. I couldn't get it to work by adding it to the table so emptied the table for now just to test it. So it's on id 1.
|
03-27-2012, 08:49 PM
|
|
Developer
|
|
Join Date: Aug 2006
Location: USA
Posts: 5,946
|
|
Yeah, unfortunately most of the information the clients use for alternate currencies comes from the dbstr_us.txt file. That means you could only really add new ones by editing that file on your client as well as any clients that use them on your server. They pull info like item icon and name (IIRC) from the file, so without them in the file they give that unknown_db error. Some older clients may not have all of the newer alternate currencies in them that are in the DB, so they would show that db string error in the window.
|
|
|
|
04-03-2012, 12:45 AM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 143
|
|
I'm normally not one to post things as I am fairly new to all of this, but I figured I would lend some incite on what I have discovered dealing with the alternate currency.
To get custom items to work as currency, just add your created item into the alternate_currency table with ID starting wherever you want and then the required item_id. Then go into your npc_types table and set your created NPC to class 70 (this sets them to an alternate currency merchant) and then change their alt_currency_id to the ID of whatever you set your new custom item's ID from the alternate_currency table.
As Trevius stated above the information does come from the dbstr file. To get your alternate currency item to display correctly just go into your dbstr file scroll to whatever you set the ID to and add in a new line. The value for the alternate currency is 18. I created a new currency with ID of 1 so my new line would look like '1^18^Star Rubies' and then just restart your client and the Unknown Dbstr is gone and Star Rubies would appear on both the merchant and in the alt currency tab.
Great work on the development of this as this opens up so many new possibilities for the custom purchasing of gear.
-Wrath of Enlightened Dark (Soon to return to the EMU world)
|
|
|
|
|
|
|
04-07-2012, 10:22 PM
|
|
Demi-God
|
|
Join Date: Oct 2010
Posts: 1,332
|
|
Alternate Currency on Gilbot Merchants in Brells
I've been having trouble getting the alternate currency prices to show up on the list of items on the Gilbot merchants in Brellsrest. (Silver and Gold Tokens).
Everything is working in the merchant window and shows how many tokens I have available on my toon. The merchant item list shows up (Creator's Eyeglass, etc.) but all the items show 0 for a price. Using the eqitem editor, I set the price for 200 and double checked in the db and confirmed it.
The alternate currency id's have been set in the alt currency table, so not sure what I am missing here. I couldn't find anything specific to alternate currency pricing in the editor or the database tables.
QUICK EDIT Nevermind, I found the problem. The merchantlist table had a column to set the alternate currency price for each item. Its all working good now.
Just going to add some tokens to the loot tables on various mobs, since the brawl arena is not implemented.
|
|
|
|
04-08-2012, 12:30 AM
|
Fire Beetle
|
|
Join Date: Apr 2010
Posts: 16
|
|
You add the items to the merchant as a reg merchant. Then switch it over to class 70 i believe it was. Got into the merchant list table and find your merchant's id #. Just go to the row at the end for the alt currency price for each item. Will take a restart to take effect though.
edit: nm just saw your update. Too tired didn't read the whole thing.
|
04-08-2012, 03:32 AM
|
|
Demi-God
|
|
Join Date: Oct 2010
Posts: 1,332
|
|
Quote:
Originally Posted by Born2rot
You add the items to the merchant as a reg merchant. Then switch it over to class 70 i believe it was. Got into the merchant list table and find your merchant's id #. Just go to the row at the end for the alt currency price for each item. Will take a restart to take effect though.
|
Something I did learn through the whole process. I only had half the items on the merchant that I wanted on him, figuring I would finish it once I got the merchant working. After pricing the first half of items in the merchantlist table and then going back, switching the class over to 41 to add the rest of the items and then switching back to class 70, when I went back to the merchantlist table, the pricing I did before was gone. So when I did the second gold merchant, I got all the items on him before I switched him back to class 70 and then did the pricing all at once in the merchantlist table.
|
10-08-2013, 03:07 PM
|
Hill Giant
|
|
Join Date: Oct 2011
Posts: 132
|
|
for some reason I cant figure out yet, when I change my merchant to class 70, not just that merchant, but all merchants now will not respond to a right click....even the ones that that still have class 41... ugh
|
10-08-2013, 03:58 PM
|
|
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,071
|
|
Quote:
Originally Posted by kimura
for some reason I cant figure out yet, when I change my merchant to class 70, not just that merchant, but all merchants now will not respond to a right click....even the ones that that still have class 41... ugh
|
Few things:
- The alternate currency ID must exist in `alternate_currency`
- You need to have the Merchant set to class 70 in `npc_types`
- You need to set the npc_types field `alt_currency_id` to the corresponding currency that you wish to use.
- You need to set a alternate currency cost to the items that are in the merchants table
- In order to see the results of adding items to a merchant you must reload the zone
|
10-08-2013, 04:19 PM
|
Hill Giant
|
|
Join Date: Oct 2011
Posts: 132
|
|
thanks a lot akkadius! got that much working, now working to figure out the unknown string part... :P
|
10-08-2013, 04:48 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,594
|
|
Where are you seeing unknown strings? It could be dbstr_us related, possibly.
|
10-08-2013, 04:52 PM
|
Hill Giant
|
|
Join Date: Oct 2011
Posts: 132
|
|
yes, it was dbstr_us, just fixed it :P
|
10-08-2013, 04:56 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,594
|
|
Okay, that's good.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 04:18 PM.
|
|
|
|
|
|
|
|
|
|
|
|
|