Jump to content


Photo

register_event


    4 replies to this topic

    #1 zaxtiss

    zaxtiss

      Advanced Member

    • Members
    • PipPipPip
    • 49 posts

      Posted 11 May 2017 - 07:38 PM

      hello all,
      i'm trying to add some code to my gearswaps. to make it catch what spells the target is casting and have them echo or add them to chat since i 4 box most of the time its kinda hard to catch everything going on in the chat log
      i'm pretty sure its something like this but not totally sure.
      register_event(incoming text,windower.add_to_chat(mode, msg)
       but after that i'm a lost any help would be great thanks!
       


      #2 Kenshi

      Kenshi

        Advanced Member

      • Members
      • PipPipPip
      • 334 posts

        Posted 11 May 2017 - 10:03 PM

        if you are just goin to just echo or add an advice in chat, you should do it in his own addon, instead of gearswap, and use the incoming chunk event.



        #3 zaxtiss

        zaxtiss

          Advanced Member

        • Members
        • PipPipPip
        • 49 posts

          Posted 12 May 2017 - 01:44 AM

          any clue as to how i would go about that << very noobish coder



          #4 Sammeh

          Sammeh

            Member

          • Members
          • PipPip
          • 24 posts

            Posted 13 May 2017 - 12:43 AM

            any clue as to how i would go about that << very noobish coder

             

            http://dev.windower....i:events:action

             

            Should help with that.  

             

            I guess I'm kind of confused.   Without even windower - when something casts spell it echos to your screen ;)    Are you wanting to do something specific with it?  re-cast it from one characters window to another?

             

            There are a lot of addons that help with chat filtering out there to make this stuff easier.

             

            I have an addon called "React"  which reacts to mobs doing specific actions  (specific named, not simply "casting a spell - but specifically "Casting Fire VI" for example.  )   Works well in conjunction with gearswap as you could chose to react to a mob casting a spell by equipping gear sets etc (like for DT/MDT/MEVA etc)

             

            https://github.com/S...ee/master/React



            #5 zaxtiss

            zaxtiss

              Advanced Member

            • Members
            • PipPipPip
            • 49 posts

              Posted 15 May 2017 - 01:33 PM

              yeah i was going to try out your addon for what i want.

              basicly im trying to have the mobs casting echo in my chat so its easier to tell what ele to cast on it to get his aura down.
              main mob i was thinking of was Golden kist.
              so with the case of your addon would //react add “Golden Kist” “Stone VI” ready “input /party stone V was cast nuke wind!”
               work or is my syntax wrong?





              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users