• 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!

town citizen script

Sir MoX

New Member
Joined
Jan 14, 2009
Messages
285
Reaction score
1
hi, I was hoping could give me the script that when you step in a teleport you teleport to the middle of the temple with that townid
my city is Camelot the coordenates are 1000 1000 7 and the townid is 1.:p
Please someone =)
I rep++
 
hi, I was hoping could give me the script that when you step in a teleport you teleport to the middle of the temple with that townid
my city is Camelot the coordenates are 1000 1000 7 and the townid is 1.:p
Please someone =)
I rep++

Code:
function onStepIn(cid, item, position, fromPosition)
	if(item.actionid == 1337) then
		local townpos = {x=1000, y=1000, z=7}
		doPlayerSetTown(cid, 1)
		doTeleportThing(cid, townpos)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are now a resident of " .. getTownName(townId) .. ".")
	end

	return true
end
something?
 
why not use the one that comes default with TFS?

Code:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid > 30020 and item.actionid < 30100 then
		doPlayerSetTown(cid, item.actionid - 30020)
	end
	return TRUE
end
set
aid to 30021 for townid 1
aid to 30022 for townid 2
etc....
 
why not use the one that comes default with TFS?

Code:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid > 30020 and item.actionid < 30100 then
		doPlayerSetTown(cid, item.actionid - 30020)
	end
	return TRUE
end
set
aid to 30021 for townid 1
aid to 30022 for townid 2
etc....

+1 gives less lag
 
Back
Top