using tfs 1.0
Lua Script Error: [Action Interface]
data/actions/scripts/slot.luanUse
data/actions/scripts/slot.lua:189: attempt to call global 'mayNotMove' (a nil value)
stack traceback:
[C]: in function 'mayNotMove'
data/actions/scripts/slot.lua:189: in function <data/actions/scripts/slot.lua:136>
the latest oneWhich protocol of TFS 1.0?
<event class="Player" method="onMoveItem" enabled="0"/>maybe he didn't enabled onmove events on events.xml?
both are on now but still the same error
when I remove the line, the script will work but the mayNotMove function is important xDI'll see later when I have free time.
change
toLua:local money = 1000
changeLua:local cost_item, cost_count = 2159, 1
toLua:if not doPlayerRemoveMoney(cid, money) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'You need '..money..' gps to play Slot Machine.') end
deleteLua:if not doPlayerRemoveItem(cid, cost_item, cost_count) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'You need '.. cost_count ..' '.. getItemNameById(cost_item) ..' to play Slot Machine.') end
Lua:doSendAnimatedText(getThingPos(cid), '-$'..money,COLOR_RED)