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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:30 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3