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

Talking signs not sending effects on 0.4

Status
Not open for further replies.

Grehy

Killroy
Joined
Nov 21, 2008
Messages
2,631
Reaction score
33
Location
United States
Using this script;

Code:
local text =  {
        --X pos,Y pos, Z pos, text
        [1] = {pos = {1001,1490,7}, text = {"Full MP"}},
        [2] = {pos = {1001,1491,7}, text = {"Full HP"}}
        }

        local effects = {
        --X pos,Y pos, Z pos, text
        [1] = {pos = {1095,1217,7}, effect = {13}},
        [2] = {pos = {1096,1217,7}, effect = {12}}
        }

function onThink(interval, lastExecution)
        for _, area in pairs(text) do
                doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
        end
        for _, area in pairs(effects) do
                doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
        end
        return TRUE
end

It is only sending the text, not effects. I don't know what was changed in 0.4 to make the effects not send, there are no errors in console so I'm not sure what to change. Any help would be appreciated, thanks
 
Status
Not open for further replies.
Back
Top