Jump to content
TrinityCore

Change player selected target


timh52280
 Share

Recommended Posts

Good night, I'm trying to fix some spells, and I'm stuck in a part of Prismatic Crystal mage spell, the problem is when the crystal is just summoned, the player selected target must change to the crystal, I've been trying the SetTarget() and SetSelection() functions with crystal summoned GUID but either does not work, the selected target not change. I've been researching and I read that there is not SMSG opcode to change target but only to clear target which is SMSG_CLEAR_TARGET, and any opcode in server side to change the current selected target, as it does in retail, could you help me giving me some orientation about how to make player target the crystal when the spell is casted?

Video to see how it works:

Thanks for you time.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By mad_catmk2
      Does anyone encounter issues with "Invalid Target" when trying to mine (for me it's copper veins for a fresh char)? Trying to push the self-cast/other modifier buttons does not fix it, as well as re-logging on.
      Branch: Master
    • By damian054
      ####### English Version ########
      Hello Everyone!.
      I am requesting a script to change username in php, someone would be so kind as to contribute?.
      Thanks in advance
       
      ###### Version Español ######
      Hola a todos.
      Estoy necesitando un codigo php para cambiar el nombre de usuario, alguno podria aportarlo?
      se los agradeceria mucho. saludos!
       
      Version: TrinityCore 3.3.5a.
×
×
  • Create New...