ArcEmu: Icc Teleporter Patch - 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
  • This topic is locked

Icc Teleporter Patch patch for making working ICC Teleporters

#1 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 12 June 2010 - 04:47 PM

Patch Title: ICC Teleporter
What bug does this patch fix:Scripted Teleporters inside ICC
Detailed Explanation: N/A
How to reproduce:Go inside ICC and press on icc teleporter pad if you have it added and spawned.
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 1312)
+++ Makefile.am	(working copy)
@@ -59,6 +59,7 @@
 Raid_TheEye.cpp \
 Raid_TheObsidianSanctum.cpp \
 Raid_Ulduar.cpp \
+Raid_IcecrownCitadel.cpp \
 Raid_ZulGurub.cpp \
 Raid_Magtheridons_Lair.cpp \
 SUNWELL_PLAT/Raid_SunwellPlateau.cpp \
Index: Raid_IcecrownCitadel.cpp
===================================================================
--- Raid_IcecrownCitadel.cpp	(revision 0)
+++ Raid_IcecrownCitadel.cpp	(revision 0)
@@ -0,0 +1,86 @@
+/*
+ * ArcScripts for ArcEmu MMORPG Server
+ * Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
+ * Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "StdAfx.h"
+#include "Raid_Ulduar.h"
+
+
+// IceCrown Teleporter
+void ICCTeleporter::GossipHello(Object*  pObject, Player* Plr, bool AutoSend)
+{
+	GossipMenu *Menu;
+    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 0, Plr);
+
+    Menu->AddItem(0, "Teleport to Light's Hammer", 0);
+    Menu->AddItem(0, "Teleport to Oratory of The Damned", 1);
+    Menu->AddItem(0, "Teleport to Rampart of Skulls", 2);
+	Menu->AddItem(0, "Teleport to Deathbringer's Rise", 3);
+	Menu->AddItem(0, "Teleport to The Plagueworks", 4);
+	Menu->AddItem(0, "Teleport to The Crimson Halls", 5);
+	Menu->AddItem(0, "Teleport to The Frostwing Halls", 6);
+	Menu->AddItem(0, "Teleport to The Frost Queen's Lair", 7);
+	Menu->AddItem(0, "Teleport to The Frozen Throne", 8);
+
+    if(AutoSend)
+		Menu->SendTo(Plr);
+};
+
+void ICCTeleporter::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char *Code)
+{
+	switch(IntId)
+	{
+	case 0:
+		Plr->SafeTeleport(631, Plr->GetInstanceID(), -17.856115f, 2211.640137f, 30.115812f, 0.0f);
+		break;
+	case 1:
+		Plr->SafeTeleport(631, Plr->GetInstanceID(), -503.632599f, 2211.219971f, 62.823246f, 0.0f);
+		break;
+	case 2:
+		Plr->SafeTeleport(631, Plr->GetInstanceID(), -615.098267f, 2211.509766f, 199.973083f, 0.0f);
+		break;
+	case 3:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), -549.151001f, 2211.463967f, 539.290222f, 0.0f);
+		break;
+	case 4:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), 4356.780273f, 2863.636230f, 349.337982f, 0.0f);
+		break;
+	case 5:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), 4453.248535f, 2769.325684f, 349.347473f, 0.0f);
+		break;
+	case 6:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), 4356.853516f, 2674.143311f, 349.340118f, 0.0f);
+		break;
+	case 7:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), 4356.527344f, 2402.710205f, 220.462723f, 0.0f);
+		break;
+	case 8:
+	    Plr->SafeTeleport(631, Plr->GetInstanceID(), -782.4f, 2604.1f, 1784.6f, 0.0f);
+		break;
+	};
+};
+
+void SetupICCTele(ScriptMgr* mgr)
+{
+	GossipScript * ICCTele = (GossipScript*) new ICCCTeleporter();
+	mgr->register_go_gossip_script(202242, ICCTele);
+	mgr->register_go_gossip_script(202243, ICCTele);
+	mgr->register_go_gossip_script(202244, ICCTele);
+	mgr->register_go_gossip_script(202245, ICCTele);
+	mgr->register_go_gossip_script(202246, ICCTele);
+};
\ No newline at end of file
Index: Raid_IcecrownCitadel.h
===================================================================
--- Raid_IcecrownCitadel.h	(revision 0)
+++ Raid_IcecrownCitadel.h	(revision 0)
@@ -0,0 +1,41 @@
+/*
+ * ArcScripts for ArcEmu MMORPG Server
+ * Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
+ * Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "StdAfx.h"
+#include "Setup.h"
+#include "../Common/Base.h"
+
+// IceCrown Teleporter
+class SCRIPT_DECL ICCTeleporter : public GossipScript
+{
+public:
+	void GossipHello(Object* pObject, Player*  Plr, bool AutoSend);
+	void GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
+
+	void GossipEnd(Object*  pObject, Player* Plr)
+	{
+		GossipScript::GossipEnd(pObject, Plr);
+	};
+	void Destroy()
+	{
+		delete this;
+	};
+};
+
+void SetupICCTele(ScriptMgr* mgr);
\ No newline at end of file
Index: Setup.cpp
===================================================================
--- Setup.cpp	(revision 1312)
+++ Setup.cpp	(working copy)
@@ -77,6 +77,7 @@
 	SetupTheEye(mgr);
 	SetupTheObsidianSanctum(mgr);
 	SetupUlduar(mgr);
+	SetupICCTele(mgr);
 	SetupZulFarrak(mgr);
 	SetupZulGurub(mgr);
 	SetupSerpentshrineCavern(mgr);
Index: Setup.h
===================================================================
--- Setup.h	(revision 1312)
+++ Setup.h	(working copy)
@@ -80,6 +80,7 @@
 void SetupTheEye(ScriptMgr * mgr);
 void SetupTheObsidianSanctum(ScriptMgr * mgr);
 void SetupUlduar(ScriptMgr* mgr);
+void SetupICCTele(ScriptMgr* mgr);
 void SetupZulFarrak(ScriptMgr * mgr);
 void SetupZulGurub(ScriptMgr * mgr);
 void SetupSerpentshrineCavern(ScriptMgr * mgr);

Attached File(s)


Posted Image
1

#2 User is offline   Fyurie 

  • Member
  • Group: Supporter
  • Posts: 31
  • Joined: 19-April 09
  • Gender:Male
  • Location:London

Posted 12 June 2010 - 05:37 PM

Nice one Eatos, but as a retail player, I will mention that the Frozen Throne is not on the teleporter.

The teleport for the Frozen Throne activates when all of the end wing bosses are dead, and it is in the very center of the upper spire. You merely run onto it and you are teleported. :D
0

#3 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 12 June 2010 - 06:16 PM

Well this is how i did but anyone can modify it for own needs
Posted Image
0

#4 User is offline   kjanko 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 171
  • Joined: 10-August 09
  • Gender:Male

Posted 12 June 2010 - 06:17 PM

+#include "Raid_Ulduar.h" -> This happens when editing already existing file.
#include Raid_IcecrownCitadel.h
Posted Image
0

#5 User is offline   Shauren 

  • Helper
  • Group: Contributor
  • Posts: 808
  • Joined: 04-November 08
  • Gender:Male
  • Location:Poland
  • Interests:hmm, wow?

Posted 13 June 2010 - 04:20 AM

View Posteatos92, on 12 June 2010 - 06:16 PM, said:

Well this is how i did but anyone can modify it for own needs


its not a matter how you do this, but if its blizzlike (which in your case is not)
0

#6 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 13 June 2010 - 04:28 AM

I am working on it to be blizzlike,but this is better then nothing right?
Posted Image
0

#7 User is offline   Fyurie 

  • Member
  • Group: Supporter
  • Posts: 31
  • Joined: 19-April 09
  • Gender:Male
  • Location:London

Posted 13 June 2010 - 07:09 AM

Of course. It wasn't intended as criticism, but as a bit of insider knowledge, so to speak, to help you make it Blizzlike. :D
0

#8 User is offline   Darren 

  • Occasional Poster
  • PipPip
  • Group: Members
  • Posts: 104
  • Joined: 18-June 08

Posted 13 June 2010 - 08:28 AM

Yea, this isnt blizzlike.
The options to teleport come after certain bosses are killed.
0

#9 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 13 June 2010 - 08:51 AM

I told every one you can mode it for your own needs.And make it blizzlike
Posted Image
0

#10 User is offline   Fyurie 

  • Member
  • Group: Supporter
  • Posts: 31
  • Joined: 19-April 09
  • Gender:Male
  • Location:London

Posted 13 June 2010 - 12:11 PM

If it's not Blizzlike, don't post it in Patch Submissions Eatos. This should be in the optional section if it is not being designed to be Blizzlike.

(Edit for grammar police)

This post has been edited by Fyurie: 13 June 2010 - 12:13 PM

0

#11 User is offline   suchASunthan 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 246
  • Joined: 29-November 08
  • Gender:Male
  • Location:Frankfurt
  • Interests:Vcpp, vb, sql, all programmlanguages
    more informations >:-]

Posted 14 June 2010 - 07:23 AM

every teleport needs to check if the guid of the respective boss is in killed_npc_guids of char db table instances. thats the only thing which has to be added. also the visual is missing.
Koninzidenz begründet keine Korrelation und ist kein Beweis für Kausalität!

coincidence causes no correlation and in´t a argument for causality!

Posted Image
Posted Image
0

#12 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 14 June 2010 - 08:48 AM

Guess what this is the last time i will try to commit and help community.You know what i get in return for trying to help here.Nothing and flame.Nothing is perfect and nothing will be perfect.If you look for perfection then go somewhere else.
Posted Image
0

#13 User is offline   Shauren 

  • Helper
  • Group: Contributor
  • Posts: 808
  • Joined: 04-November 08
  • Gender:Male
  • Location:Poland
  • Interests:hmm, wow?

Posted 14 June 2010 - 09:01 AM

right, i forgot you were they guy from lhdb who never listens to what others say

this section is for BLIZZLIKE PATCH submission, post here http://arcemu.org/fo...hp?showforum=32 if your patch is not meant to be blizzlike
0

#14 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 14 June 2010 - 09:16 AM

HM.Blizzlike!? I never said it was Blizzlike did i?So if you feel in the mood and have knowledge script it blizzlike.I dont feel in the mood and i dont have right knowledge so GTFO nicely.Mods you can ban me or what ever you want to do with this thread.I stopped to care for every thing.Especially things on INTERNET those are not REAL!
Posted Image
0

#15 User is offline   Shauren 

  • Helper
  • Group: Contributor
  • Posts: 808
  • Joined: 04-November 08
  • Gender:Male
  • Location:Poland
  • Interests:hmm, wow?

Posted 14 June 2010 - 09:18 AM

yea, flame me now... better damn learn to read WHERE to post
0

#16 User is offline   eatos92 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 06-May 09
  • Gender:Male
  • Location:Serbia, Devil WoW

Posted 14 June 2010 - 09:23 AM

Play with the fire and you will get burn.And just for the records i listen ppl and their needs.
Posted Image
0

#17 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 14 June 2010 - 09:33 AM

You two get a room!
"The demand for free goods is infinite."
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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