otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

creature:say(text, type[, ghost = false[, target = nullptr[, position]]]) is interacting with npc's. #708

Closed PrinterLUA closed 10 years ago

PrinterLUA commented 10 years ago

Hi, when i have a script ex. local player = Player(cid) player:say("hi", TALKTYPE_SAY)

If im close to a npc, it talks to me.

kornholi commented 10 years ago

Well what do you expect...? On Apr 4, 2014 2:33 PM, "PrinterLUA" notifications@github.com wrote:

Hi, when i have a script ex. local player = Player(cid) player:say("hi", TALKTYPE_SAY)

If im close to a npc, it talks to me.

Reply to this email directly or view it on GitHubhttps://github.com/otland/forgottenserver/issues/708 .

PrinterLUA commented 10 years ago

I did not expect that, npc will respone. I thougt it was just like TALKTYPE_ORANGE_1 or something.

marksamman commented 10 years ago

TALKTYPE_ORANGE_1 also triggers onCreatureSay for NPCs. I don't see the issue. On Apr 4, 2014 3:37 PM, "PrinterLUA" notifications@github.com wrote:

I did not expect that, npc will respone. I thougt it was just like TALKTYPE_ORANGE_1 or something.

Reply to this email directly or view it on GitHubhttps://github.com/otland/forgottenserver/issues/708#issuecomment-39603115 .