Hey Otland!
I have lil problem again with those crazy functions. In my previous TFS 0.3.6 there was a great function doSendMagicEffect and doSendAnimatedText. And I had sweet script, like this:
With this functions
doSendMagicEffect
doSendAnimatedText
And It looked like this:
When i copied this script in to my TFS I see this error:
Question:
I saw answer in another thread but they fixed this only for numbers. What I did: I add into compact.lua this:
And It seems to be fine with doSendMagicEffect but I still cant win with the doSendAnimatedText Anyone knows how to fix that?
I have lil problem again with those crazy functions. In my previous TFS 0.3.6 there was a great function doSendMagicEffect and doSendAnimatedText. And I had sweet script, like this:
Lua:
local positions = {
[".VIP."] = {x = 1888, y = 1423, z = 5},
["Karmia"] = {x = 1104, y = 993, z = 6},
["Vip Arena"] = {x = 1069, y = 1096, z = 9},
["Facc Arena"] = {x = 1073, y = 1096, z = 9},
["Karmia"] = {x = 1081, y = 1093, z = 9},
["Heta"] = {x = 1082, y = 1093, z = 9},
["Premy"] = {x = 1083, y = 1093, z = 9},
["Desert"] = {x = 1084, y = 1093, z = 9},
["Inferno"] = {x = 1085, y = 1093, z = 9},
["Venore"] = {x = 1086, y = 1093, z = 9},
["Folda"] = {x = 1081, y = 1099, z = 9},
["Tiquanda"] = {x = 1081, y = 1100, z = 9},
["@ITEMS@"] = {x = 1888, y = 1425, z = 8},
["*SHOP*"] = {x = 1891, y = 1424, z = 7},
["*BACK*"] = {x = 1721, y = 1553, z = 7},
["!BACK!"] = {x = 1780, y = 1547, z = 7},
["Amor"] = {x = 1081, y = 1101, z = 9},
["Trainers"] = {x = 1885, y = 1424, z = 7},
["Arena"] = {x = 1888, y = 1426, z = 6},
["Quests"] = {x = 1054, y = 1097, z = 9},
["Exp"] = {x = 1888, y = 1424, z = 7},
["!Quests!"] = {x = 1884, y = 1420, z = 7},
["TEST SERVER"] = {x = 1885, y = 1421, z = 8},
}
local effects = {39, 34}
function onThink(interval, lastExecution)
for text, pos in pairs(positions) do
doSendMagicEffect(pos, effects[math.random(1, #effects)])
doSendAnimatedText(pos, text, math.random(1, 254))
end
return true
end
With this functions
doSendMagicEffect
doSendAnimatedText
And It looked like this:
When i copied this script in to my TFS I see this error:
Question:
I saw answer in another thread but they fixed this only for numbers. What I did: I add into compact.lua this:
Lua:
function Player.sendMagicEffect(self, effect)
self:getPosition():sendMagicEffect(effect)
return true
end
And It seems to be fine with doSendMagicEffect but I still cant win with the doSendAnimatedText Anyone knows how to fix that?