I am using TFS 1.0 and my tiles aren't working. They did however work on 0.2. I do not get an error message at all it is like it doesn't even see the script..
movements.xml:
premium/premium tile uk.lua:
movements.xml:
Code:
<movevent event="StepIn" actionid="825" script="premium/premium tile uk.lua"/>
premium/premium tile uk.lua:
Code:
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 825 then
if isPlayer(cid) then
if isPremium(cid) == false then
doTeleportThing(cid, {x=1425, y=989, z=10}, true)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doCreatureSay(cid, "Sorry, only Premium players are allowed to pass!", TALKTYPE_MONSTER)
doPlayerSendTextMessage(cid, 27, "Premium members only!")
else
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
doPlayerSendTextMessage(cid, 27, "You have entered a premium area.")
doCreatureSay(cid, "Welcome, Premium member!", TALKTYPE_MONSTER)
end
end
end
return true
end