EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: Bug fix for #npcedit featuresave (https://www.eqemulator.org/forums/showthread.php?t=39230)

iluvseq 01-14-2015 07:03 PM

COMMITTED: Bug fix for #npcedit featuresave
 
The current code has an extra comma in the SQL for #npcedit featuresave which breaks this command.

The patch below fixes the SQL syntax by removing this extra comma, which in turn allows this command to function again.
Code:

diff --git a/zone/command.cpp b/zone/command.cpp
index a0b9ae6..00e1f61 100644
--- a/zone/command.cpp
+++ b/zone/command.cpp
@@ -6653,7 +6653,7 @@ void command_npcedit(Client *c, const Seperator *sep)
                                        "SET luclin_haircolor = %i, luclin_beardcolor = %i, "
                                        "luclin_hairstyle = %i, luclin_beard = %i, "
                                        "face = %i, drakkin_heritage = %i, "
-                                        "drakkin_tattoo = %i, drakkin_details = %i, "
+                                        "drakkin_tattoo = %i, drakkin_details = %i "
                                        "WHERE id = %i",
                                        target->GetHairColor(), target->GetBeardColor(),
                                        target->GetHairStyle(), target->GetBeard(),



All times are GMT -4. The time now is 05:10 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.