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

Create New Residence

Asek

New Member
Joined
Oct 15, 2009
Messages
84
Reaction score
0
Location
Poland/Tarnow
I just wanna know how I can create a residence. For example I made a Temple in Oken and a teleporter. How can I make it if I enter the teleporter my residence is Oken?
 
You would have to make a script for that. You would need to add this function to the script.
Code:
	doPlayerSetTown(cid, townid)
But I'm no scripter so I cannot do the script myself sorry.
 
Lua:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid == 12345 then
		local townId = 1
		doPlayerSetTown(cid, townId)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
	end
	return true
end
Lua:
<movevent type="StepIn" itemid="1387" event="script" value="residence.lua"/>
This maybe works.
 
Last edited:
Back
Top