Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Made By Emulation; For Helix <3*/
- #include "ScriptPCH.h"
- enum AllowedAreas
- {
- AREA_GHOSTLANDS = 3433,
- AREA_THOUSAND_NEEDLES = 400,
- AREA_MULGORE = 215,
- AREA_WARSONG = 3277,
- /*AREA_ARATHIBASIN = 3358 used for later*/
- AREA_ROT = 3638,
- AREA_COB = 3775,
- AREA_ROL = 153,
- };
- class zone_Ghostlands : public PlayerScript
- {
- public:
- zone_Ghostlands() : PlayerScript("zone_Ghostlands") { }
- void OnUpdateZone(Player* player, uint32 newZone, uint32 newArea)
- {
- if(player->GetSession()->GetSecurity >= 2)
- return;
- switch(newZone)
- {
- case AREA_GHOSTLANDS:
- case AREA_THOUSAND_NEEDLES:
- case AREA_MULGORE:
- case AREA_WARSONG:
- case AREA_ROT:
- case AREA_COB:
- case AREA_ROL:
- break;
- default:
- if(player->GetTeam() == ALLIANCE)
- player->TeleportTo(530, 7776.843750f, -5637.954590f, 17.915497f, 2.180770f);
- if(player->GetTeam() == HORDE)
- player->TeleportTo(530, 7880.049805f, -7911.214355f, 182.803192f, 3.243651f);
- break
- }
- }
- };
- void AddSC_zone_Ghostlands()
- {
- new zone_Ghostlands();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement