ADMShadow
New Member
Hi, i really tried to do that by myself, but it's pretty hard... I use TFS 0.4 and Tibia 8.60, im trying to make an item which can be used to send a message for all the players of the game on the DEFAULT CHANNEL!! I can make this item on all the channels except on the DEFAULT!
Have a look at my script :
It works absolutely perfect, but the message doesnt appear on the DEFAULT CHANNEL, it appears nowhere :{
But when I put on Trade Channel or another channel, it works perfectly which means only the DEFAULT CHANNEL doesn't work... can someone help me? :B
Have a look at my script :
function onSay(cid, words, param)
local itemId = 12596
if (param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Invalid parammeter")
return TRUE
end
if (doPlayerRemoveItem(cid, itemId, 1)) then
doPlayerSendChannelMessage(cid, getCreatureName(cid), param, MESSAGE_EVENT_DEFAULT, CHANNEL_DEFAULT)
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"You dont have the necessary item.")
end
return TRUE
end
It works absolutely perfect, but the message doesnt appear on the DEFAULT CHANNEL, it appears nowhere :{
But when I put on Trade Channel or another channel, it works perfectly which means only the DEFAULT CHANNEL doesn't work... can someone help me? :B
Last edited: