• 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 doSendMagicEffect (dude with getSpectators)

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
586
Solutions
1
Reaction score
58
for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 0, 0)) do
if(isPlayer(tid)) then
doSendMagicEffect(tid,55)
end
end


it's posible send magic effect, only see player active effects, i want for create tutorial.
 
yes its possible, heres an example
Code:
local people = Game.getSpectators(pos, 7, 7, 5, 5, false, true)
    if not people then
        return true
    end
 
    for i = 1, #people do
        people[i]:sendTextMessage(MESSAGE_EXPERIENCE, "Magic wall will disappear in " .. delay .. " second" .. (delay > 1 and "s" or "") .. ".", pos, delay, color)
    end
 
Code:
doSendMagicEffect(cid, effect, cid)
The second cid makes it so only this player can see the effect.
 
yes its possible, heres an example
Code:
local people = Game.getSpectators(pos, 7, 7, 5, 5, false, true)
    if not people then
        return true
    end

    for i = 1, #people do
        people[i]:sendTextMessage(MESSAGE_EXPERIENCE, "Magic wall will disappear in " .. delay .. " second" .. (delay > 1 and "s" or "") .. ".", pos, delay, color)
    end

thanks, work only with second cid,
doSendMagicEffect(cid, effect, cid)

your script its good i have others uses for your script, thanks :D
 
Back
Top