Advertisement
Guest User

Here you have xD

a guest
Jan 6th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.80 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class MageTable_SoulwellArena : public PlayerScript
  4. {
  5. public:
  6.     MageTable_SoulwellArena() : PlayerScript("MageTable_SoulwellArena") {  }
  7.    
  8.     void OnUpdateZone(Player* player, uint32 zone, uint32 area)
  9.     {
  10.         float x = player->GetPositionX();
  11.         float y = player->GetPositionY();
  12.         float z = player->GetPositionZ();
  13.         float ang = player->GetOrientation();
  14.         float rot2 = std::sin(ang/2);
  15.         float rot3 = std::cos(ang/2);
  16.        
  17.         switch (player->getClass())
  18.         {
  19.         case CLASS_MAGE:
  20.             {
  21.                 if (zone == 3698)
  22.                 {
  23.                     player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
  24.                 }
  25.                 if (zone == 3702)
  26.                 {
  27.                     player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
  28.                 }
  29.                 if (zone == 4378)
  30.                 {
  31.                     player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
  32.                 }
  33.                 if (zone == 3968)
  34.                 {
  35.                     player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
  36.                 }
  37.                 if (zone == 4406)
  38.                 {
  39.                     player->SummonGameObject(193061, x, y, z, ang, 0, 0, rot2, rot3, 30);
  40.                 }
  41.                 break;
  42.                 }
  43.        
  44.         case CLASS_WARLOCK:
  45.             {
  46.                 if (zone == 3698)
  47.                 {
  48.                     player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
  49.                 }
  50.                 if (zone == 3702)
  51.                 {
  52.                     player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
  53.                 }
  54.                 if (zone == 4378)
  55.                 {
  56.                     player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
  57.                 }
  58.                 if (zone == 3968)
  59.                 {
  60.                     player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
  61.                 }
  62.                     if (zone == 4406)
  63.                     {
  64.                         player->SummonGameObject(193169, x, y, z, ang, 0, 0, rot2, rot3, 30);
  65.                     }
  66.                     break;
  67.             }
  68.         }
  69.     }
  70. };
  71.  
  72. void AddSC_MageTable_SoulwellArena()
  73. {
  74.     new MageTable_SoulwellArena;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement