Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2011, 02:37 PM
Chanus
Hill Giant
 
Join Date: Oct 2010
Posts: 123
Default

Oh, you mean like what determines the price of anything?

I would guess it was just mined off Lucy ( lucy.allakhazam.com )
Reply With Quote
  #2  
Old 01-11-2011, 02:50 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Okay I will start to reference Lucy's to see what is off. Wonder if it was done with a PERL CGI script and if someone still has it ?
Reply With Quote
  #3  
Old 01-11-2011, 03:01 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

I think Cavedude just periodically downloads the items database from 13th floor and imports it into PEQ.

http://eqitems.13th-floor.org/

The item DB (as a delimited text file) is under the downloads link.
Reply With Quote
  #4  
Old 01-11-2011, 03:04 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I have been visiting their site, but did not notice they had downloads.....cool stuff.
Reply With Quote
  #5  
Old 01-11-2011, 07:10 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

Quote:
If all else fails I could rather easily just do this. Set up a spawn point, make that spawn point randomly spawn maybe 10 vendors, each with a 10 percent chance of being spawned. Each vendor has different items. The vendors have player names instead of npc names, makes it more real. Have them do random calls, at random times. This would give an element of randomness. That vendor stays there for an amount of time then despawns at a random time, then it repeats. Do this for maybe 50-100 spawn points would be a start. It is not what I want though. What I actually want are the items randomly generated. As far as getting the items in the database and random items that seems easy with MySQL DBI statements in the vendor Perl file. It is getting that NPC to do the trader things I am getting stuck at.
The idea of an auction bot is attractive to most players, your version of it though I'm not sure(not sure how random items play into an auction bot). While this may be possible using only Perl, I think the more elegant solution is going to involve more C++ than Perl.

Derision only said that currently its not possible for the bazaar code to handle NPCs, without ever having looked at the code I wonder if making it recognize NPCs is not the best way to go in this situation. In this case I think the NPC is little more than visual placeholder, would have to track the items for sale more reliably than in a bag on an NPC.

I envison it more like walking up to a generic NPC and purchasing a place in the bazaar, this would copy the look and name of your character onto that NPC and load any previous items you had for sale into his inventory. Then by giving him items, he writes those to the db and updates his list. Clients can then use the bazaar window to search for items as they would if the player was in zone as well. If it got paired up with the barter window as well, might be able to do the reverse and have roving NPC buyers who buy things for their clients as they are put up for sale.

Without using any c++ I think the best you could do is have the NPCs /auc items, then when players hail the NPC they are given a list of saylinks of the items for sale with prices. If they have enough plat when they click the desired link, it removes the plat from their char, deletes the item from the sellers db and then summons one to their cursor.
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 12:48 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3