Well, i thought i need to learn lua, i find it kinda easy, but there are some things i just cant understand or i cant make them work, so i hope you can help me with my doubts.
_______________________________
Like here:
function onStepIn(cid, item, pos, fromPos), i think all that stuff (cid, item, pos~) its what the script calls right? like the script will use a item, a position etc.... but what cid means? my first guess is like creature id (the player that use the script).
_______________________________
Ok, so i'm making this script, when you step in a tile you'll be teleported to another tile (i dont want to use tp's thanks), i'll use it just in a few parts of the map like shortcuts in the city....
So thats my script
I'ts not working on the latest 0.4....
i wish some one can tell me why, maybe doTeleportPlayer is no longer supported... but i couldnt find another function for teleport
thats all for now i hope you can help me with this basic things.
_______________________________
- What CID means?
Like here:
function onStepIn(cid, item, pos, fromPos), i think all that stuff (cid, item, pos~) its what the script calls right? like the script will use a item, a position etc.... but what cid means? my first guess is like creature id (the player that use the script).
_______________________________
Ok, so i'm making this script, when you step in a tile you'll be teleported to another tile (i dont want to use tp's thanks), i'll use it just in a few parts of the map like shortcuts in the city....
So thats my script
LUA:
function onStepIn(cid, pos, fromPos)
doTeleportPlayer(cid,1025,985,7,CONST_ME_ENERGYAREA)
return false
end
I'ts not working on the latest 0.4....