Advertisement
Emulation

Untitled

Oct 12th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. /*Made By Emulation; For Helix <3*/
  2.  
  3. #include "ScriptPCH.h"
  4.  
  5. enum AllowedAreas
  6. {
  7. AREA_GHOSTLANDS = 3433,
  8. AREA_THOUSAND_NEEDLES = 400,
  9. AREA_MULGORE = 215,
  10. AREA_WARSONG = 3277,
  11. /*AREA_ARATHIBASIN = 3358 used for later*/
  12. AREA_ROT = 3638,
  13. AREA_COB = 3775,
  14. AREA_ROL = 153,
  15.  
  16.  
  17. };
  18.  
  19. class zone_Ghostlands : public PlayerScript
  20. {
  21. public:
  22. zone_Ghostlands() : PlayerScript("zone_Ghostlands") { }
  23.  
  24. void OnUpdateZone(Player* player, uint32 newZone, uint32 newArea)
  25. {
  26. if(player->GetSession()->GetSecurity >= 2)
  27. return;
  28.  
  29. switch(newZone)
  30. {
  31. case AREA_GHOSTLANDS:
  32. case AREA_THOUSAND_NEEDLES:
  33. case AREA_MULGORE:
  34. case AREA_WARSONG:
  35. case AREA_ROT:
  36. case AREA_COB:
  37. case AREA_ROL:
  38. break;
  39. default:
  40. if(player->GetTeam() == ALLIANCE)
  41. player->TeleportTo(530, 7776.843750f, -5637.954590f, 17.915497f, 2.180770f);
  42. if(player->GetTeam() == HORDE)
  43. player->TeleportTo(530, 7880.049805f, -7911.214355f, 182.803192f, 3.243651f);
  44. break
  45. }
  46.  
  47.  
  48. }
  49. };
  50.  
  51. void AddSC_zone_Ghostlands()
  52. {
  53. new zone_Ghostlands();
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement