• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua come to difrent tempel when die

dunnish

New Member
Joined
Jun 18, 2009
Messages
277
Solutions
1
Reaction score
3
hello anyone know how to make you will come to difrent tempel when you die like you come to venore and next time you die you come to thais
 
LUA:
local config = 
{	
	-- you can write here a town's name or town's id
	"I Town", "II Town", "III Town", 4
}

function onDeath(cid, corpse, deathList)
	local town = config[math.random(0, #config)]
	if (type(town) == "string") then
		town = getTownId(town)
	end
	
	doPlayerSetTown(cid, town)
	return true
end
 
Back
Top