mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
fix(Core/PlayerScript) Align player script function names (#21020)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
@@ -126,7 +126,7 @@ void WorldSession::HandlePetitionBuyOpcode(WorldPacket& recvData)
|
||||
}
|
||||
}
|
||||
|
||||
sScriptMgr->PetitionBuy(_player, creature, charterid, cost, type);
|
||||
sScriptMgr->OnPlayerPetitionBuy(_player, creature, charterid, cost, type);
|
||||
|
||||
if (type == GUILD_CHARTER_TYPE)
|
||||
{
|
||||
@@ -840,7 +840,7 @@ void WorldSession::SendPetitionShowList(ObjectGuid guid)
|
||||
|
||||
if (creature->IsTabardDesigner())
|
||||
{
|
||||
sScriptMgr->PetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
sScriptMgr->OnPlayerPetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
|
||||
data << uint8(1); // count
|
||||
data << uint32(1); // index
|
||||
@@ -859,7 +859,7 @@ void WorldSession::SendPetitionShowList(ObjectGuid guid)
|
||||
|
||||
// 2v2
|
||||
data << uint8(3); // count
|
||||
sScriptMgr->PetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
sScriptMgr->OnPlayerPetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
data << uint32(1); // index
|
||||
data << CharterEntry; // charter entry
|
||||
data << CharterDispayID; // charter display id
|
||||
@@ -873,7 +873,7 @@ void WorldSession::SendPetitionShowList(ObjectGuid guid)
|
||||
CharterCost = sWorld->getIntConfig(CONFIG_CHARTER_COST_ARENA_3v3);
|
||||
|
||||
// 3v3
|
||||
sScriptMgr->PetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
sScriptMgr->OnPlayerPetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
data << uint32(2); // index
|
||||
data << CharterEntry; // charter entry
|
||||
data << CharterDispayID; // charter display id
|
||||
@@ -887,7 +887,7 @@ void WorldSession::SendPetitionShowList(ObjectGuid guid)
|
||||
CharterCost = sWorld->getIntConfig(CONFIG_CHARTER_COST_ARENA_5v5);
|
||||
|
||||
// 5v5
|
||||
sScriptMgr->PetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
sScriptMgr->OnPlayerPetitionShowList(_player, creature, CharterEntry, CharterDispayID, CharterCost);
|
||||
data << uint32(3); // index
|
||||
data << CharterEntry; // charter entry
|
||||
data << CharterDispayID; // charter display id
|
||||
|
||||
Reference in New Issue
Block a user