Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "StdAfx.h"
- #include "Setup.h"
- /*Little info on color text
- when you want to make text colored add '|cff0000ff' at start
- EX:"|cff0000ff This is colored txt"
- # Lightred "|cffff6060"
- # Lightblue "|cff00ccff"
- # Blue "|cff0000ff"
- # Green "|cff00ff00"
- # Nice Green "|c1f40af20"
- # Red "|cffff0000"
- # Gold "|cffffcc00"
- # Grey "|cff888888"
- # White "|cffffffff"
- # Subwhite "|cffbbbbbb"
- # Magenta "|cffff00ff"
- # Yellow "|cffffff00"
- # Cyan "|cff00ffff"
- */
- void NewGM(Player *Plr)
- {
- #define GMCMD_GUILDLVL 'b'
- #define GMCMD_GUILDLVLA 'a'
- /*#define ORG 76
- #define TROLL 530
- #define BE 911
- #define COW 81
- #define SW 72
- #define UC 68
- #define NE 69
- #define DRE 930
- #define GNOM 54
- #define DWAR 47 */
- //#define 50000 50000
- //Check for GM rank A
- if(Plr->GetSession()->CanUseCommand(GMCMD_GUILDLVLA))
- {
- //add's sta shirt to admin
- Item * pItem = objmgr.CreateItem(12064, Plr);
- pItem = objmgr.CreateItem(100001, Plr);
- Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
- }
- //Checks for GM commands
- if(Plr->GetSession()->CanUseCommand(GMCMD_GUILDLVL)) {
- Item * pItem = objmgr.CreateItem(12064, Plr); // Gm Outfit
- Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
- pItem = objmgr.CreateItem(2586, Plr);
- Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
- pItem = objmgr.CreateItem(11508, Plr);
- Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
- Plr->addSpell(38112);//Magic Barriar
- Plr->SetUInt32Value(UNIT_FIELD_AURA, 38112);
- LevelInfo* info = objmgr.GetLevelInfo(Plr->getRace(), Plr->getClass(), 70);
- Plr->ApplyLevelInfo(info, 70); // makes lv 70
- Plr->BroadcastMessage("|cffffcc00[Infierno] |cff00ff00You now how everything you should need to be a Game master");
- /*
- //Plr->SetStandingSetStanding(uint32 76, int32 50000)
- Plr->ModStanding(76, 24000);//Org
- //Supose to set 50000ing o factions , caused player to fatal error removed for now till ican decipher witch one is bugging
- Plr->ModStanding(530, 50000);
- Plr->ModStanding(911, 50000);
- Plr->ModStanding(81, 50000);
- Plr->ModStanding(68, 50000);
- Plr->ModStanding(69, 50000);
- Plr->ModStanding(930, 50000);
- Plr->ModStanding(54, 50000);
- Plr->ModStanding(47, 50000);
- //Plr->ModStanding(72, 42000); //SW*/
- }{
- }
- }
- void SetupNewGM(ScriptMgr * mgr)
- {
- mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, NewGM);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement