ArcEmu: Torgos Fix Also Checking Both Quests - 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

Torgos Fix Also Checking Both Quests and some other fixes by suicide

#1 User is offline   Dzjhenghiz 

  • حشّاشين
  • Group: Contributor
  • Posts: 1,936
  • Joined: 07-June 08
  • Gender:Male
  • Location:2nd stone after the 3rd oase western sahara
  • Interests:M.C.S.E :- Minesweeper Consultant & Solitaire Expert
  • Server OS:Other

Posted 04 March 2010 - 08:31 AM

I noticed torgos only looked for one side of the Quest line, so the alliance did not get torgos spawned :D

Also Suicide made some nice fixes for some items :
http://www.wowhead.com/?quest=1136
http://www.wowhead.com/?quest=10585 and http://www.wowhead.com/?quest=10602
http://www.wowhead.com/?quest=12589
http://www.wowhead.com/?quest=11183



Index: src/SpellHandlers/QIspells.cpp
===================================================================
--- src/SpellHandlers/QIspells.cpp	(revision 1200)
+++ src/SpellHandlers/QIspells.cpp	(working copy)
@@ -795,18 +795,17 @@
 
 bool Torgos(uint32 i, Spell * pSpell) 
 {
-  Player * pPlayer = TO_PLAYER(pSpell->u_caster);
-  if(!pPlayer)
+  Player * plr = TO_PLAYER(pSpell->u_caster);
+  if(!plr)
 	  return true;
 
   if(!pSpell->u_caster->IsPlayer())
     return true;
 
-  QuestLogEntry *qle = pPlayer->GetQuestLogForEntry(10035);
-  if(qle == NULL)
-    return true;
+	if(plr->GetQuestLogForEntry(10035) == NULL || plr->GetQuestLogForEntry(10036) == NULL )
+	return true;
 
-  Creature * torgos = sEAS.SpawnCreature(pPlayer, 18707, pPlayer->GetPositionX(), pPlayer->GetPositionY()-10, pPlayer->GetPositionZ(), pPlayer->GetOrientation(), 0);
+  Creature * torgos = sEAS.SpawnCreature(plr, 18707, plr->GetPositionX(), plr->GetPositionY()-10, plr->GetPositionZ(), plr->GetOrientation(), 0);
   if(!torgos)
 	  return true;
 
@@ -1615,6 +1614,71 @@
  return true;
 }
 
+bool SummonFrostmaw(uint32 i, Spell * pSpell)
+	{
+	if( !pSpell->p_caster )
+		return true;
+
+	float SSX = pSpell->p_caster->GetPositionX();
+	float SSY = pSpell->p_caster->GetPositionY();
+	float SSZ = pSpell->p_caster->GetPositionZ();
+	float SSO = pSpell->p_caster->GetOrientation();
+
+	pSpell->p_caster->GetMapMgr()->GetInterface()->SpawnCreature(4504, SSX, SSY, SSZ, SSO, true, false, 0, 0);
+	
+	return true;
+}
+
+bool SummonInfernalOversoul(uint32 i, Spell * pSpell)
+	{
+	if( !pSpell->p_caster )
+		return true;
+
+	float SSX = pSpell->p_caster->GetPositionX();
+	float SSY = pSpell->p_caster->GetPositionY();
+	float SSZ = pSpell->p_caster->GetPositionZ();
+	float SSO = pSpell->p_caster->GetOrientation();
+
+	pSpell->p_caster->GetMapMgr()->GetInterface()->SpawnCreature(21735, SSX, SSY, SSZ, SSO, true, false, 0, 0);
+	
+	return true;
+}
+
+bool RJRRifle(uint32 i, Spell * pSpell)
+	{
+	if( !pSpell->p_caster )
+	return true;
+
+	Unit * target = pSpell->GetUnitTarget();
+	if( !target || target->GetEntry() != 28054 )
+	return true;
+
+	Player * pPlayer = pSpell->p_caster;
+	QuestLogEntry * en = pPlayer->GetQuestLogForEntry( 12589 );
+	if( en && en->GetMobCount( 0 ) < en->GetQuest()->required_mobcount[0] )
+	{
+	en->SetMobCount( 0, en->GetMobCount( 0 ) + 1 );
+	en->SendUpdateAddKill( 0 );
+	en->UpdatePlayerFields();
+	}
+ return true;
+}
+
+bool SummonZelfrax(uint32 i, Spell * pSpell)
+	{
+	if( !pSpell->p_caster )
+		return true;
+
+	float SSX = pSpell->p_caster->GetPositionX();
+	float SSY = pSpell->p_caster->GetPositionY();
+	float SSZ = pSpell->p_caster->GetPositionZ();
+	float SSO = pSpell->p_caster->GetOrientation();
+
+	pSpell->p_caster->GetMapMgr()->GetInterface()->SpawnCreature(23864, SSX, SSY, SSZ, SSO, true, false, 0, 0);
+	
+	return true;
+}
+
 void SetupQuestItems(ScriptMgr * mgr)
 {
 	mgr->register_dummy_spell(3607, &YennikuRelease);
@@ -1681,4 +1745,8 @@
 	mgr->register_dummy_spell(45474, &RagefistTorch);
 	mgr->register_dummy_spell(13978, &SummonAquementas);		//http://www.wowhead.com/?quest=4005
 	mgr->register_dummy_spell(39371, &PrayerBeads);				//http://www.wowhead.com/?quest=10935
+	mgr->register_dummy_spell( 6717, &SummonFrostmaw);			//http://www.wowhead.com/?quest=1136
+	mgr->register_dummy_spell(37285, &SummonInfernalOversoul);	//http://www.wowhead.com/?quest=10585 / 10602
+	mgr->register_dummy_spell(51330, &RJRRifle);				//http://www.wowhead.com/?quest=12589
+	mgr->register_dummy_spell(42521, &SummonZelfrax);			//http://www.wowhead.com/?quest=11183
 }
\ No newline at end of file





Credits to Suicide for the itemfixes.

[attachment=2280:Qitems.patch]
Need Help With Arcemu ? ^^
Posted Image
Concordia res parvae crescunt In varietate concordia
Spoiler

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