Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2013, 02:10 PM
vkrr
Sarnak
 
Join Date: Mar 2013
Posts: 65
Default disabling journeyman mercs

Hey, I am trying to disable journeyman mercs.

This is my fake sql / what I intend to do

Code:
select * from merc_npc_types where proficiency=2 (or name like '%journeyman%')
out of that subset compare  merc_npc_types.merc_npc_type_id to merc_templates.merc_template_id
if they match set merc_templates.clientversion=1024
my SQL scripting ability is miserable. I know this isn't right but I can't quite get it.
Code:
update merc_templates set clientversion=1204 where 


merc_npc_types.merc_type.id
from
  merc_npc_types
left outer join
  merc_templates
on
 merc_npc_types.merc_type.id = merc_templates.merc_template_id
where
   merc_npc_types.proficiency=2



or I could do this but it still doesnt set it in the merc_template section

Code:
update merc_types set clientversion=1024 where proficiency_id=2;
Reply With Quote
  #2  
Old 03-27-2013, 01:56 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

This should work.

Code:
UPDATE merc_templates SET clientversion = 1024 
WHERE merc_npc_type_id IN 
    (SELECT merc_npc_type_id FROM merc_npc_types WHERE proficiency_id = 2)
Reply With Quote
  #3  
Old 03-27-2013, 08:18 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

As mercs are finished up, I think it would be great to have a rule implemented to give a max merc available or something similar
Reply With Quote
  #4  
Old 03-28-2013, 12:17 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Seems reasonable.
Reply With Quote
  #5  
Old 03-28-2013, 08:07 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

Quote:
Originally Posted by bad_captain View Post
Seems reasonable.
Obviously not live like, but would be an awesome tool for custom servers to be able to unlock mercs or limit them in various ways.

In fact a single rule would probably be enough as we already will have to implement a method of granting them only from quest reward. So a rule to change the default mercs from available to quest reward would handle it.

Or something like that.
Reply With Quote
  #6  
Old 03-28-2013, 10:53 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Yeah, they are set up to allow for quest enabling (live-like), it's just not coded yet ( it's available in the database). But a rule to allow or disallow wouldn't be bad.
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 11:12 AM.


 

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