EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=616)
-   -   LDON vender spawn (https://www.eqemulator.org/forums/showthread.php?t=12718)

coregamer10 03-28-2004 01:09 PM

LDON vender spawn
 
How do spawn a LDoN vender??

nilar 03-28-2004 03:30 PM

You mean an Adventure Merchant im assuming? I don't think this is possible yet since it is hard coded into source but I could be wrong.

Shadow-Wolf 03-28-2004 03:40 PM

nilar i think they do work, they use the same thing as a merchant id like merhcnat id could have this:
Nilarian dagger
Nilly blade
nilarian staff
Shadow-wolean bastard sword
say all items named after you were ldon cat 1 and the shadow wolf one was number 2, if it was a category(SP) 1 merchant it would only sell your items.
but im net too sure heh.

nilar 03-28-2004 04:13 PM

Yeah that would work but I think he is talking about buying things with adventure points like in EQlive. And since the LDON Adventures are like quests and not in code I dont think it would work with Adventure points unless he fixed the code himself.

codemonkey 03-29-2004 05:28 AM

Nilar is correct. There is coding involved (adding a tracking table for characters and thier ldon points, some database.cpp routines that actually retrieve and store the point data, and changes to client_process.cpp to refresh the ldon struct with that players points). We have LDoN merchants workin on the Lucid Vision PvP Server.

In a nutshell:

LDoN Merchants are class 61. So you can spawn them by doing a :

#spawn Mookie 1 65 3 10000 1 61 0 0 15

(don't spawn him just yet, set up his merchant items first - the merchant id just has to be an id that is not being used by a regular vendor - pulled that number out of thin air)

Notice the spawn has been given class #61, and Merchant ID #15
61 is the LDoN merchant class ID. 15 is his merchant ID. GO to the merchantlist table in your EQ database and add some entries for your ldon merchant so he actually has Phat l3wt to sell.

Entered values are merchantid, slot, and item id respectively
Code:

insert into merchantlist values (15, 1, 1001);
insert into merchantlist values (15, 2, 1002);
insert into merchantlist values (15, 3, 1003);

Now to set those item prices...

The ItemEditor (forget what version im using but it's the older one 1.7 i think) shows LDON points in the upper right corner. This is a misnomer. Below that field there is a field named "098:" thats the one to add an ldon merchant price for these items (not sure about the latest and greatest version but in the version im using , thats where ldon prices go). Find items 1001, 1002, and 1003 (or whatever item you entered into that merchant list) and set ldon vendor prices for them.

Go to the NPC_Types table and find your merchant (assuming you "created" and "added" him to your spawn tables - there are plenty of How TO #Spawn threads if you have questions go there). Update Mookies npc_types record -- put 15 in his "MerchantID" column.

Run your server.
Inspect your merchant, or spawn and inspect him. To buy your item for test purposes give yourself a few thousand LDoN adv points.

Target yourself, type GM command #setldonpoints (sorry i forget actual command name - last command in #help if your a GM with 200 status -- forgive me im at work and can't remember the command off the top of my mellon). Give yourself 2000 ldon points and go shopping.

This is all good - but as soon as you log out and in you won't have any points - because the functionality for tracking and refreshing those points is not in the code / database by default.

Anywhoo - this is all pretty worthless unless you're selling high end gear for pvp points, updating a characters pvp points in the kill code, and refreshing the ldon structure with spent points / current points / etc. For non PvP servers I imagine you'd want to have quest NPC give people LDoN points (that would be pretty cool actually) but it's still going to require some c++ coding and a little database work on your part to manage the point awarding, spending, tracking, etc.

As I said, we'll be releasing our 5.5DR1 code fixes (too many to mention - really), database, server rules description, and full source that should answer any and all LDoN merchant questions and provide necessary code / tables here in a week or so - once we pound out a few more bug fixes - so hang tight.

______________________________
(Closed Beta) Lucid Vision PvP Server
Ghecko the Vanquisher (65 monk - Rallos Zek)
"Any man can die for Jesus. We kill for him."
http://www.lucid-vision.org


All times are GMT -4. The time now is 01:39 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.