@@ Hello friends, i'm have a problem with a movement for sell items...
This is my script and him make a many error on console:
-- When i'm take item on a tile send this error:
-- And when i'm delete ANIMATED TXT, this make other error:
--- Plx someone help on this, i't a evolution on my server, to prevent lags and others...
Many thx for all...
This is my script and him make a many error on console:
-- Sistema de vendas usando movimentos BY F@bio -- Fudera Otserver...
function onAddItem(moveitem, tileitem, position, cid)
local playerPos = getCreaturePosition(cid)
if moveitem.itemid == 2498 then
doPlayerAddMoney(cid, 18000)
doRemoveItem(moveitem.uid) --royal helmet
doSendMagicEffect(position, CONST_ME_HITBYFIRE)
doSendAnimatedText(playerPos, "$$$", TEXTCOLOR_GOLD)
end
return TRUE
end
-- When i'm take item on a tile send this error:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/sell_move.luanAddItem
attempt to index a number value
stack traceback:
[C]: in function 'doSendAnimatedText'
data/movements/scripts/sell_move.lua:10: in function <data/movements/scr
ipts/sell_move.lua:3>
-- And when i'm delete ANIMATED TXT, this make other error:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/sell_move.luanAddItem
luaGetCreaturePosition(). Creature not found
--- Plx someone help on this, i't a evolution on my server, to prevent lags and others...
Many thx for all...