EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Code Fixes For Server (https://www.eqemulator.org/forums/showthread.php?t=22121)

WildcardX 12-19-2006 05:28 PM

Code Fixes For Server
 
I'm not sure my previous postings were seen by whoever is in charge of adding code to the code base on CVS for the server.

I have code for two bugs I identified and fixed in these two threads. Can someone please add this code to CVS? Thanks a bunch!

http://www.eqemulator.net/forums/showthread.php?t=22119

http://www.eqemulator.net/forums/showthread.php?t=22040

sesmar 12-20-2006 01:11 AM

I know that you guys like to see these things in a diff file and since I have tested and can also verify that the changes that WildCardX has made do work here is a diff file of his changes.

Changes to quest::depop (questmgr.cpp)
Code:

--- questmgr.cpp_bak    2006-12-20 07:43:08.000000000 +0000
+++ questmgr.cpp        2006-12-20 08:05:10.000000000 +0000
@@ -363,9 +363,13 @@
 void QuestManager::depop(int npc_type) {
        if (npc_type != 0){
                Mob * tmp = entity_list.GetMobByNpcTypeID(npc_type);
+
                if (tmp) {
-                      if(tmp != npc)
+                      if(tmp != npc){
                                tmp->CastToNPC()->Depop();
+                              entity_list.RemoveNPC(tmp->GetID());
+                              entity_list.RemoveMob(tmp->GetID());
+                      }
                        else
                                depop_npc = true;
                }

Changes to fix Quest Item combines
skills.h
Code:

--- skills.h_bak        2006-12-20 07:40:42.000000000 +0000
+++ skills.h    2006-12-20 07:41:20.000000000 +0000
@@ -95,7 +95,8 @@
  PERCUSSION_INSTRUMENTS        = 70,
  INTIMIDATION                  = 71,
  BERSERKING                            = 72,
- TAUNT                                = 73
+ TAUNT                                = 73,
+ TRADESKILL = 75
 } SkillType;

 #define HIGHEST_SKILL  TAUNT

tradeskills.cpp
Code:

--- tradeskills.cpp_bak 2006-12-20 07:41:40.000000000 +0000
+++ tradeskills.cpp    2006-12-20 07:42:33.000000000 +0000
@@ -197,8 +197,8 @@
                else
                        user->Message(13, "Only rogues can mix poisons.");
                break;
-      case 0x0D: //Quest Containers-Most use 1E but item 17111 uses this one, odd Still needs completion
-              tradeskill = POTTERY;
+      case 13: //Quest Containers-Most use 1E but item 17111 uses this one, odd Still needs completion
+              tradeskill = TRADESKILL;
                break;
        case 46: //Fishing Still needs completion
                tradeskill = FISHING;



All times are GMT -4. The time now is 10:24 AM.

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