Jump to content

Vehicles (Dev)


Guest AuntieMangos

Recommended Posts

  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

anyone have vehicleid for oculus please?

You talk about a quest 'The Struggle Persists' (http://www.wowhead.com/?quest=13124)

so, after killing the boss 'Drakos the Interrogator' (http://www.wowhead.com/?npc=27654),

from wowhead.com:

After this boss dies 3 NPCs will be freed from the cages on the same platfrom as Drakos. The one on the left

will give you a Emerald Drake. The one on the right will give the Amber Drake. The center NPC gives the Ruby

Drake. The Emerald Drake is your healer later on, the Amber is your DPS, and the Ruby is your tank.

so it's the items, which spawn dragons (the vehicles), but these NPCs need a script to give the items.

also need a script for 'Drake Flag Visual' (http://www.wowhead.com/?spell=53797)

Ruby Essence

http://www.wowhead.com/?item=37860

Emerald Essence

http://www.wowhead.com/?item=37815

Amber Essence

http://www.wowhead.com/?item=37859

I have only the data for tables:

spell_script_target, npc_spellclick_spells, creature_template_addon, vehicle_data and vehicle_seat_data.

Link to comment
Share on other sites

I have the problem that you do not "really" move if you enter the vehicle. You think you are moving, but if you enter the vehicle the player actually will stay at the enter-point. If you want to exit the vehicle, you really "fly" back to the point where you entered it at the beginning o.O

Link to comment
Share on other sites

for npc its gossip take item to player .

for vehicleid i have already drake mob id need specific vehicle dbc id for create correct drake offilike and finish my instance scripting.

thx for your response.

Vehicle Drake for the Oculus chain quests (13124, 13126, 13127 and 13128)

patch for new MaNGOS core, which support wow patch 3.3.3a

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index abdf46e..027d92d 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -362,7 +376,10 @@ Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid o
    UpdateOriginalCasterPointer();

    for(int i = 0; i < MAX_EFFECT_INDEX; ++i)
-        m_currentBasePoints[i] = m_spellInfo->CalculateSimpleValue(SpellEffectIndex(i));
+        if (caster->GetMap()->IsDungeon())
+            m_currentBasePoints[i] = m_spellInfo->EffectBasePoints[i];
+        else
+            m_currentBasePoints[i] = m_spellInfo->CalculateSimpleValue(SpellEffectIndex(i));

    m_spellState = SPELL_STATE_NULL;

Important Note:

without this core patch the items: Emerald/Ruby/Amber Essence, teleports player in his home area

(very unpleasant bug).

only in Dungeons not possible to switch between Primary and Secondary Talents for now.

and the .SQL part for database mangos:

/* the Oculus chain quests (13124, 13126, 13127 and 13128) */
DELETE FROM spell_script_target where entry IN (49460, 49346, 49464);
DELETE FROM npc_spellclick_spells where npc_entry IN (27755, 27692, 27756);
DELETE FROM creature_template_addon where entry IN (27755, 27692, 27756);
/* Amber Drake */
INSERT INTO spell_script_target VALUES
(49460, 1, 27755);
INSERT INTO npc_spellclick_spells VALUES
(27755, 49459, 0, 0, 0, 1);
INSERT INTO creature_template_addon VALUES
(27755, 0, 0, 0, 0, 0, 29, NULL, '48602 0 48602 2');
REPLACE INTO vehicle_data VALUES
(29, 12, 49840, 49838, 49592, 0, 0, 0, 0, 0, 0, 0, 0);
REPLACE INTO vehicle_seat_data VALUES
(422, 3);
/* Emerald Drake */
INSERT INTO spell_script_target VALUES
(49346, 1, 27692);
INSERT INTO npc_spellclick_spells VALUES
(27692, 49427, 0, 0, 0, 1);
INSERT INTO creature_template_addon VALUES
(27692, 0, 0, 0, 0, 0, 39, NULL, '48602 0 48602 2');
REPLACE INTO vehicle_data VALUES
(39, 12, 50328, 50341, 50344, 0, 0, 0, 0, 0, 0, 0, 0);
REPLACE INTO vehicle_seat_data VALUES
(662, 3);
/* Ruby Drake */
INSERT INTO spell_script_target VALUES
(49464, 1, 27756);
INSERT INTO npc_spellclick_spells VALUES
(27756, 49463, 0, 0, 0, 1);
INSERT INTO creature_template_addon VALUES
(27756, 0, 0, 0, 0, 0, 43, NULL, '48602 0 48602 2');
REPLACE INTO vehicle_data VALUES
(43, 12, 50232, 50248, 50240, 0, 0, 0, 0, 0, 0, 0, 0);
REPLACE INTO vehicle_seat_data VALUES
(742, 3);

/* Belgaristrasz and his companions give Drake, after completed quest (13124) */
UPDATE creature_template SET npcflag = npcflag|1 WHERE entry IN (27657, 27658, 27659);
UPDATE `creature_template` SET `gossip_menu_id` = 27657 WHERE `entry` = 27657;
UPDATE `creature_template` SET `gossip_menu_id` = 27658 WHERE `entry` = 27658;
UPDATE `creature_template` SET `gossip_menu_id` = 27659 WHERE `entry` = 27659;
DELETE FROM gossip_scripts WHERE id IN (27657, 27658, 27659);
INSERT INTO gossip_scripts VALUES
(27657,0,17,37815,1,0,0,0,0,0,0,0,0),
(27658,0,17,37860,1,0,0,0,0,0,0,0,0),
(27659,0,17,37859,1,0,0,0,0,0,0,0,0);
DELETE FROM gossip_menu_option WHERE menu_id IN (27657, 27658, 27659);
INSERT INTO gossip_menu_option VALUES 
(27657,0,0,'Take the Emerald Essence if you want to fly on the wings of the Green Flight.',1,1,0,0,27657,0,0,NULL,9,13126,0,16,37815,1,0,0,0),
(27657,1,0,'Take the Emerald Essence if you want to fly on the wings of the Green Flight.',1,1,0,0,27657,0,0,NULL,9,13127,0,16,37815,1,0,0,0),
(27657,2,0,'Take the Emerald Essence if you want to fly on the wings of the Green Flight.',1,1,0,0,27657,0,0,NULL,9,13128,0,16,37815,1,0,0,0),
(27659,0,0,'Take the Amber Essence if you want to fly on the wings of the Bronze Flight.',1,1,0,0,27659,0,0,NULL,9,13126,0,16,37859,1,0,0,0),
(27659,1,0,'Take the Amber Essence if you want to fly on the wings of the Bronze Flight.',1,1,0,0,27659,0,0,NULL,9,13127,0,16,37859,1,0,0,0),
(27659,2,0,'Take the Amber Essence if you want to fly on the wings of the Bronze Flight.',1,1,0,0,27659,0,0,NULL,9,13128,0,16,37859,1,0,0,0),
(27658,1,0,'Take the Ruby Essence if you want to fly on the wings of the Red Flight.',1,1,0,0,27658,0,0,NULL,9,13126,0,16,37860,1,0,0,0),
(27658,2,0,'Take the Ruby Essence if you want to fly on the wings of the Red Flight.',1,1,0,0,27658,0,0,NULL,9,13127,0,16,37860,1,0,0,0),
(27658,3,0,'Take the Ruby Essence if you want to fly on the wings of the Red Flight.',1,1,0,0,27658,0,0,NULL,9,13128,0,16,37860,1,0,0,0),
(27658,0,0,'GOSSIP_OPTION_QUESTGIVER',2,2,0,0,0,0,0,NULL,0,0,0,0,0,0,0,0,0);

/* hack for broken Nexus Portal */
UPDATE gameobject_template SET data0 = 49665 WHERE entry = 189985;
UPDATE spell_target_position SET id = 49665 WHERE id = 49305;

Edit:

if you want (Drake Flag Visual) red flag on the back of the player when ride a Drake

http://www.wowhead.com/item=37860#screenshots:id=159140

Then take this core patch for: (when the player dismiss a Drake to remove a red flag)

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index d150a20..da67cd9 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -8077,6 +8077,7 @@ void Aura::HandleAuraControlVehicle(bool apply, bool Real)
    {
        // some SPELL_AURA_CONTROL_VEHICLE auras have a dummy effect on the player - remove them
        caster->RemoveAurasDueToSpell(GetId());
+        caster->RemoveSingleSpellAurasFromStack(53797);
    }
}


Take and this .SQL file for database mangos: (put a red flag to the player)

DELETE FROM npc_spellclick_spells where spell_id = 53797;
INSERT INTO npc_spellclick_spells VALUES
(27755, 53797, 0, 0, 0, 1),
(27692, 53797, 0, 0, 0, 1),
(27756, 53797, 0, 0, 0, 1);

Last note:

Do not use the command: gm on when you ride a Drake, otherwise the Drake's spells will not work.

Link to comment
Share on other sites

I have the problem that you do not "really" move if you enter the vehicle. You think you are moving, but if you enter the vehicle the player actually will stay at the enter-point. If you want to exit the vehicle, you really "fly" back to the point where you entered it at the beginning o.O

Anyone else having the same problem or an idea for a solution?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use