ArcEmu: [Applied][arenas] Dalaran Sewers - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Applied][arenas] Dalaran Sewers

#1 User is offline   Datastream1 

  • Member
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 15-April 09
  • Gender:Male
  • Location:the great US&A
  • Server OS:Other

Posted 19 July 2010 - 11:37 AM

What bug does this patch fix:

It adds dalaran Sewers, and ring of valor to the arena's


Detailed Explanation:�

not needed


How to reproduce:


Queue for an arena




Index: src/arcemu-world/AIInterface.cpp
===================================================================
--- src/arcemu-world/AIInterface.cpp    (revision 3554)
+++ src/arcemu-world/AIInterface.cpp    (working copy)
@@ -3178,7 +3178,7 @@
 
             if( sWorld.DisableFearMovement )
             {
-                if( m_Unit->GetMapId() == 529|| m_Unit->GetMapId() == 566 || m_Unit->GetMapId() == 489 || m_Unit->GetMapId() == 572 || m_Unit->GetMapId() == 562 || m_Unit->GetMapId() == 559 )
+                if( m_Unit->GetMapId() == 529|| m_Unit->GetMapId() == 566 || m_Unit->GetMapId() == 489 || m_Unit->GetMapId() == 572 || m_Unit->GetMapId() == 562 || m_Unit->GetMapId() == 559 || m_Unit->GetMapId() == 617 || m_Unit->GetMapId() == 618 )
                 {
                     return;    
                 }
@@ -3191,7 +3191,7 @@
             float dist = m_Unit->CalcDistance(unitToFear);
             if(dist > 30.0f || (Rand(25) && dist > 10.0f))    // not too far or too close
             {
-                    if( m_Unit->GetMapId() == 572 || m_Unit->GetMapId() == 562 || m_Unit->GetMapId() == 559 ) //GET MAP ID
+                    if( m_Unit->GetMapId() == 572 || m_Unit->GetMapId() == 562 || m_Unit->GetMapId() == 559 || m_Unit->GetMapId() == 617 || m_Unit->GetMapId() == 618 ) //GET MAP ID
                     {
                         Fx = m_Unit->GetPositionX();
                         Fy = m_Unit->GetPositionY();
Index: src/arcemu-world/Arenas.cpp
===================================================================
--- src/arcemu-world/Arenas.cpp    (revision 3554)
+++ src/arcemu-world/Arenas.cpp    (working copy)
@@ -266,7 +266,60 @@
         obj->SetParentRotation(2, 0.969796f);
         obj->SetParentRotation(3, -0.243916f);
         m_gates.insert(obj);
+              }break;
 
+        /* dalaran sewers */
+    case 617: {
+            obj = SpawnGameObject(192643, 617, 1232.11f, 764.699f, 20.3f, 0.0f, 32, 1375, 2.0f);
+            obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_STATE, 1);
+            obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_ANIMPROGRESS, 100);
+            m_gates.insert(obj);
+            
+            obj = SpawnGameObject(192642, 617, 1350.02f, 817.502f, 19.1398, 0.0f, 32, 1375, 2.0f);
+            obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_STATE, 1);
+            obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_ANIMPROGRESS, 100);
+            m_gates.insert(obj);
+
+            obj = SpawnGameObject(191877, 617, 1291.974487f, 791.844666f, 9.339742f, 3.116816f, 32, 1375, 1.0f);
+            obj->PushToWorld(m_mapMgr);
+              }break;
+
+
+        /* ring of valor */
+    case 618: {
+        obj = SpawnGameObject(194030, 618, 763.93f, -295.0f, 26.0f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(194031, 618, 763.93f, -274.0f, 26.0f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(193458, 618, 763.630f, -261.783f, 26.0f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(193459, 618, 763.761f, -306.230f, 26.0f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(193460, 618, 802.313f, -284.349f, 24.6f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(193461, 618, 723.522f, -284.428f, 24.6f, 0.0f, 40, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);
+        obj->PushToWorld(m_mapMgr);
+
+        obj = SpawnGameObject(192392, 618, 763.93f, -295.0f, 27.0f, 0.0f, 32, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_STATE, 1);
+        obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_ANIMPROGRESS, 100);
+        m_gates.insert(obj);
+        
+        obj = SpawnGameObject(192391, 618, 763.93f, -274.0f, 27.0f, 0.0f, 32, 1375, 1.0f);
+        obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_STATE, 1);
+        obj->SetByte(GAMEOBJECT_BYTES_1,GAMEOBJECT_BYTES_ANIMPROGRESS, 100);
+        m_gates.insert(obj);
               }break;
     }
 
@@ -300,6 +353,16 @@
     case 559:
         SetWorldState(2577, 1);
         break;
+
+        /* dalaran sewers */
+    case 617:
+        SetWorldState(3826, 1);
+        break;
+
+    /* the ring of valor */
+    case 618:
+        SetWorldState(3610, 1);
+        break;
     }
 }
 
@@ -442,6 +505,18 @@
         SetWorldState(ARENA_WORLD_STATE_A_PLAYER_COUNT, m_playersCount[0]);
         SetWorldState(ARENA_WORLD_STATE_H_PLAYER_COUNT, m_playersCount[1]);
         break;
+
+            /* dalaran sewers */
+    case 617:
+        SetWorldState(ARENA_WORLD_STATE_A_PLAYER_COUNT, m_playersCount[0]);
+        SetWorldState(ARENA_WORLD_STATE_H_PLAYER_COUNT, m_playersCount[1]);
+        break;
+
+            /* ring of valor */
+    case 618:
+        SetWorldState(ARENA_WORLD_STATE_A_PLAYER_COUNT, m_playersCount[0]);
+        SetWorldState(ARENA_WORLD_STATE_H_PLAYER_COUNT, m_playersCount[1]);
+        break;
     }
 
     if(!m_started)
@@ -601,6 +676,24 @@
             else
                 return LocationVector(4085.861328f, 2866.750488f, 12.417445f);
         }break;
+
+        /* dalaran sewers */
+    case 617:
+        {
+            if(Team)
+                return LocationVector(1363.3609f, 817.3569f, 14.8128f);
+            else
+                return LocationVector(1219.5115f, 765.0264f, 14.8253f);
+        }break;
+
+        /* Ring of Valor */
+    case 618:
+        {
+            if(Team)
+                return LocationVector(763.6011f, -294.3227f, 28.4f);
+            else
+                return LocationVector(763.9755f, -274.0825f, 28.4f);
+        }break;
     }
 
     return LocationVector(0,0,0,0);
@@ -642,6 +735,16 @@
     case 559: {
             dest.ChangeCoords(4057.042725f, 2918.686523f, 13.051933f);
         }break;
+
+    /* dalaran sewers */
+    case 617: {
+            dest.ChangeCoords(1292.51f, 792.05f, 9.34f);
+        }break;
+
+    /* The Ring of Valor */
+    case 618: {
+            dest.ChangeCoords(762.91f, -284.28f, 28.28f);
+        }break;
     }
 
     plr->SafeTeleport(m_mapMgr->GetMapId(), m_mapMgr->GetInstanceID(), dest);
Index: src/arcemu-world/BattlegroundMgr.cpp
===================================================================
--- src/arcemu-world/BattlegroundMgr.cpp    (revision 3554)
+++ src/arcemu-world/BattlegroundMgr.cpp    (working copy)
@@ -1237,8 +1237,8 @@
     if( IS_ARENA( Type ) )
     {
         /* arenas follow a different procedure. */
-        static const uint32 arena_map_ids[3] = { 559, 562, 572 };
-        uint32 mapid = arena_map_ids[RandomUInt(2)];
+        static const uint32 arena_map_ids[5] = { 559, 562, 572, 617, 618 };
+        uint32 mapid = arena_map_ids[RandomUInt(4)];
         uint32 players_per_side;
 
         mgr = sInstanceMgr.CreateBattlegroundInstance(mapid);



Attached File(s)


Posted Image
need halp with a C++ script? message me! :P
0

#2 User is offline   jackpoz 

  • ArcEmu Lemon Priest
  • PipPipPipPipPipPipPipPip
  • Group: Developers
  • Posts: 2,153
  • Joined: 19-June 08
  • Gender:Male
  • Location:Italy
  • Server OS:Windows

Posted 19 July 2010 - 11:40 AM

isn't this like http://arcemu.org/fo...showtopic=20701 but with blizzlike gameobject ids?
Posted Image We develop dreams. Your dreams ;)
Posted ImagePosted Image
0

#3 User is offline   Sadikum 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-June 08
  • Gender:Male

Posted 19 July 2010 - 01:02 PM

Yes it do the same thing but in a blizzlike way.
Sorry for my english, I'm french.
0

#4 User is offline   Datastream1 

  • Member
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 15-April 09
  • Gender:Male
  • Location:the great US&A
  • Server OS:Other

Posted 20 July 2010 - 09:38 AM

View Postjackpoz, on 19 July 2010 - 11:40 AM, said:

isn't this like http://arcemu.org/fo...showtopic=20701 but with blizzlike gameobject ids?

actually, if you check out where he had:





/* Ring of Valor support added by Cid */
+
+       case 618: {
+               obj = SpawnGameObject(450011, 618, 763.526f, -294.156f, 28.3948f, 6.27926f, 32, 1375, 1.0f);
+               obj->SetByte(GAMEOBJECT_BYTES_1, 0, 1);
+               obj->SetParentRotation(2, 0.70681f);
+               obj->SetParentRotation(3, 0.707404f);
+               m_gates.insert(obj);
+
+               obj = SpawnGameObject(450012, 618, 763.888f, -273.995f, 28.3948f, 6.27926f, 32, 1375, 1.0f);
+               obj->SetByte(GAMEOBJECT_BYTES_1, 0, 1);
+               obj->SetParentRotation(2, 0.00196424f);
+               obj->SetParentRotation(3, -0.999998f);
+               m_gates.insert(obj);
+               }break;






he only had 2 of the objects, while i have them all spawned :P
Posted Image
need halp with a C++ script? message me! :P
0

#5 User is offline   Sadikum 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-June 08
  • Gender:Male

Posted 20 July 2010 - 01:39 PM

obj->SetByte(GAMEOBJECT_BYTES_1, GAMEOBJECT_BYTES_TYPE_ID, 5);


I think it's not needed, type of these gameobject is already 5.
Sorry for my english, I'm french.
0

#6 User is offline   dfighter 

  • Titles are overrated
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Administrator
  • Posts: 5,189
  • Joined: 14-June 08
  • IRC:dfighter
  • Gender:Male
  • Server OS:Linux

Posted 26 February 2012 - 06:33 PM

- Applied.
- Moved to applied patches.

...and people say we never apply patches.
This has only been here for 2 years, and already applied!
"The demand for free goods is infinite."
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users