Jump to content

Recommended Posts

Posted

As i see when we teleport player to location (plr->TeleportTo(location);) we cannot use in next line "castspell(plr, aura)". (may result with crash in spell method)

So if i want to apply aura after teleportation done what is the best method?

Is test IsBeingTeleportedFar associated with ScheduleDelayedOperations is the good way?

Posted

Yes ofc, Dungeon Cooldown(71328) and LuckOfTheDraw(72221).

But there is probably more existing case.

Case 72221 must be casted after teleport because of spellarea added for these spell.

Cheers

Posted

71328 I think should be cast when queuing up to lfg

Indeed 72221 is cast after the teleport is finished.

However it is possible that this must be cast genericly whenever a player is logged in into a dungeon while in a lfg group. (relog problem).

I think probably a good place would be to use a procedure of OnLogin-Handling, especially related to spell 836.

I don't think that 72221 should be cast by the dummy effect of 836, because I have this kind of log:

(however I cannot be sure that the order in this case of things in my log is the order that must be used)

- cast 836

- MSG_MOVE_TELEPORT_ACK

- A bunch of aura updates

- cast spell 72221 (clearly later than 836)

×
×
  • 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