View Full Version : [Fix] Deathknight Gryphon's
Myerz
03-04-2009, 07:56 PM
function GryphonDown_OnGossip(Unit, Event, Player)
Unit:GossipCreateMenu(100, Player, 0)
Unit:GossipMenuAddItem(0, "Go Down to Death's Breach", 1, 0)
Unit:GossipSendMenu(Player)
end
function GryphonDown_OnSelect(Unit, Event, Player, MenuId, id, Code)
if (id == 1) then
Player:Teleport(609, 2430.61, -5730.25, 157.855)
Unit:GossipComplete(Player)
end
end
function GryphonUp_OnGossip(Unit, Event, Player)
Unit:GossipCreateMenu(100, Player, 0)
Unit:GossipMenuAddItem(0, "Go Up to Heart of Acherus", 1, 0)
Unit:GossipSendMenu(Player)
end
function GryphonUp_OnSelect(Unit, Event, Player, MenuId, id, Code)
if (id == 1) then
Player:Teleport(609, 2363.69, -5659.33, 382.270)
Unit:GossipComplete(Player)
end
end
RegisterUnitGossipEvent(29488, 1, "GryphonDown_OnGossip")
RegisterUnitGossipEvent(29501, 1, "GryphonUp_OnGossip")
RegisterUnitGossipEvent(29488, 2, "GryphonDown_OnSelect")
RegisterUnitGossipEvent(29501, 2, "GryphonUp_OnSelect")
lordrob2k3
03-04-2009, 07:58 PM
function GryphonDown_OnGossip(Unit, Event, Player)
Unit:GossipCreateMenu(100, Player, 0)
Unit:GossipMenuAddItem(0, "Go Down to Death's Breach", 1, 0)
Unit:GossipSendMenu(Player)
end
function GryphonDown_OnSelect(Unit, Event, Player, MenuId, id, Code)
if (id == 1) then
Player:Teleport(609, 2430.61, -5730.25, 157.855)
Unit:GossipComplete(Player)
end
end
function GryphonUp_OnGossip(Unit, Event, Player)
Unit:GossipCreateMenu(100, Player, 0)
Unit:GossipMenuAddItem(0, "Go Up to Heart of Acherus", 1, 0)
Unit:GossipSendMenu(Player)
end
function GryphonUp_OnSelect(Unit, Event, Player, MenuId, id, Code)
if (id == 1) then
Player:Teleport(609, 2363.69, -5659.33, 382.270)
Unit:GossipComplete(Player)
end
end
RegisterUnitGossipEvent(29488, 1, "GryphonDown_OnGossip")
RegisterUnitGossipEvent(29501, 1, "GryphonUp_OnGossip")
RegisterUnitGossipEvent(29488, 2, "GryphonDown_OnSelect")
RegisterUnitGossipEvent(29501, 2, "GryphonUp_OnSelect")
.lua ?
tekkeryole
03-04-2009, 08:17 PM
Use SUN++ scripts - they have both of the gryphons working in the DK starting area like they should be - Flight Paths and NOT lua teleporters...
faddix
03-04-2009, 08:18 PM
Use SUN++ scripts - they have both of the gryphons working in the DK starting area like they should be - Flight Paths and NOT lua teleporters...
sad that Sun++ don't support ArcEmu anymore...
--------------------------------------------------------------------------
Metalivo
03-04-2009, 09:07 PM
Aye, apply sun++ to your core, and u got guaranteed crashes xD
Kabukiblood
03-05-2009, 02:15 AM
does anyone have the link to the Sun++ script for this?
WoW4Free
03-05-2009, 03:52 AM
does anyone have the link to the Sun++ script for this?
#include "StdAfx.h"
#include "Setup.h"
#include "EAS/EasyFunctions.h"
class ScourgeGryphon : public GossipScript
{
public:
void GossipHello(Object* pObject, Player * plr, bool AutoSend)
{
TaxiPath * path = sTaxiMgr.GetTaxiPath( 1053 );
plr->TaxiStart( path, 26308, 0 );
plr->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNTED_TAXI);
}
};
class ScourgeGryphon2 : public GossipScript
{
public:
void GossipHello(Object* pObject, Player * plr, bool AutoSend)
{
TaxiPath * path = sTaxiMgr.GetTaxiPath( 1054 );
plr->TaxiStart( path, 26308, 0 );
plr->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNTED_TAXI);
}
};
void SetupDeathKnight(ScriptMgr * mgr)
{
GossipScript * SG = (GossipScript*) new ScourgeGryphon();
mgr->register_gossip_script(29488, SG);
GossipScript * SG2 = (GossipScript*) new ScourgeGryphon2();
mgr->register_gossip_script(29501, SG2);
}
Enjoy!
cooly125
03-05-2009, 04:12 AM
wow wowforfree thread stealer much?
mattias9410
03-05-2009, 02:24 PM
nice script :P
toofast
07-23-2009, 12:02 PM
Does it work for MaNGOS?
bigjohnson4
07-24-2009, 04:41 AM
Does it work for MaNGOS?
It's been working in MaNGOS for quite a while.
heldragoniv
07-24-2009, 01:03 PM
So Sun++ is working with Mangos?
toofast
07-24-2009, 11:05 PM
Anyone has a working fix working on MaNGOS Revision 7836 with UDB 380?
Thanks in advance!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.