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

Diffrent town pos

KnightmareZ

New Member
Joined
Feb 3, 2008
Messages
607
Reaction score
4
Location
Sweden/Ljungby
Hi, I am making a war server and want charatcers to comes to like.. deffrent temples each time they relog..

I tried some changes in login.lua with help from a friend but didnt work;S

Code:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
	
	local rand = math.random(1,2)
	if rand == 1 then
		doTeleportThing(cid, {x = 1043, y = 1204, z = 7}, FALSE}
	elseif rand == 2 then
		doTeleportThing(cid, {x = 1097, y = 1219, z = 7}, FALSE}
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
	registerCreatureEvent(cid, "PlayerDeath")
	return TRUE
end
 
Back
Top