mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Fix] Add trader/buyer cleanup actions (#4843)
* Add trader/buyer cleanup actions Add trader/buyer db cleanup for - on zone idle - on client first login - when world drops a zone connection - in Client::ProcessMovePC Cleanup several compiler warnings * Formatting Updates
This commit is contained in:
+12
-1
@@ -681,9 +681,20 @@ void Client::MoveZoneInstanceRaid(uint16 instance_id, const glm::vec4 &location)
|
||||
|
||||
void Client::ProcessMovePC(uint32 zoneID, uint32 instance_id, float x, float y, float z, float heading, uint8 ignorerestrictions, ZoneMode zm)
|
||||
{
|
||||
// From what I have read, dragged corpses should stay with the player for Intra-zone summons etc, but we can implement that later.
|
||||
// From what I have read, dragged corpses should stay with the player for Intra-zone summons etc, but we can
|
||||
// implement that later.
|
||||
ClearDraggedCorpses();
|
||||
|
||||
// Added to ensure that if a player is moved (ported, gmmove, etc) and they are an active trader or buyer, they will
|
||||
// be removed from future transactions.
|
||||
if (IsTrader()) {
|
||||
TraderEndTrader();
|
||||
}
|
||||
|
||||
if (IsBuyer()) {
|
||||
ToggleBuyerMode(false);
|
||||
}
|
||||
|
||||
if(zoneID == 0)
|
||||
zoneID = zone->GetZoneID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user