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

Solved Effects

Adel

New Member
Joined
Apr 16, 2011
Messages
39
Reaction score
3
How to edit effects i got this effects working but when i try to add one it doesn't work i don't know and even what's is working not work !

My script

function onThink(interval, lastExecution)

local texts =
{
-- Nova
["Trainers"] = {{x=32372, y=32236, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Trainers "] = {{x=32350, y=32223, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Games!"] = {{x=32366, y=32236, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
}

for text, param in pairs(texts) do
doSendAnimatedText(param[1], text, param[3])
doSendMagicEffect(param[1], param[2])
end
return TRUE
end
 
You want 1 position to have more effects? You can change the second value for the effect to a table and add the effects you want there.
Example:
Code:
["Trainers"] = {{x=32372, y=32236, z=7}, {CONST_ME_YELLOW_RINGS, CONST_ME_MAGIC_BLUE}, TEXTCOLOR_DARKYELLOW},
Then use math.random to get a random effect from the table.
Code:
doSendMagicEffect(param[1], param[2][math.random(#param[2])])
 
You want 1 position to have more effects? You can change the second value for the effect to a table and add the effects you want there.
Example:
Code:
["Trainers"] = {{x=32372, y=32236, z=7}, {CONST_ME_YELLOW_RINGS, CONST_ME_MAGIC_BLUE}, TEXTCOLOR_DARKYELLOW},
Then use math.random to get a random effect from the table.
Code:
doSendMagicEffect(param[1], param[2][math.random(#param[2])])
[/QUOTEWhat i d

Here's what i did in the script but it's not workin may u know why?

function onThink(interval, lastExecution)

local texts =
{
-- Nova
["Trainers"] = {{x=32372, y=32236, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Trainers "] = {{x=32350, y=32223, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Games!"] = {{x=32366, y=32236, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Temple"] = {{x=2617, y=740, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Trainers2"] = {{x=2617, y=743, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Temple "] = {{x=138, y=306, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}

}

for text, param in pairs(texts) do
doSendAnimatedText(param[1], text, param[3])
doSendMagicEffect(param[1], param[2])
end
return TRUE
end




if u know how fix the script and post it,Thank You.
 
You need to add comas ( , ), at the end of each line. where you have local texts
Code:
["Games!"] = {{x=32366, y=32236, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Temple"] = {{x=2617, y=740, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Trainers2"] = {{x=2617, y=743, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Temple "] = {{x=138, y=306, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
 
Here's what i did in the script but it's not workin may u know why?

function onThink(interval, lastExecution)

local texts =
{
-- Nova
["Trainers"] = {{x=32372, y=32236, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Trainers "] = {{x=32350, y=32223, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
["Games!"] = {{x=32366, y=32236, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Temple"] = {{x=2617, y=740, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Trainers2"] = {{x=2617, y=743, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}
["Temple "] = {{x=138, y=306, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN}

}

for text, param in pairs(texts) do
doSendAnimatedText(param[1], text, param[3])
doSendMagicEffect(param[1], param[2])
end
return TRUE
end
You need to add comas ( , ), at the end of each line. where you have local texts
Code:
["Games!"] = {{x=32366, y=32236, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Temple"] = {{x=2617, y=740, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Trainers2"] = {{x=2617, y=743, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
["Temple "] = {{x=138, y=306, z=7}, CONST_ME_MAGIC_BLUE, TEXTCOLOR_GREEN},
That worked ty.
 
Back
Top