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

Citizenship Teleports

The Unforgiven

New Member
Joined
Dec 9, 2008
Messages
73
Reaction score
0
You know the teleports that are in the temple of each town in Tibia? Where, if you enter them, you become a citizen of that town? Well... how would I make one with TFS Crying Damson?
 
This would be an Script for it:
function onStepIn(cid, item, pos)

citizen.lua
Code:
function onStepIn(cid, item, pos)

	if item.actionid == 7910 then
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident of Thais.')
		doPlayerSetTown(cid,1)
	elseif item.actionid == 7911 then
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident of Akrahmun.')
		doPlayerSetTown(cid,2)
	elseif item.actionid == 7912 then
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident of Carlin.')
		doPlayerSetTown(cid,3)
	end

	return 1
end

movements.xml
Code:
	<movevent event="StepIn" itemid="1387" script="citizen.lua"/>

You have to edit just the town id's, the action id's and the town names.
Rep++??

Your's ballack13
 
You know the teleports that are in the temple of each town in Tibia? Where, if you enter them, you become a citizen of that town? Well... how would I make one with TFS Crying Damson?

ActionID 30021 = Town ID 1
ActionID 30022 = Town ID 2
ActionID 30023 = Town ID 3
etc.

It's already built-in.
 
Back
Top