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 04-29-2012, 06:00 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

You should probably do a query with what you think you want to change and look at the results to make sure there's nothing in it you don't want to change first.

Something like this:
Code:
SELECT `id`,`name`,`hp` FROM `npc_types` WHERE `level` = 50 && `merchant_id` = 0 && `name` NOT LIKE "Guard%" AND `id` NOT IN (SELECT `npcid` FROM `pets`) ORDER BY `hp` DESC;
It looks like you might want to exclude Priest of Discord, some bankers, maybe the defenders, boats, spires, bouncers, etc. You could probably limit it to not change anything over a particular hp value except there's some fabled mobs mixed in with the high hp stuff that you might want to change. *shrug*

The method I used to exclude pets is exact but a little less efficient that the id range. It also may not be what you want since there's a few NPC pets "#Pixtt_%" in the table that would get skipped. My pet table appears to have all of the player pets in the range of 500 to 685, but my database is a little old. You can check yours like this:

Code:
SELECT `type`,`npcid` FROM `pets` ORDER BY `npcid` DESC;
There's not that many, so you can just scroll through the list and see where to start and stop, or if there are any you do want to reduce in that range. I'm not entirely sure how some of them are summoned.
Reply With Quote
  #2  
Old 04-30-2012, 10:40 PM
reddogut
Sarnak
 
Join Date: Jun 2007
Posts: 83
Default

I wanted to take a moment and thank everyone for helping me with my mysql questions.... Now, how about this one?

When I run

UPDATE npc_types SET STR = AVG(STR) WHERE LEVEL = 50;

I get a MYSQL error 1111, invalid use of group function

I scoured the internet to try to figure out why and I can't seem to find it.

Thanks again,

Mike
__________________
-Red Dog
My Windows Server install guide - http://www.eqemulator.net/wiki/wikka.php?wakka=Windows
My guide for configuring a solo-able server - http://www.eqemulator.net/wiki/wikka.php?wakka=How
Reply With Quote
  #3  
Old 04-30-2012, 11:14 PM
Raewan
Fire Beetle
 
Join Date: Apr 2012
Posts: 4
Default

Quote:
Originally Posted by reddogut View Post
I wanted to take a moment and thank everyone for helping me with my mysql questions.... Now, how about this one?

When I run

UPDATE npc_types SET STR = AVG(STR) WHERE LEVEL = 50;

I get a MYSQL error 1111, invalid use of group function

I scoured the internet to try to figure out why and I can't seem to find it.

Thanks again,

Mike

instead of LEVEL , make it `LEVEL`, its looking at the word level like a command not a column name so you have to surround it with the grave accent (backtick) symbol.
Reply With Quote
  #4  
Old 04-30-2012, 11:57 PM
reddogut
Sarnak
 
Join Date: Jun 2007
Posts: 83
Default

Tried that... no joy.
__________________
-Red Dog
My Windows Server install guide - http://www.eqemulator.net/wiki/wikka.php?wakka=Windows
My guide for configuring a solo-able server - http://www.eqemulator.net/wiki/wikka.php?wakka=How
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 10:25 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