[svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos. * Further reduce of DB access in guild handlers. * Multi-locale DBC extracting - source Foks *** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits.. --HG-- branch : trunk
This commit is contained in:
1 parent
c74f9b4a68
commit
5746d0e98d
20 files changed
+331
-436
No files matched your search
+15
-15
@@ -860,11 +860,11 @@ bool ChatHandler::HandleItemMoveCommand(const char* args)
|
||||
srcslot = (uint8)atoi(pParam1);
|
||||
dstslot = (uint8)atoi(pParam2);
|
||||
|
||||
uint16 src = ((INVENTORY_SLOT_BAG_0 << 8) | srcslot);
|
||||
uint16 dst = ((INVENTORY_SLOT_BAG_0 << 8) | dstslot);
|
||||
|
||||
if(srcslot==dstslot)
|
||||
return true;
|
||||
|
||||
uint16 src = ((INVENTORY_SLOT_BAG_0 << 8) | srcslot);
|
||||
uint16 dst = ((INVENTORY_SLOT_BAG_0 << 8) | dstslot);
|
||||
|
||||
m_session->GetPlayer()->SwapItem( src, dst );
|
||||
|
||||
@@ -872,7 +872,7 @@ bool ChatHandler::HandleItemMoveCommand(const char* args)
|
||||
}
|
||||
|
||||
//add spawn of creature
|
||||
bool ChatHandler::HandleAddSpwCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcAddCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
@@ -922,7 +922,7 @@ bool ChatHandler::HandleAddSpwCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleDelCreatureCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcDeleteCommand(const char* args)
|
||||
{
|
||||
Creature* unit = NULL;
|
||||
|
||||
@@ -1070,7 +1070,7 @@ bool ChatHandler::HandleTurnObjectCommand(const char* args)
|
||||
}
|
||||
|
||||
//move selected creature
|
||||
bool ChatHandler::HandleMoveCreatureCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcMoveCommand(const char* args)
|
||||
{
|
||||
uint32 lowguid = 0;
|
||||
|
||||
@@ -1323,7 +1323,7 @@ bool ChatHandler::HandleDelVendorItemCommand(const char* args)
|
||||
}
|
||||
|
||||
//add move for creature
|
||||
bool ChatHandler::HandleAddMoveCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcAddMoveCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
@@ -1397,7 +1397,7 @@ bool ChatHandler::HandleAddMoveCommand(const char* args)
|
||||
* additional parameter: NODEL - so no waypoints are deleted, if you
|
||||
* change the movement type
|
||||
*/
|
||||
bool ChatHandler::HandleSetMoveTypeCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcSetMoveTypeCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
@@ -1525,7 +1525,7 @@ bool ChatHandler::HandleSetMoveTypeCommand(const char* args)
|
||||
}
|
||||
|
||||
return true;
|
||||
} // HandleSetMoveTypeCommand
|
||||
} // HandleNpcSetMoveTypeCommand
|
||||
|
||||
//change level of creature or pet
|
||||
bool ChatHandler::HandleChangeLevelCommand(const char* args)
|
||||
@@ -1565,7 +1565,7 @@ bool ChatHandler::HandleChangeLevelCommand(const char* args)
|
||||
}
|
||||
|
||||
//set npcflag of creature
|
||||
bool ChatHandler::HandleNPCFlagCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcFlagCommand(const char* args)
|
||||
{
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -1591,7 +1591,7 @@ bool ChatHandler::HandleNPCFlagCommand(const char* args)
|
||||
}
|
||||
|
||||
//set model of creature
|
||||
bool ChatHandler::HandleSetModelCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcSetModelCommand(const char* args)
|
||||
{
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -1632,8 +1632,8 @@ bool ChatHandler::HandleMorphCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
//set faction of creature or go
|
||||
bool ChatHandler::HandleFactionIdCommand(const char* args)
|
||||
//set faction of creature
|
||||
bool ChatHandler::HandleNpcFactionIdCommand(const char* args)
|
||||
{
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -2138,7 +2138,7 @@ bool ChatHandler::HandleDelTicketCommand(const char *args)
|
||||
}
|
||||
|
||||
//set spawn dist of creature
|
||||
bool ChatHandler::HandleSpawnDistCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcSpawnDistCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
@@ -2176,7 +2176,7 @@ bool ChatHandler::HandleSpawnDistCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleSpawnTimeCommand(const char* args)
|
||||
bool ChatHandler::HandleNpcSpawnTimeCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user