• 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!

TFS 1.X+ make npc const me blue after him say

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
931
Solutions
7
Reaction score
128
Location
Brazil
YouTube
caruniawikibr
Lua:
npcHandler:say({
                'I will tell you something,...',
                'Exana aleta. ...',
            }, cid)
            doSendMagicEffect(CONST_ME_MAGIC_BLUE)
            npcHandler.topic[cid] = 1
        else
            npcHandler:say("You don't meet the requirements for the reward.", cid)
        end
How do I make the NPC const me blue "he is the NPC" and not the player after he talk exana aleta
 
Npc():getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
It works like this but it shines before exana aleta because there are other phrases before it
Now I'll see how to assemble
 
Npc():getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
It works like this but it shines before exana aleta because there are other phrases before it
Now I'll see how to assemble
Use addEvent with some delay to send magic effect in the correct time
 
Npc():getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
It works like this but it shines before exana aleta because there are other phrases before it
Now I'll see how to assemble
Indeed, as mentioned by Mano368, you may either implement the addevent or share the complete script, and I will handle the task accordingly. This approach offers a straightforward and convenient solution.
 
Back
Top