Forkz
Well-Known Member
- Joined
- Jun 29, 2020
- Messages
- 419
- Solutions
- 1
- Reaction score
- 98
Hi Otlanders,
I have a problem with this function, it is not working, I have already tested print() in the server console and it works, but when it comes to the sendChannelMessage function it is not working.
I am using this test script
In otclient the channel opens, but the messages are not sent, I put a printout in the console and got results.
Can someone help me?
Code:
https://github.com/nekiro/TFS-1.5-Downgrades/tree/7.72/src
I have a problem with this function, it is not working, I have already tested print() in the server console and it works, but when it comes to the sendChannelMessage function it is not working.
I am using this test script
LUA:
local action = Action()
function action.onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:openChannel(13)
player:sendChannelMessage(13, TALKTYPE_CHANNEL_Y, player, "It Working!")
player:sendChannelMessage(13, TALKTYPE_CHANNEL_O, player, "It Working!")
print(13, TALKTYPE_CHANNEL_Y, player, "It Working!")
print(13, TALKTYPE_CHANNEL_O, player, "It Working!")
return true
end
--action:aid(45025)
action:id(2173)
action:register()
In otclient the channel opens, but the messages are not sent, I put a printout in the console and got results.
Can someone help me?
Last edited: