Hello otland! I made this NPC that shows you the way using the CONST_ME_TUTORIALARROW effect.
Ex like this :
The thing with this is that, well yes it works perfectly when Im the only player talking with the npc, but I asume that this would be terrible with some like 10+ players. Is there something like pos:getMagicEffect(effect)? So that I could check if the effect is already on display putting some sort of delay on it.
Ex like this :
Lua:
local passage = {
x = 1068,
y = 1010,
z = 7
}
local stairLocations = {
l = Position({
x = 1058,
y = 989,
z = 6
}),
r = Position({
x = 1059,
y = 989,
z = 6
})
}
--Some not important code
elseif talkState[talkUser] == 3 then
stairLocations.l:sendMagicEffect(CONST_ME_TUTORIALARROW)
stairLocations.r:sendMagicEffect(CONST_ME_TUTORIALARROW)
The thing with this is that, well yes it works perfectly when Im the only player talking with the npc, but I asume that this would be terrible with some like 10+ players. Is there something like pos:getMagicEffect(effect)? So that I could check if the effect is already on display putting some sort of delay on it.