• 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 Talking Sign/Teleports

Blysco

New Member
Joined
Oct 12, 2013
Messages
163
Reaction score
2
error-png.22921


I use TFS 0.3.7 Crying damson Tibia version 9.83

I dont understand what the problem is please help me !
 
Code:
[code=lua]local config = {
positions = {
{pos = { x =32345, y =32228, z= 4 }, text = "Yalahar", effects = {CONST_ME_MAGIC_BLUE}},
{pos = {x = 32350,y = 32230,z = 4 }, text = "Trainer"}
},
effects = {CONST_ME_POFF, CONST_ME_TELEPORT, CONST_ME_MAGIC_RED}
}

function onThink(interval)
local people = getPlayersOnline()
if #people == 0 then
return true
end

for _, info in pairs(config.positions) do
doPlayerSay(people[1], info.text, TALKTYPE_MONSTER_SAY, false, 0, info.pos)
if info.effects and #info.effects > 0 then
doSendMagicEffect(info.pos, info.effects[math.random(#info.effects)])
elseif config.effects and #config.effects > 0 then
doSendMagicEffect(info.pos, config.effects[math.random(#config.effects)])
end
end
return true
end
[/CODE]


Whats wrong ?
 
omg im so stupid hahahahahha thank you !!!!
-.-.-.-
I always was looking what is wrong in the script but i dont looked to the simple things :D
 
Back
Top