monodark
New Member
Hi folks,
I got this strange thing, I created a few tiles in my map with action ID 25252, but the script is not triggered when I step on the tile.
Added this to my movements.xml:
This is the lua file:
This function is custom (and tested):
When I look through the source code of TFS 1.0 I can't find anything wrong either.
All the help I can get is appreciated!
Thanks in advance.
I got this strange thing, I created a few tiles in my map with action ID 25252, but the script is not triggered when I step on the tile.
Added this to my movements.xml:
Code:
<movement event="StepIn" actionid="25252" script="viptile.lua"/>
This is the lua file:
Code:
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
if not player then
return
end
if getPlayerVipDays(cid) == 0 then
doTeleportThing(cid, fromPosition, FALSE)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You are not allowed in the VIP area.")
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "You entered the VIP area.")
end
return true
end
This function is custom (and tested):
Code:
getPlayerVipDays(cid)
When I look through the source code of TFS 1.0 I can't find anything wrong either.
All the help I can get is appreciated!
Thanks in advance.
Last edited: