+ Reply to Thread
Results 1 to 3 of 3

Thread: Command.Message.Accept issues

  1. #1
    Shadowlander Zanderfied's Avatar
    Join Date
    Apr 2014
    Posts
    31

    Default Command.Message.Accept issues

    Command.Message.Accept("channel", "Synergy")
    Command.Message.Broadcast("channel", "Synergy", "channel", "Hello")

    local function receive(from, type, channel, identifier, data)
    if identifier ~= "Synergy" then return end

    print(data)

    end

    Command.Event.Attach(Event.Message.Receive, receive, "receive" )
    Theoretically, I should be seeing "Hello" printed out in general should I not? Not sure where I have gone wrong.

  2. #2
    Sword of Telara DoomSprout's Avatar
    Join Date
    Apr 2011
    Posts
    876

    Default

    Quote Originally Posted by Zanderfied View Post
    Theoretically, I should be seeing "Hello" printed out in general should I not? Not sure where I have gone wrong.
    The parameters in the broadcast call don't look quite right:
    Message Broadcast

    It might also be an idea to move the broadcast to the end, after you've fully defined the event handler, just in case the client shortcuts the network round-trip for local broadcasts (pretty sure it doesn't, but you never know).

    I've never used channel broadcasts (if I remember right, Gadgets uses yell and guild for its version checking), but I have a feeling you'll need to use a real existing channel for it, like "Level 60", or something like that.

    Gadgets: Unit Frames and Other Stuff for RIFT

  3. #3
    Shadowlander Zanderfied's Avatar
    Join Date
    Apr 2014
    Posts
    31

    Default

    Yeah my bad, I'll probably use CrossEvents@Faeblight

    I'll play around with this a little bit more but I'm afraid that it may not be receiving the message since I'm the sender.

    At the moment my goal is just to print("Fired!") every time a message is received using my identifier

    (I also sent you a PM)

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts