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 06-06-2007, 01:04 PM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default Changing special attacks quickly

Could anyone here help me out with the proper syntax for use in the query browser for turning on and off individual special attacks for the entire database?

I would like to disable summoning and fleeing and make nothing immune to snare or charm. so I need to turn off/remove S C and I and turn on/insert f.

I am looking to do this to all of the npc's in my database but wouldn't mind learning a few ways to do things like this on a conditional basis IE for creatures of a certain level range of faction.

thanks in advance

-sprig
Reply With Quote
  #2  
Old 06-06-2007, 01:57 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,448
Default

Think this would be it...

Code:
UPDATE `npc_types` SET `npcspecialattks`='F' WHERE `level` > 35 AND level < 65
Would set the flag 'F' in the field `npcspecialattks` where the level is 36-64.
Reply With Quote
  #3  
Old 06-06-2007, 02:24 PM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default

I did some testing with that syntax, it replaces the entire string which isnt exactly what I was looking for but still saved me a ton of time since with some minor changes It allowed me to at least make all npcs with no special attacks immune to fleeing. turning off the for summon charm and snare wont be nearly as bad to do manually as turning on the one to prevent fleeing for the thousands of fields that are in that table.

-thanks
Reply With Quote
  #4  
Old 06-07-2007, 03:46 AM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,475
Default

I don't have a one line solution either. There's a way with PLSQL i'm told, but the way I do this is with vb code. If you want I can write something fast to do this later in VB


GeorgeS

__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
  #5  
Old 06-07-2007, 04:24 AM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default

That would be great. I have my special attacks set the way i want them for now but will likely be needing to do similar changes in the future in other areas.

-sprig
Reply With Quote
  #6  
Old 06-07-2007, 10:58 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

Quote:
Originally Posted by Secrets
Think this would be it...

Code:
UPDATE `npc_types` SET `npcspecialattks`='F' WHERE `level` > 35 AND level < 65
Would set the flag 'F' in the field `npcspecialattks` where the level is 36-64.
mysql supports a concat function, you might be able to use something like:

Code:
UPDATE `npc_types` 
        SET `npcspecialattks`= concat( `npcspecialattks`, 'F' ) 
        WHERE `level` > 35 AND level < 65 
        AND `npcspecialattks` not like '%F%'
Reply With Quote
  #7  
Old 06-07-2007, 02:12 PM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,475
Default

Ok here's a zip of the program that does this

http://66.159.225.58/eqemu/special_attacks_mod.zip


GeorgeS
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
  #8  
Old 06-08-2007, 11:58 AM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default

thank you for the tool =)
-sprig
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:31 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