Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "StdAfx.h"
  2. #include "Setup.h"
  3. /*Little info on color text
  4. when you want to make text colored add '|cff0000ff' at start
  5. EX:"|cff0000ff This is colored txt"
  6. #   Lightred      "|cffff6060"
  7. #   Lightblue     "|cff00ccff"
  8. #   Blue          "|cff0000ff"
  9. #   Green         "|cff00ff00"
  10. #   Nice Green    "|c1f40af20"
  11. #   Red       "|cffff0000"
  12. #   Gold          "|cffffcc00"
  13. #   Grey          "|cff888888"
  14. #   White         "|cffffffff"
  15. #   Subwhite      "|cffbbbbbb"
  16. #   Magenta       "|cffff00ff"
  17. #   Yellow            "|cffffff00"
  18. #   Cyan          "|cff00ffff"
  19. */
  20. void NewGM(Player *Plr)
  21. {
  22. #define GMCMD_GUILDLVL 'b'
  23. #define GMCMD_GUILDLVLA 'a'
  24. /*#define ORG 76
  25. #define TROLL 530
  26. #define BE 911
  27. #define COW 81
  28. #define SW 72
  29. #define UC 68
  30. #define NE 69
  31. #define DRE 930
  32. #define GNOM 54
  33. #define DWAR 47 */
  34. //#define 50000 50000
  35.  
  36. //Check for GM rank A
  37. if(Plr->GetSession()->CanUseCommand(GMCMD_GUILDLVLA))
  38. {
  39.     //add's sta shirt to admin
  40.     Item * pItem = objmgr.CreateItem(12064, Plr);
  41. pItem = objmgr.CreateItem(100001, Plr);
  42. Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
  43. }
  44. //Checks for GM commands
  45. if(Plr->GetSession()->CanUseCommand(GMCMD_GUILDLVL)) {
  46. Item * pItem = objmgr.CreateItem(12064, Plr);  // Gm Outfit
  47. Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
  48. pItem = objmgr.CreateItem(2586, Plr);
  49. Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
  50. pItem = objmgr.CreateItem(11508, Plr);
  51. Plr->GetItemInterface()->AddItemToFreeSlot(pItem);
  52. Plr->addSpell(38112);//Magic Barriar
  53. Plr->SetUInt32Value(UNIT_FIELD_AURA, 38112);
  54. LevelInfo* info = objmgr.GetLevelInfo(Plr->getRace(), Plr->getClass(), 70);
  55. Plr->ApplyLevelInfo(info, 70); // makes lv 70
  56. Plr->BroadcastMessage("|cffffcc00[Infierno] |cff00ff00You now how everything you should need to be a Game master");
  57. /*
  58. //Plr->SetStandingSetStanding(uint32 76, int32 50000)
  59. Plr->ModStanding(76, 24000);//Org
  60. //Supose to set 50000ing o factions , caused player to fatal error removed for now till ican decipher witch one is bugging
  61. Plr->ModStanding(530, 50000);
  62. Plr->ModStanding(911, 50000);
  63. Plr->ModStanding(81, 50000);
  64. Plr->ModStanding(68, 50000);
  65. Plr->ModStanding(69, 50000);
  66. Plr->ModStanding(930, 50000);
  67. Plr->ModStanding(54, 50000);
  68. Plr->ModStanding(47, 50000);
  69.  
  70. //Plr->ModStanding(72, 42000); //SW*/
  71.  
  72. }{
  73.  
  74.  
  75.   }  
  76.         }
  77. void SetupNewGM(ScriptMgr * mgr)
  78. {
  79. mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, NewGM);
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement