Osillion
New Member
- Joined
- Jan 3, 2010
- Messages
- 47
- Reaction score
- 0
Hi everyone!
This is my first tutorial.
What is this tutorial about?
Step on "XXX" item teleport you to X,Y,Z
First of all go to data,movements, script creat a new file and add this save as specialteleport.lua
Now what you can change:
The place where the player will be teleported to
The item uniqueid
Then go to movements.xml and search <!-- Citizen teleport -->
When you'll find it just add this
Go to your mapeditor place the item somewhere right click on it and add the uniqueid.
Hope It Will Be Helpful!
Yours,
Osillion
REP++ Please
This is my first tutorial.
What is this tutorial about?
Step on "XXX" item teleport you to X,Y,Z
First of all go to data,movements, script creat a new file and add this save as specialteleport.lua
Code:
local nPos = {
x = 1408,
y = 1055,
z = 9
}
function onStepIn(cid, item, frompos, item2, topos)
if item.uid == 4500 then
doTeleportThing(cid, nPos)
end
return TRUE
end
Now what you can change:
Code:
x = 1408,
y = 1055,
z = 9
Code:
if item.uid == 4500 then
Then go to movements.xml and search <!-- Citizen teleport -->
When you'll find it just add this
Code:
<movevent type="StepIn" uniqueid="4500" event="script" value="specialteleport.lua"/>
Go to your mapeditor place the item somewhere right click on it and add the uniqueid.
Hope It Will Be Helpful!
Yours,
Osillion
REP++ Please