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-15-2015, 03:23 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default Mysql error Deleting characters

This is the error I get whenever I delete a character.

[MySQL Error] 1305: FUNCTION peq.GetMobTypeById does not exist
DELETE FROM `guild_members` WHERE `char_id` = '634' AND GetMobTypeById(1070934671) = 'C'

any info for this would be great, It doesn't seem to effect anything that I can see but its an error non the less that I wan't to go away =P
Reply With Quote
  #2  
Old 07-15-2015, 06:51 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

How are you deleting the character? What tool, cmd, etc.?
Reply With Quote
  #3  
Old 07-15-2015, 08:07 AM
Taleason
Fire Beetle
 
Join Date: May 2011
Location: USA
Posts: 13
Default

Try this

Code:
DROP FUNCTION IF EXISTS `GetMobTypeById`;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `GetMobTypeById`(mobid INTEGER UNSIGNED) RETURNS char(1) CHARSET latin1
BEGIN
    DECLARE Result CHAR(1);

    SET Result = NULL;

    IF (select id from character_ where id = mobid) > 0 THEN
      SET Result = 'C';
    ELSEIF (select BotID from bots where BotID = mobid) > 0 THEN
      SET Result = 'B';
    END IF;

    RETURN Result;
END;;
DELIMITER ;
Reply With Quote
  #4  
Old 07-15-2015, 10:44 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

just at the character select screen, it pops up on my world.exe. I'll try that taleason and get back to ya
Reply With Quote
  #5  
Old 07-15-2015, 11:00 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

That did the trick taleason, I've never been very good with code im glad that you figured it out. What was the issue btw?
Reply With Quote
  #6  
Old 07-16-2015, 06:56 AM
Taleason
Fire Beetle
 
Join Date: May 2011
Location: USA
Posts: 13
Default

Quote:
[MySQL Error] 1305: FUNCTION peq.GetMobTypeById does not exist
Your DB was missing that particular function.

Happy it fixed it for you.
Reply With Quote
  #7  
Old 07-16-2015, 10:16 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

what does the function actually do so I have a reference for it
Reply With Quote
  #8  
Old 07-16-2015, 10:57 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

The function is called when deleting members from a guild
Reply With Quote
  #9  
Old 07-16-2015, 11:06 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

Thank you nate
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 07:27 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