Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class MageTable_SoulwellArena : public PlayerScript
- {
- public:
- MageTable_SoulwellArena() : PlayerScript("MageTable_SoulwellArena") { }
- void OnUpdateZone(Player* player, uint32 zone, uint32 area)
- {
- uint32 entry = 0;
- if (player->getClass() == CLASS_MAGE)
- entry = 193061;
- if (player->getClass() == CLASS_WARLOCK)
- entry = 193169;
- if (!entry)
- return;
- if (zone == 3698 ||
- zone == 3702 ||
- zone == 4378 ||
- zone == 3968 ||
- zone == 4406)
- {
- if (player->FindNearestGameObject(entry, SIZE_OF_GRIDS))
- return;
- float x, y, z, ang;
- player->GetPosition(x, y, z, ang);
- float rot2 = std::sin(ang / 2);
- float rot3 = std::cos(ang / 2);
- player->SummonGameObject(entry, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- }
- };
- void AddSC_MageTable_SoulwellArena()
- {
- new MageTable_SoulwellArena;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement