Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2006, 07:14 AM
arcticangel
Fire Beetle
 
Join Date: Apr 2006
Posts: 12
Question item editing through MySql

This may sound a little stupid but is there a way to create or edit items from cmd > MySql (the source\(file)\document)? like how u edit merchant? i was just curious cuz i keep running into problems with my itemcreator software.
Reply With Quote
  #2  
Old 04-27-2006, 09:09 AM
sonicintuition
Hill Giant
 
Join Date: Jan 2005
Posts: 124
Default

I'll help with this the best I can. The most I've ever attempted is to edit existing items via the mysql command line. Here are some examples. The idea is to pick apart the examples to see why they work and how you can apply those ideas and methods for your own use.

To change the damage rating of an item, such as the Big Soul Devourer:
Quote:
UPDATE items SET damage=12 WHERE name="Big Soul Devourer";
Note that when entering mysql commands you don't have to capitalize the commands, I only do that for clarity. Okay, so UPDATE is the command that tells mysql what to do, as well as SET. What those do should be self explanatory. Actually that entire line should be pretty self explanatory, so I won't elaborate (unless you need me to).

Here is another example. You would enter this command to change the AC of all items that have an AC of 20 or less, to say, for examples sake, 45:

Quote:
UPDATE items SET ac=45 WHERE ac<=20;
Here, you're updating the items table, and you're setting AC. This command should also be self explanatory.

The above two lines of code are merely examples. This may not be anything near what you want to do, but hopefully they help you out some.

From what I understand, also, you're wanting to create items via the command line or via a text file. I would highly recommend, if you're creating items from scratch, to use a text file over the command line. Typing in a command to create an item would take a while and could get very confusing, where as using a text file would be much easier because you can go in and change numbers without typing out commands and such.

However, I would recommend a different method over both of these that works well for me - MySQL Front. It's the only editor I've found that is compatible with the database (you don't have to wait around for someone to make a version of an EQ editor that actually works, let alone with the current database), and it's pretty straight forward and easy to setup and use. I use it to edit items, loot tables, NPC stats and more. It's a versatile tool. Google MySQL front to find a version to download.

Good luck.

Regards,
SI
Reply With Quote
  #3  
Old 04-27-2006, 09:18 AM
bloodfiendserver
Sarnak
 
Join Date: Apr 2006
Posts: 33
Talking

wow that explains pretty much everything. thx
Reply With Quote
  #4  
Old 04-27-2006, 03:38 PM
paaco
Discordant
 
Join Date: Jan 2005
Posts: 320
Default

You can't edit items from it, but as far as spawns, loot, NPC's, Merchants and things like that I would definately check out the PEQ Editor, thing is great. Unless your just looking to learn a thing or 2 about sql, which would also be good
Reply With Quote
  #5  
Old 04-27-2006, 04:43 PM
klinzhai
Sarnak
 
Join Date: Jan 2006
Posts: 78
Default

I usually just use MySQLCC, select the table, click on the 'SQL' button (for sql queries). Then I enter:

SELECT * FROM 'items' where ac >= 75;

That brings me back a list of 196 items, then I can search for the item that I want. You can also do the following (if you know the name of the item):

SELECT * FROM 'items' where name = "Thick Basilisk Hide Shield";

Then you scroll over to whatever you want to edit and make it whatever you want it to be. The only bad thing about MySQLCC is that if you try to return more than a few thousand items it kinda bogs down. Even with the 1GB of RAM on my laptop.
Reply With Quote
  #6  
Old 04-28-2006, 12:14 PM
Koshoji
Sarnak
 
Join Date: Jul 2004
Location: Oregon
Posts: 69
Default

What about the whole serialization thing? Can mysql do that as well? I thought that now after editing an item in the db that it has to be "serialized" to make it take effect in the game. I was told long ago when asking about this that I had to use pearl to do that but I know nothing at all about pearl.

Soooo, is there an sql statement that will serialize our edits to items in the db?
Yours in newbness,
Koshoji
__________________
"Always move twice"
-Bruce Juchnik Hanshi
Reply With Quote
  #7  
Old 05-04-2006, 01:04 AM
hansolojim
Fire Beetle
 
Join Date: Jan 2002
Posts: 28
Default re

Thanks Sonicintuition for the info. You had exactly what I was searching for.
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 07:15 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