Hey, I'm trying to get into LUA and all, but I'm having trouble with a simple script...
Basically, I'm making a little elevator in my depot. There is a tile in the back with the item ID of 426 and a unique ID of 4266. I'm trying to make it to where when I walk on the tile, it teleports me to a certain spot on the upper level of the depot... It's not working at all, I've been reading tutorials for a while, I just want to get this down.
I put the dptele.lua file into data/movements/scripts. I hope that's right, because I don't exactly know where to place my scripts... Anyways, here is my code.
Any help would be appreciated, I imagine its pretty simple for some of you guys. Thanks.
Basically, I'm making a little elevator in my depot. There is a tile in the back with the item ID of 426 and a unique ID of 4266. I'm trying to make it to where when I walk on the tile, it teleports me to a certain spot on the upper level of the depot... It's not working at all, I've been reading tutorials for a while, I just want to get this down.
I put the dptele.lua file into data/movements/scripts. I hope that's right, because I don't exactly know where to place my scripts... Anyways, here is my code.
Code:
local topdp1 = {x=1022, y=983, 6}
function onStepIn(cid, item, position, fromPosition)
if item.uid == 4266 then
doTeleportThing(cid,topdp1)
end
Any help would be appreciated, I imagine its pretty simple for some of you guys. Thanks.