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 07-16-2011, 01:44 PM
strider51
Sarnak
 
Join Date: Jan 2011
Posts: 77
Default Turn off the ability for mobs to summon players

Hi Guys, on my solo server I'd like to remove the mob summon from the game. Anyone know the right database entries for this ??

thanks much!
Reply With Quote
  #2  
Old 07-16-2011, 02:06 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by strider51 View Post
Hi Guys, on my solo server I'd like to remove the mob summon from the game. Anyone know the right database entries for this ??

thanks much!

Code:
UPDATE npc_types SET npcspecialattks = REPLACE(npcspecialattks, 'S', '');
Reply With Quote
  #3  
Old 03-28-2016, 08:54 PM
mutidotpaul
Fire Beetle
 
Join Date: Apr 2013
Location: United States
Posts: 5
Default

Sorry to raise the dead thread, but I tried this earlier and mobs in Kael are still summoning.

I tried to check and see (pretty sloppy, i know ):
Code:
SELECT * FROM npc_types WHERE npcspecialattks LIKE 's'
SELECT * FROM npc_types WHERE npcspecialattks LIKE 's%'
SELECT * FROM npc_types WHERE npcspecialattks LIKE '%s'
SELECT * FROM npc_types WHERE npcspecialattks LIKE '%s%'
if any were left after running the query:
Code:
UPDATE npc_types SET npcspecialattks = REPLACE(npcspecialattks, 'S', '');
, and oddly enough only a frost giant scout had it set.

After making sure none had it set, and after killing all the server processes and restarting them, and then closing my client and reopening, mobs still seem to summon.

Ok - I'm starting to see why

http://wiki.eqemulator.org/p?NPC_Special_Attacks
Changelog from 07/11/2013 -- npcspecialattks field was removed and a new field special_abilities was added. Not removing legacy information, for those that have not updated their DB yet.

So if the 1st number in the example (1,1,2,10000,90) indicates whether a mob can summon or not, how would one go about setting the 1st character in the field to 0 on all mobs?

...

Was able to knock em all out using this:

Code:
update  npc_types
set     special_abilities = '0,' + substring(special_abilities, 2, length(special_abilities)-2)
where   special_abilities like '1,%';
and it seems to work - no more summoning mobs so far!

Not quite sure how it works, but I found an example of the usage and just tailored it a little. Very much new to SQL still.
Reply With Quote
  #4  
Old 03-28-2016, 09:35 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Yes, there was a major change months (8++) back on special attacks. Looks like you got it though.
Reply With Quote
  #5  
Old 05-16-2018, 08:09 PM
Chakan
Fire Beetle
 
Join Date: Dec 2012
Location: Tn
Posts: 1
Default This doesnt work for me

Hello,
I'm dying to rid my little server of the scourge that is chain NPC summon but this code:

"update npc_types
set special_abilities = '0,' + substring(special_abilities, 2, length(special_abilities)-2)
where special_abilities like '1,%';"

doesn't work. I get an SQL error truncated incorrect double value '0'.

Any help would be greatly appreciated,
Reply With Quote
  #6  
Old 05-16-2018, 09:12 PM
GRUMPY
Discordant
 
Join Date: Oct 2016
Posts: 445
Default

Remove the 0, from set special_abilities = '0,' so you just use ' ' (like below).
Works, removing over 4K entries :P

Code:
update npc_types set special_abilities = '' + substring(special_abilities, 2, length(special_abilities)-2) where special_abilities like '1,%';
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 12:43 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3