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

Citizen Teleporter < Help

Northnorial

Member
Joined
May 30, 2009
Messages
742
Reaction score
5
Location
Germany
I'm using TFS 0.3.5

And this is the script for the citizen teleporter:
PHP:
function onStepIn(cid, item, position, fromPosition)
	if(item.actionid > 30020 and item.actionid < 30100) then
		local townId = (item.actionid - 30020)
		doPlayerSetTown(cid, townId)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
	end

	return true
end

But Idk how to use this script, or what I have to add in the script, and what I add in the magic forcefield ...

Please help!

rep +
 
yes, it's in the Magic Field put Actiond ID 30021 it the town ID is 1 and Action ID 30022 if town ID is 2.......i think you know how to continue....



PD:[(Not 100% sure)Not Tested]
 
I found this in my movements.xml ...

PHP:
	<!-- Citizen teleport -->
	<movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>


And i have to put
Actiond ID 30021 it the town ID is 1 and Action ID 30022 if town ID is 2
into the magic forcefield ?
 
Back
Top