• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Send messenge to NPC channel

Aragornik

New Member
Joined
Mar 6, 2008
Messages
252
Reaction score
0
Hello, this is possible?
How can i send messenge to NPC channel (no selfSay[no author],
only msg).
Example screen (paint)

gonikif.jpg




I use TFS 0.3.5.
 
Last edited:
#Derek Boom Boom

doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
"channel" == only can take this:

<?xml version="1.0" encoding="UTF-8"?>
<channels>
<!-- README:
0 - dynamic, reserved for guilds
1 - always acts as Party channel, only "name" tag available
3 - always acts as Rule Violations channel
9 - acts as Help channel- clientsided message
65535 - DO NOT CHANGE THE ID- only "name", "enabled", "active" and "logged" tags available
-->
<channel id="1" name="Party"/>
<channel id="2" name="Staff" access="3"/>
<channel id="3" name="Rule Violations" logged="yes"/>
<channel id="4" name="Counselor" access="1"/>
<channel id="5" name="Game-Chat" level="2"/>
<channel id="6" name="Trade" level="8" muted="120" conditionId="2" conditionMessage="You may only place one offer in two minutes.">
<vocation id="1-8"/>
</channel>
<channel id="7" name="Trade-Rookgaard" level="2" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes.">
<vocation id="0"/>
</channel>
<channel id="8" name="RL-Chat" level="2"/>
<channel id="9" name="Help" logged="yes"/>
<channel id="10" name="Others"/>
<channel id="65535" name="Private Chat Channel"/>
</channels>



#tosse12
This is old system npc no new.
as well as general
npcHandler:say('Hello, do you love me?', cid)== Selfsay
 
woot ?! npcHandler:say('There, you are now able to use all addons!', cid) = not old, that's in NPC chat....
and when you type hi, you will automatic come to npc chat and being able to chat with the npc without someone to see what you types.

edit:
I use TFS 0.3.5.
Ehm, test to update to 0.3.6 ?
 
this debugs for some reason :/
Code:
doPlayerSendChannelMessage(cid, '', 'Hello World', TALKTYPE_PRIVATE_PN, CHANNEL_PRIVATE)
 
Back
Top