Leo32
Getting back into it...
- Joined
- Sep 21, 2007
- Messages
- 987
- Solutions
- 14
- Reaction score
- 532
We don't really have a way of sending messages to channels without an author, or speaker representing a string.
For example:
01:00 Benji: Hello
01:01 : Hello
Whereas with server log messages you can clearly see when they're system messages:
01:02: Hello
But it seems there isn't any way to send system messages to channels like that?
What are people doing to work around this? how are you getting dedicated loot channels looking right?
I noticed we don't even make use of the Loot Channel or the Network Protocol message that Tibia use?
So it should be do-able:
For example:
Lua:
local message = "Hello"
player:sendChannelMessage(player, message, TALKTYPE_CHANNEL_Y, channelId)
Lua:
player:sendChannelMessage("", message, TALKTYPE_CHANNEL_Y, channelId)
player:sendChannelMessage(nil, message, TALKTYPE_CHANNEL_Y, channelId)
player:sendChannelMessage(false, message, TALKTYPE_CHANNEL_Y, channelId)
Whereas with server log messages you can clearly see when they're system messages:
Lua:
player:sendTextMessage(MESSAGE_LOOT, "Hello")
But it seems there isn't any way to send system messages to channels like that?
What are people doing to work around this? how are you getting dedicated loot channels looking right?
I noticed we don't even make use of the Loot Channel or the Network Protocol message that Tibia use?
TibiaFlashClient/scripts/tibia/chat/ChatStorage.as at dce16a9b33df051ca1bb31d3137a0392f600140e · TheUltDev/TibiaFlashClient
Decompiled sources of Cipsoft's Tibia Flash Client - TheUltDev/TibiaFlashClient
github.com
So it should be do-able:
C++:
NetworkMessage msg;
msg.addByte(0xCF); // 207 Item looted, is this ByteArray for loot statistics or loot channel info (?)