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)
- {
- float x = player->GetPositionX();
- float y = player->GetPositionY();
- float z = player->GetPositionZ();
- float ang = player->GetOrientation();
- float rot2 = std::sin(ang/2);
- float rot3 = std::cos(ang/2);
- switch (player->getClass())
- {
- case CLASS_MAGE:
- {
- if (zone == 3698)
- {
- player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 3702)
- {
- player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 4378)
- {
- player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 3968)
- {
- player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 4406)
- {
- player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- break;
- }
- case CLASS_WARLOCK:
- {
- if (zone == 3698)
- {
- player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 3702)
- {
- player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 4378)
- {
- player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 3968)
- {
- player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- if (zone == 4406)
- {
- player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
- }
- break;
- }
- }
- }
- };
- void AddSC_MageTable_SoulwellArena()
- {
- new MageTable_SoulwellArena;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement