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 09-29-2006, 11:25 AM
Jibbatwinkers
Sarnak
 
Join Date: May 2006
Location: Cincinnati
Posts: 73
Default SQL for Unfearable Mobs 65+

Hi other developers, Jibbatwinkers here from over at the Zebuxoruk server. Alot of the coding and development we do is pretty custom so I can't see much of it being of use. One of the great guides over at my server Validus/Lanik constructed this SQL query to help with the fear exploitation that goes on with alot of servers. He is pretty good at this stuff and I thank him very much.

This SQL query will:
Add MCND (Unmezable, Uncharmable, Unstunable, Unfearable) to all mobs 65+, feel free to modify it to whatever level you want.
This will not remove the special attacks that were there previously. First it removes all MCND or mcnd and then adds it, ensuring no duplicates.

I hope this helps, follow the instructions or your results will be very eradic. Make sure you backup your stuff first. We did it on 2 different DB's without any problems.

The following code removes existing M,C,N, or D tags (upper or lower) from all mobs 65 and above. Running these commands all at once makes only the last line take affect. You'll have to run them separately in order for them to all process.

Code:

UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'M'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'C'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'N'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'D'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'m'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'c'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'n'),1,'') WHERE level>=65;
UPDATE npc_types SET npcspecialattks=INSERT(npcspecialattks,INSTR(npcsp ecialattks,'d'),1,'') WHERE level>=65;


And the following code is what adds back all four letter codes to make all npcs level 65 and above unMezable, unCharmable, unstuNable, and unfearable.


Code:

UPDATE npc_types SET npcspecialattks=UPPER(CONCAT(npcspecialattks,'MCND ')) WHERE level>=65;


After that last SQL has finished, all npcs 65+ should be unfearable.
__________________
Lead GM ~ Zeb
Zeb Server
ZebServer.com

Last edited by Jibbatwinkers; 09-29-2006 at 07:50 PM..
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 04:45 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3