TellBunny

Breakdown large blocks of text into whisper sized pieces

WoW chat truncates messages >255 characters. This addon breaks down large messages into whisper sized pieces.

 

Currently only a library function that can be called through something like LibStub:

 

TARGET = "Krathis-Rattlegore"

TEXT = "hi"

--[['chatType' ("SAY", "WHISPER", "EMOTE", "CHANNEL", "PARTY","BATTLEGROUND","GUILD","OFFICER","YELL","RAID","RAID_WARNING", "AFK", "DND") ]]

CHANNEL = "whisper"

LibStub("AceAddon-3.0"):GetAddon("TellBunny"):SendMessages(TEXT,CHANNEL,TARGET)

 

Use of stories.lua allows for large blocks of text to be stored in a lua string. The WoW lua interpreter only supports strings up to ~8000 characters. Alice in Wonderland is included as a demo in a string called tb_story_alice. You can then reference the variable in place of the TEXT variable:

 

TARGET = ""

--[['chatType' ("SAY", "WHISPER", "EMOTE", "CHANNEL", "PARTY","BATTLEGROUND","GUILD","OFFICER","YELL","RAID","RAID_WARNING", "AFK", "DND")
]]

CHANNEL = "whisper"

LibStub("AceAddon-3.0"):GetAddon("TellBunny"):SendMessages(tb_story_alice,CHANNEL,TARGET)

 

 

 

 

The TellBunny Team

profile avatar
Owner
  • 2
    Projects
  • 3.2K
    Downloads

More from murrain