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 08-13-2009, 11:21 AM
BMXWoody
Fire Beetle
 
Join Date: Oct 2008
Location: Australia
Posts: 8
Default SQL Query Help For NPCSpecialAttks Please

G'day guys, I'm not at all experienced with SQL but I've somehow managed to stumble through setting up and modifying my server without any trouble up until now.

I'm just trying to remove the summon ability from ALL NPCs in my server and I'm hoping someone can tell me how to drop the S value from the npcspecialattks column in the npc_types table. I've tried using UPDATETEXT and REPLACE functions but as I said, I really have no knowledge at all in SQL so I haven't had any luck.

I did have a pretty good look through the forums and the wiki for help but couldn't find anything. Hopefully I haven't missed a glaringly obviously tutorial or something.

Thanks in advance for any help you guys can offer.
Cheers,
BMXWoody.
Reply With Quote
  #2  
Old 08-13-2009, 12:29 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

I don't have the database with me at work, so my column names might be off, but I think it will be something like this:

Code:
UPDATE npc_types SET npcspecialattks = REPLACE (npcspecialattks, 'S', '');
Reply With Quote
  #3  
Old 08-13-2009, 05:02 PM
BMXWoody
Fire Beetle
 
Join Date: Oct 2008
Location: Australia
Posts: 8
Default

Lol so simple, the commands I was typing were really long and complex. Thanks heaps for that mate!! I'll give it a shot right now and let you know how it works when i get a chance to test it later =D
Cheers,
BMXWoody.
Reply With Quote
  #4  
Old 08-15-2009, 11:18 PM
BMXWoody
Fire Beetle
 
Join Date: Oct 2008
Location: Australia
Posts: 8
Default

Worked like a dream mate. Thanks again!!

BMXWoody
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 08:29 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