XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Script That Creates a Channel or HUD for Raids

  1. #11
    dekodertronic's Avatar
    Join Date
    Mar 2014
    Location
    Mass, USA
    Posts
    100
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    bump.

  2. #12

    Join Date
    Nov 2014
    Location
    Germany
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    /////GHAZBARAN/////
    -------------------------
    00:00: An ancient evil is awakening in the mines beneath Hrodmir.
    00:10: Demonic entities are entering the mortal realm in the Hrodmir mines.
    00:20: The demonic master has revealed itself in the mines of Hrodmir.

    /////MORGAROTH/////
    -------------------------
    00:00: The ancient volcano on Goroma slowly becomes active once again.
    00:06: There is an evil presence at the volcano of Goroma.
    00:12: Evil Cultists have called an ancient evil into the volcano on Goroma. Beware of its power mortals.

    /////FERUMBRAS/////
    -------------------------
    00:00: The seals on Ferumbras old cidatel are glowing. Prepare for HIS return mortals.
    00:10: Ferumbras return is at hand. The Edron Academy calls for Heroes to fight that evil.
    00:20: Ferumbras has returned to his citadel once more. Stop him before its too late.


    /////ORSHABAAL/////
    -------------------------
    00:00: Orshabaal's minions are working on his return to the World. LEAVE Edron at once, mortals.
    00:03: Orshabaal is about to make his way into the mortal realm. Run for your lives!
    00:06: Orshabaal has been summoned from hell to plague the lands of mortals again.

  3. #13
    Super Moderator Luls's Avatar
    Join Date
    Dec 2010
    Location
    Canadaaaa.
    Posts
    1,976
    Mentioned
    186 Post(s)
    Tagged
    0 Thread(s)
    http://tibia.wikia.com/wiki/Raids

    Pretty sure that has every raid message.

  4. #14

    Join Date
    Mar 2014
    Location
    Long Island
    Posts
    379
    Mentioned
    54 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dekodertronic View Post
    bump.
    I threw this together quick, give it a shot I think it can do what you'd like:

    Code:
    blockedMessages = {"New mail has arrived.", 
    
    }
    
    local channel = Channel.New("Raid Messages", onSpeak, onClose)
    GenericTextMessageProxy.OnReceive("GenProxy", function (proxy, message)
    	x = string.match(message, "(%d+)")
    	if tonumber(x) == nil and not table.contains(blockedMessages, message) then
    		channel:SendOrangeMessage("Raid Catcher", message)
    	end
    end)
    
    function onClose(channel)
    	print(channel .. " was closed.")
    end

    It reads your messages and separates what has a number in it and what doesn't (from what I've seen, most raid messages don't have a number in it so it's a decent filter)

    If you see some random messages getting through, add it to the blocked list and they wont enter the channel anymore

    Let me know if it works well for yah ^^

    My name is Proteus!
    This is my Signature.
    Thanks.

  5. #15
    dekodertronic's Avatar
    Join Date
    Mar 2014
    Location
    Mass, USA
    Posts
    100
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks playboy you are a champ!


    Quote Originally Posted by Proteus View Post
    I threw this together quick, give it a shot I think it can do what you'd like:

    Code:
    blockedMessages = {"New mail has arrived.", 
    
    }
    
    local channel = Channel.New("Raid Messages", onSpeak, onClose)
    GenericTextMessageProxy.OnReceive("GenProxy", function (proxy, message)
    	x = string.match(message, "(%d+)")
    	if tonumber(x) == nil and not table.contains(blockedMessages, message) then
    		channel:SendOrangeMessage("Raid Catcher", message)
    	end
    end)
    
    function onClose(channel)
    	print(channel .. " was closed.")
    end

    It reads your messages and separates what has a number in it and what doesn't (from what I've seen, most raid messages don't have a number in it so it's a decent filter)

    If you see some random messages getting through, add it to the blocked list and they wont enter the channel anymore

    Let me know if it works well for yah ^^

  6. #16

    Join Date
    Mar 2014
    Location
    Long Island
    Posts
    379
    Mentioned
    54 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dekodertronic View Post
    Thanks playboy you are a champ!
    Haha anytime glad to help!

    My name is Proteus!
    This is my Signature.
    Thanks.

Posting Permissions

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