Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
In TibiaRL, when you open Advertising channel you receive this message:
I was trying to recreate it, so I tried:
creaturescripts.xml
000-constant.lua
Result: Nothing happens
Tried:
chat.cpp
[cpp] if(channelId == CHANNEL_TRADE)
{
player->sendToChannel(player, SPEAK_CHANNEL_W, "Here you can advertise all kinds of things. Among others, you can trade Tibia items, advertise ingame events, seek characters for a quest or a hunting group, find members for your guild or look for somebody to help you with something. It goes without saying that all advertisements must be conform to the Tibia Rules. Keep in mind that it is illegal to advertise trades including premium time, real money or Tibia characters.", CHANNEL_TRADE);
return NULL;
}[/cpp]
enums.h
[cpp] CHANNEL_TRADE = 0x06,[/cpp]
Result: Debug when opening channel selection window
Any ideas to make it work? :s
Here you can advertise all kinds of things. Among others, you can trade Tibia items, advertise ingame events, seek characters for a quest or a hunting group, find members for your guild or look for somebody to help you with something.
It goes without saying that all advertisements must be conform to the Tibia Rules. Keep in mind that it is illegal to advertise trades including premium time, real money or Tibia
characters.
I was trying to recreate it, so I tried:
creaturescripts.xml
LUA:
<event type="joinchannel" name="TradeMotd" event="script" value="trademotd.lua"/>
LUA:
function onJoinChannel(cid, channelId, users)
if(channelId == CHANNEL_TRADE) then
if(isPlayer == TRUE) then
doPlayerSendChannelMessage(cid, "", "Here you can advertise all kinds of things. Among others, you can trade Tibia items, advertise ingame events, seek characters for a quest or a hunting group, find members for your guild or look for somebody to help you with something.It goes without saying that all advertisements must be conform to the Tibia Rules. Keep in mind that it is illegal to advertise trades including premium time, real money or Tibiacharacters.", TALKTYPE_CHANNEL_W, CHANNEL_TRADE)
end
end
return true
end
LUA:
CHANNEL_TRADE = 6
Result: Nothing happens
Tried:
chat.cpp
[cpp] if(channelId == CHANNEL_TRADE)
{
player->sendToChannel(player, SPEAK_CHANNEL_W, "Here you can advertise all kinds of things. Among others, you can trade Tibia items, advertise ingame events, seek characters for a quest or a hunting group, find members for your guild or look for somebody to help you with something. It goes without saying that all advertisements must be conform to the Tibia Rules. Keep in mind that it is illegal to advertise trades including premium time, real money or Tibia characters.", CHANNEL_TRADE);
return NULL;
}[/cpp]
enums.h
[cpp] CHANNEL_TRADE = 0x06,[/cpp]
Result: Debug when opening channel selection window
Any ideas to make it work? :s