0% found this document useful (0 votes)
4 views1 page

Vip Buff

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Vip Buff

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#include "ScriptPCH.

h"
#include "Chat.h"

uint32 auras[] = { 70233, 70234, 70235, 70244, 70242, 70243 };

class buff_commandscript : public CommandScript


{
public:
buff_commandscript() : CommandScript("buff_commandscript") { }

ChatCommand* GetCommands() const


{
static ChatCommand IngameCommandTable[] =
{
{ "buff", SEC_PLAYER, false, &HandleBuffCommand,
"", NULL },
{ NULL, 0, false, NULL,
"", NULL }
};
return IngameCommandTable;
}

static bool HandleBuffCommand(ChatHandler * handler, const char * args)


{
Player * me = handler->GetSession()->GetPlayer();

me->RemoveAurasByType(SPELL_AURA_MOUNTED);
for(int i = 0; i < 11; i++)
me->AddAura(auras[i], me);
handler->PSendSysMessage("You're buffed now!");
return true;
}
};

void AddSC_buff_commandscript()
{
new buff_commandscript();
}

You might also like