Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2012, 10:15 AM
Born2rot
Fire Beetle
 
Join Date: Apr 2010
Posts: 16
Default 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
Reply With Quote
  #2  
Old 03-27-2012, 04:40 PM
Harcourt
Sarnak
 
Join Date: Jul 2011
Posts: 33
Default

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.
Reply With Quote
  #3  
Old 03-27-2012, 04:58 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

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.
Reply With Quote
  #4  
Old 03-27-2012, 05:48 PM
Born2rot
Fire Beetle
 
Join Date: Apr 2010
Posts: 16
Default

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.
Reply With Quote
  #5  
Old 03-27-2012, 08:49 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 04-03-2012, 12:45 AM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

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)
Reply With Quote
  #7  
Old 04-07-2012, 10:22 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default 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.
Reply With Quote
  #8  
Old 04-08-2012, 12:30 AM
Born2rot
Fire Beetle
 
Join Date: Apr 2010
Posts: 16
Default

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.
Reply With Quote
  #9  
Old 04-08-2012, 03:32 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by Born2rot View Post
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.
Reply With Quote
  #10  
Old 10-08-2013, 03:07 PM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default

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
Reply With Quote
  #11  
Old 10-08-2013, 03:58 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by kimura View Post
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
Reply With Quote
  #12  
Old 10-08-2013, 04:19 PM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default

thanks a lot akkadius! got that much working, now working to figure out the unknown string part... :P
Reply With Quote
  #13  
Old 10-08-2013, 04:48 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Where are you seeing unknown strings? It could be dbstr_us related, possibly.
Reply With Quote
  #14  
Old 10-08-2013, 04:52 PM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default

yes, it was dbstr_us, just fixed it :P
Reply With Quote
  #15  
Old 10-08-2013, 04:56 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Okay, that's good.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:18 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3