• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Wrong magiceffect Script tfs 1.2

jackl90

Member
Joined
Jul 25, 2017
Messages
249
Reaction score
12
Hello guys, i need a help

I'm trying use this script above

LUA:
function onAddItem(item, tileitem, position)
    doRelocate(tileitem:getPosition(),{x = tileitem:getPosition().x + 3, y = tileitem:getPosition().y, z = 07})
    Game.sendMagicEffect(tileitem:getPosition(), 13)
end

but the "sendMagicEffect" is where i put the item... not appear where the item will go.
how i change this, the position of sendMagicEffect? i want in tile where the item will go.


Thanks guys, sorry for my bad english
 
Solution
it's not Game.sendMagicEffect
it's position:sendMagicEffect(effect)
in your case it would be
tileitem:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
it's not Game.sendMagicEffect
it's position:sendMagicEffect(effect)
in your case it would be
tileitem:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
 
Solution
Back
Top