Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So what made you say that this issue is still bugged?

[DiscordArchive] So what made you say that this issue is still bugged?

[DiscordArchive] So what made you say that this issue is still bugged?

Pages (3): Previous 1 2 3
rektbyfaith
Administrator
0
12-08-2024, 11:59 AM
#21
Archived author: cyberpro98 • Posted: 2024-12-08T11:59:16.759000+00:00
Original source

I added it in a module
rektbyfaith
12-08-2024, 11:59 AM #21

Archived author: cyberpro98 • Posted: 2024-12-08T11:59:16.759000+00:00
Original source

I added it in a module

rektbyfaith
Administrator
0
12-08-2024, 12:00 PM
#22
Archived author: cyberpro98 • Posted: 2024-12-08T12:00:16.157000+00:00
Original source

```js
std::vector<uint32>player_auras = { 23735, 23735, 23737, 23738, 23769, 23766, 23768, 23767, 23736 };


class cs_playerCommands : public CommandScript
{
public:
cs_playerCommands() : CommandScript("cs_playercommands") {}

ChatCommandTable GetCommands() const override
{
// Define the sub-commands under the "player" command
static ChatCommandTable playerCommandTableSub =
{

{ "buff", HandleplayerbuffCoommand, SEC_PLAYER, Console::Yes},

};


static ChatCommandTable playerCommand =
{
{ "player", playerCommandTableSub }
};


return playerCommand;
}

static bool HandleplayerbuffCoommand(ChatHandler* handler, const char* args)
{

Player* player = handler->getSelectedPlayer();
if (!player)
player = handler->GetSession()->GetPlayer();

// Check if the player has enough gold
if (player->GetMoney() < 1000000)
{
handler->PSendSysMessage("You don't have enough money to buff yourself");
return false;
}
else
{
player->ModifyMoney(-1000000);
}

player->RemoveAurasByType(SPELL_AURA_MOUNTED);
for (int i = 0; i < player_auras.size(); i++)
player->AddAura(player_auras[i], player);
handler->PSendSysMessage("You're buffed now!");
return true;

}

};
```
rektbyfaith
12-08-2024, 12:00 PM #22

Archived author: cyberpro98 • Posted: 2024-12-08T12:00:16.157000+00:00
Original source

```js
std::vector<uint32>player_auras = { 23735, 23735, 23737, 23738, 23769, 23766, 23768, 23767, 23736 };


class cs_playerCommands : public CommandScript
{
public:
cs_playerCommands() : CommandScript("cs_playercommands") {}

ChatCommandTable GetCommands() const override
{
// Define the sub-commands under the "player" command
static ChatCommandTable playerCommandTableSub =
{

{ "buff", HandleplayerbuffCoommand, SEC_PLAYER, Console::Yes},

};


static ChatCommandTable playerCommand =
{
{ "player", playerCommandTableSub }
};


return playerCommand;
}

static bool HandleplayerbuffCoommand(ChatHandler* handler, const char* args)
{

Player* player = handler->getSelectedPlayer();
if (!player)
player = handler->GetSession()->GetPlayer();

// Check if the player has enough gold
if (player->GetMoney() < 1000000)
{
handler->PSendSysMessage("You don't have enough money to buff yourself");
return false;
}
else
{
player->ModifyMoney(-1000000);
}

player->RemoveAurasByType(SPELL_AURA_MOUNTED);
for (int i = 0; i < player_auras.size(); i++)
player->AddAura(player_auras[i], player);
handler->PSendSysMessage("You're buffed now!");
return true;

}

};
```

rektbyfaith
Administrator
0
12-08-2024, 12:08 PM
#23
Archived author: sudlud • Posted: 2024-12-08T12:08:08.591000+00:00
Original source

Maybe move this to <#1247452612077420544>
rektbyfaith
12-08-2024, 12:08 PM #23

Archived author: sudlud • Posted: 2024-12-08T12:08:08.591000+00:00
Original source

Maybe move this to <#1247452612077420544>

rektbyfaith
Administrator
0
12-08-2024, 12:12 PM
#24
Archived author: cyberpro98 • Posted: 2024-12-08T12:12:22.309000+00:00
Original source

Sure thanks!
rektbyfaith
12-08-2024, 12:12 PM #24

Archived author: cyberpro98 • Posted: 2024-12-08T12:12:22.309000+00:00
Original source

Sure thanks!

Pages (3): Previous 1 2 3
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)