Skip to content

Instantly share code, notes, and snippets.

@Natureknight
Created December 26, 2015 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Natureknight/4d5b5d83ab810e5518f6 to your computer and use it in GitHub Desktop.
Save Natureknight/4d5b5d83ab810e5518f6 to your computer and use it in GitHub Desktop.
diff --git a/src/server/scripts/Custom/copyGearCommands.cpp b/src/server/scripts/Custom/copyGearCommands.cpp
index cfdab8f..dac3e51 100644
--- a/src/server/scripts/Custom/copyGearCommands.cpp
+++ b/src/server/scripts/Custom/copyGearCommands.cpp
@@ -116,8 +116,8 @@ public:
target->GetName());
LearnPlateMailSpells(player);
- player->UpdateSkillsForLevel();
LearnWeaponSkills(player);
+ player->UpdateSkillsForLevel();
player->SaveToDB();
return true;
}
@@ -259,7 +259,7 @@ private:
for (uint8 i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; i++)
{
// Delete previous items if equipped
- player->RemoveItem(INVENTORY_SLOT_BAG_0, i, true);
+ player->DestroyItem(INVENTORY_SLOT_BAG_0, i, true);
if (Item* equippedItem = target->GetItemByPos(INVENTORY_SLOT_BAG_0, i))
{
warning: LF will be replaced by CRLF in src/server/scripts/Custom/copyGearCommands.cpp.
The file will have its original line endings in your working directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment