• 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!

TFS 1.X+ help me with this script please

Status
Not open for further replies.

darknelson

Member
Joined
Jun 19, 2011
Messages
190
Solutions
1
Reaction score
15
Code:
function onStepIn(creature, item, position, fromPosition)
    if getPlayerStorageValue(cid, 11757) < 0 then
            player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "NECESITAS DESBLOQUEAR EL ACCESO EN EL STORE.")
            creature:teleportTo(fromPosition)
            else
            player:teleportTo({x = 32372, y = 32236, z = 4})
            player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    end
    return true
end


Lua Script Error: [MoveEvents Interface]
data/movements/scripts/viptile3.lua:onStepIn
data/movements/scripts/viptile3.lua:7: attempt to compare boolean with number
stack traceback:
[C]: in function '__lt'
data/movements/scripts/viptile3.lua:7: in function <data/movements/scripts/viptile3.lua:2>
 
Read the board rules.
When you figure out what you did wrong (hint: your title, TFS/Version, an explanation of the problem), report your own post with a message such as "I want to edit my thread title to: [...]".
You will not receive any help until you do so.

Locking the thread until further notice.
 
Status
Not open for further replies.
Back
Top