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 02-15-2016, 01:31 PM
Slaymore
Fire Beetle
 
Join Date: Nov 2007
Posts: 21
Default Query to remove summoning

HI,

I can not wrap my head around the query I need to remove just the 1,1^ from the special_abilities entries..

running this:

SELECT * FROM npc_types WHERE special_abilities like "1,1^%";

gets me 1702 entries .. i suppose I could manually remove the 1,1^ from the front of them all.. but hoping there is a sql command that can automate it ..
Reply With Quote
  #2  
Old 02-15-2016, 03:31 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

It's gonna be tricky...

Code:
SELECT `id`, REPLACE(`special_abilities`, '1,1^', '[DELETED]^') FROM `npc_types` WHERE `special_abilities` LIKE '1,1^%' UNION ALL
SELECT `id`, REPLACE(`special_abilities`, '1,1', '[DELETED]') FROM `npc_types` WHERE `special_abilities` LIKE '1,1'
ORDER BY `id`
Looking at `id` 21164, you can see a false hit.

That means that the criteria has to be perfect or you will corrupt your entries.


It can be done..but, it'll take a little more thought than I can put into it atm.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 02-15-2016, 04:32 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

This looks like the right criteria:
Code:
SELECT `id`, CONCAT('[DELETED]^', (SUBSTR(`special_abilities`, 5))) FROM `npc_types` WHERE LEFT(`special_abilities`, 4) LIKE '1,1^' UNION ALL
SELECT `id`, REPLACE(`special_abilities`, '1,1', '[DELETED]') FROM `npc_types` WHERE `special_abilities` LIKE '1,1'
ORDER BY `id`
Haven't checked for '1,1' not being at the beginning, though.


EDIT: Adding..
Code:
SELECT `id`, `special_abilities` FROM `npc_types` WHERE `special_abilities` LIKE '%^1,1'
..didn't produce any additional results.
__________________
Uleat of Bertoxxulous

Compilin' Dirty

Last edited by Uleat; 02-15-2016 at 04:44 PM..
Reply With Quote
  #4  
Old 02-17-2016, 03:43 PM
Slaymore
Fire Beetle
 
Join Date: Nov 2007
Posts: 21
Default

Thank you very much. I think this will help others as well. When I was searching for information on this I ran across a few posts regarding changing special attacks.


Little side story.. After getting rid of summoning I just so happened to go to Qvic and hit some named to see how my tweaks were working out.

Iqthinxa_Karnkvi spawns 3 adds that have to be taken down within 10% hp of each other... Needless to say I had no idea what was happening when I was slaughtered over and over lol .. looking in the script I see that it sets special attacks like summoning and rampage and other special attacks that eat me lol.

So just fyi if you happen to make some changes to special attack and it doesnt seem to be working.. check the script!! lol
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 05:11 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