• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

temple

there all correct but how can i make a teleport to make it where they have selected that to be there death location
 
XML:
<movevent event="StepIn" uniqueid="30303" script="city.lua" />

Lua:
function onStepIn(cid, item, position, fromPosition)
local townId = 1 -- your town id please.
	doPlayerSetTown(cid, townId)
	doPlayerSendTextMessage(cid, 19, "Welcome new resident of CityName.") -- change the message if you want.
	return TRUE
end
 
you put them in movements and to make the teleport work go into map editor put the portal where you want then change the uniqueid of the portal to what you want in this case "30303" then select where you want to be tped to hope you get it :)
 
i put the codes into the right spots that u had told me
xml file in movement xml file

Code:
<movevent event="StepIn" uniqueid="30303" script="city.lua" />
lua file in movement scripts
Code:
function onStepIn(cid, item, position, fromPosition)
local townId = 2 -- your town id please.
	doPlayerSetTown(cid, townId)
	doPlayerSendTextMessage(cid, 19, "Welcome new resident of rhyves.") -- change the message if you want.
	return TRUE
end
and it dont show the message
 
change this
XML:
<movevent event="StepIn" uniqueid="30303" script="city.lua" />
to
XML:
<movevent type="StepIn" uniqueid="30303" event="script" value="city.lua" />
 
Back
Top