Update aoe_loot.h

This commit is contained in:
TerraByte
2025-04-06 23:03:24 -05:00
committed by GitHub
parent 523438809b
commit fee65bfa1e

View File

@@ -3,9 +3,20 @@
#include "ScriptMgr.h"
#include "Config.h"
#include "ServerScript.h"
#include "Chat.h"
#include "Player.h"
#include "Item.h"
#include "ScriptedGossip.h"
#include "ChatCommand.h"
#include "ChatCommandArgs.h"
#include "AccountMgr.h"
#include <vector>
#include <list>
#include <map>
#include <ObjectGuid.h>
using namespace Acore::ChatCommands;
enum AoeLootString
{
@@ -13,26 +24,33 @@ enum AoeLootString
AOE_ITEM_IN_THE_MAIL
};
class AOELootPlayer : public PlayerScript
{
public:
AOELootPlayer() : PlayerScript("AOELootPlayer") { }
void OnPlayerLogin(Player* player) override;
};
class AOELootServer : public ServerScript
{
public:
AOELootServer() : ServerScript("AOELootServer") { }
AOELootServer() : ServerScript("AOELootServer") {}
bool CanPacketReceive(WorldSession* session, WorldPacket& packet) override;
};
void AddSC_AoeLoot()
class AOELootPlayer : public PlayerScript
{
new AOELootPlayer();
new AOELootServer();
}
public:
AOELootPlayer() : PlayerScript("AOELootPlayer") {}
#endif //MODULE_AOELOOT_H
void OnPlayerLogin(Player* player) override;
};
class AoeLootCommandScript : public CommandScript
{
public:
AoeLootCommandScript() : CommandScript("AoeLootCommandScript") {}
ChatCommandTable GetCommands() const override;
static bool HandleStartAoeLootCommand(ChatHandler* handler, Optional<std::string> args);
};
void AddSC_AoeLoot();
#endif //MODULE_AOELOOT_H