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: Tradeskill message for missing components (https://www.eqemulator.org/forums/showthread.php?t=31802)

wheeljack 08-07-2010 12:12 PM

COMMITTED: Tradeskill message for missing components
 
This patch sends the "Sorry, but you don't have everything you need for this recipe in your general inventory." message (#3456) to the client when they attempt a tradeskill combine using the new UI and are missing components. This replicates the behavior on live.

Code:

Index: zone/StringIDs.h
===================================================================
--- zone/StringIDs.h        (revision 1617)
+++ zone/StringIDs.h        (working copy)
@@ -195,6 +195,7 @@
 #define SUSPEND_MINION_SUSPEND                3268        //%1 tells you, 'By your command, master.'
 #define ONLY_SUMMONED_PETS                3269        //3269 This effect only works with summoned pets.
 #define SUSPEND_MINION_FIGHTING                3270    //Your pet must be at peace, first.
+#define TRADESKILL_MISSING_COMPONENTS        3456 //Sorry, but you don't have everything you need for this recipe in your general inventory.
 #define TRADESKILL_LEARN_RECIPE                3457        //You have learned the recipe %1!
 #define WHOALL_NO_RESULTS                        5029        //There are no players in EverQuest that match those who filters.
 #define PETITION_NO_DELETE                        5053        //You do not have a petition in the queue.
Index: zone/tradeskills.cpp
===================================================================
--- zone/tradeskills.cpp        (revision 1617)
+++ zone/tradeskills.cpp        (working copy)
@@ -355,6 +355,7 @@
        if(count != needcount) {
                user->QueuePacket(outapp);
                safe_delete(outapp);
+                user->Message_StringID(MT_Skills, TRADESKILL_MISSING_COMPONENTS);
                return;
        }


Derision 08-08-2010 10:57 AM

Thanks :) Committed in Rev 1619.


All times are GMT -4. The time now is 05:51 AM.

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