Closed ghost closed 9 years ago
Also need World State id 5140. Name: Battle for liberation from the power of Ragnaros Hyjal started!
Looks good. For the world state, probably we should add some core support that will handle this with DBscripts. This will make our lives even more easier.
Need function like EventAI call db script. To interact with each other. Then the final EVENT will be realized as the condition in the world state.
Ulduar - keep in mind that DB-projects and EventAI-projects are separated. So interaction between these two is not a design goal. Which means that if we really want to toggle them together we must think carefully of doing this as clean as possible
I understand, but then besides as a hack I can not finish the script. Example: Npc Aronus http://www.wowhead.com/npc=39140. On Spellhit(spellclick) - should start moving waypoints. This is another quest that leads to Mount Hyjal and how do I do this?
On Spellhit(spellclick) -> which spell?
SPELL_RIDE_VEHICLE = 46598, Perhaps it is, but in fact when a passenger he starts to move on the points. But in this case it is useless. Remains of a custom summon NPC, one at spawn and die through db_script_on_death will start a movement on the points. That's a rough hack, I know, but nothing else to offer me. Sorry.
Please tell me the script is suitable for the quest? At least partial support. Thanks advance.
@Ulduar The spell you are searching for is http://www.wowhead.com/spell=76649
@Schmoozerd I think it's reasonable to add a ACTION_T_CHANGE_MOVEMENT in eventAI o a SCRIPT_COMMAND_SEND_AI_EVENT in DBscripts. What do you think?
Thanks, but spell has no SCRIPT_EFFECT, DUMMY_EFFECT, TRIGGER_SPELL_EFFECT or SEND_EVENT. And what about the script, which I have laid out here?
I know that the spell doesn't have those effects. But that is the correct one. ACTION_T_CHANGE_MOVEMENT should be the right choice at this point, and I will probably add this to the core the following days.
I will look into detail on the script during the weekend.
Okay, thanks!
@xfurry yes - i think these actions are good
If possible, please add all the features that are in the db_scripts in EAI. This would facilitate scripting.
Not bad, but you need to make a push in the Cataclysm, the 2 quest to Lich King, have no relation whatsoever. Thanks for your work!
Unfortunately, even these two commit not help without hacks finish battle part and final. For Aronus useful, thank you!
Why isn't this enough?
Battle part - Ragnaros periodically goes under the lava lava and encourages waves in random order. Entry same, 3 positions. If they set the same waypoint get porridge. Final EVENT can make the transition to the phase of the course through the AI The event, but first you need to Cata Core were these commits. Thanks.
Another observation - when evade Cenarius and his company move into the spawn point, it is necessary to stop it. Seen in Zul'Farrak similar script, but unfortunately did not understand how to do well.
Example:
m_creature->GetMotionMaster()->Clear();
m_creature->GetMotionMaster()->MoveIdle();
Please tell me how to get the NPC When evading return to the current waypoint, not a point of spawning? https://github.com/scriptdev2/scriptdev2/commit/797d2126992288afa13e9a1b0c392d0ad714ae44 Here without resorting to SD2 was all done. I would like to learn how to do well? What is the secret?
void SmartAI::MovementInform(uint32 MovementType, uint32 Data)
{
if ((MovementType == POINT_MOTION_TYPE && Data == SMART_ESCORT_LAST_OOC_POINT) || MovementType == FOLLOW_MOTION_TYPE)
me->ClearUnitState(UNIT_STATE_EVADE);
GetScript()->ProcessEventsFor(SMART_EVENT_MOVEMENTINFORM, NULL, MovementType, Data);
if (MovementType != POINT_MOTION_TYPE || !HasEscortState(SMART_ESCORT_ESCORTING))
return;
MovepointReached(Data);
}
void SmartAI::EnterEvadeMode()
{
if (!me->IsAlive() || me->IsInEvadeMode())
return;
me->RemoveAllAurasExceptType(SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_CLONE_CASTER);
me->AddUnitState(UNIT_STATE_EVADE);
me->DeleteThreatList();
me->CombatStop(true);
me->LoadCreaturesAddon();
me->SetLootRecipient(NULL);
me->ResetPlayerDamageReq();
me->SetLastDamagedTime(0);
GetScript()->ProcessEventsFor(SMART_EVENT_EVADE);//must be after aura clear so we can cast spells from db
SetRun(mRun);
if (HasEscortState(SMART_ESCORT_ESCORTING))
{
AddEscortState(SMART_ESCORT_RETURNING);
ReturnToLastOOCPos();
}
else if (mFollowGuid)
{
if (Unit* target = ObjectAccessor::GetUnit(*me, mFollowGuid))
me->GetMotionMaster()->MoveFollow(target, mFollowDist, mFollowAngle);
// evade is not cleared in MoveFollow, so we can't keep it
me->ClearUnitState(UNIT_STATE_EVADE);
}
else
me->GetMotionMaster()->MoveTargetedHome();
if (!HasEscortState(SMART_ESCORT_ESCORTING))//dont mess up escort movement after combat
SetRun(mRun);
}
Something like this - I gave an example that would be clear about what I want to ask. Thanks advance.
That script was not used SD2. https://github.com/scriptdev2/scriptdev2/commit/797d2126992288afa13e9a1b0c392d0ad714ae44 See for yourself, there are all waypoints are made through the base! And one more thing: despite the fact that db motion type is set to 2, they did not start the movement on the points at spawn. How to do well? Flags which may need or something else?
It turns out you need to first waypoint must have the same coordinates as the point of spawning creatures right? And through db script to pause? All right? I just have to Cenarius and Malfurion Hamuul move all the time and When evading return to spawn point. I'm trying to overcome it.
this might be a problem with the mmgens being stacked. Hence on evade all but the initial mmgen are remvoved, and if the initial mmgen is not the waypoint-mmgen they will of course return to the spawnpoint.
I do not use mmgen. Looks have to ask Xfurry, so as he wrote the script. I wonder why in Cataclysm branch so rarely make a push. What kernel added new features - it's good, but it's only for wotlk. To me, they are useless for Cataclysm, so as they are not.
Xfurry is in holiday now, sunbathing and drinking some nice and juicy cocktails! :smile: Will be returning sometime next week and answer all your questions.
Temp solution: The table creature_template set movement type = idle. Table creature set the type of movement = waypoints.
Aronus has a taxi path.
Although I can do so - create waypoint = Ragnaros his spawn point and a value of 1 percent through hp ACTION_CHANGE_MOVEMENT(thanks for EventAI Update) Do all that is necessary. Visually, no difference will not notice! Malfurion and spells Hamuul though have 6 Target, but through Receive_AI_Event_A from Ragnaros in EventAI and TARGET_EVENT_SENDER They will be able to cast, plus there is a flag CAST_AURA_NOT_PRESENT. Ragnaros himself is a timer in the battle to send AI Event that's all)
Why don't you want to just submit a nice SD2 patch for the whole event. :wink: This would make our life much easier, and will fix the event much faster.
Why don't you want to just submit a nice SD2 patch for the whole event. :wink:
This would make our life much easier, and will fix the event much faster.
It makes no sense to write the script SD2, if can do without it.
Why don't you want to just submit a nice SD2 patch for the whole event. :wink:
Me SD2 do not need to, I'll manage without him.
Script need full update - without SD2 ofc.
http://wowpedia.org/Quest:The_Firelord http://www.wowhead.com/quest=25551/the-firelord http://cmangos.net/thread-6692.html