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

[8.1]Creaturescript Help

Hekan

New Member
Joined
Jun 14, 2008
Messages
94
Reaction score
0
Hello can someon help me with that script?

Code:
function onLogin(cid)
local config = {
	town_facc = {x=438, y=508, z=8}   -- Pozycja temple miasta, do jakiego ma przenosic jezeli gracz nie ma pacc
	town_pacc1 = {x=425, y=632, z=7}  -- POzycja temple pierwszego miasta dla pacc
	town_pacc2 = {x=359, y=493, z=7}  -- Pozycja temple drugiego miasta dla pacc
	town_pacc3 = {x=481, y=429, z=7}  -- Pozycja temple trzeciego miasta dla pacc
	town_pacc4 = {x=242, y=309, z=7}  -- Pozycja temple czwartego miasta dla pacc
	town_pacc5 = {x=402, y=385, z=6}  -- Pozycja temple piatego miasta dla pacc
	town_pacc6 = {x=706, y=319, z=7}  -- Pozycja temple szostego miasta dla pacc
	town_pacc7 = {x=1021, y=1869, z=8}  -- Pozycja temple siodmego miasta dla pacc
}
local player_town = getPlayerTown(cid)

if (isPremium(cid) == 0) then
if (player_town == (config.town_pacc1 or config.town_pacc2 or config.town_pacc3 or config.town_pacc4 or config.town_pacc5 or config.town_pacc6 or config.town_pacc7)) then
	doTeleportThing(cid, config.town_facc)
	doPlayerSetTown(cid,config.town_facc)
end
end
end
 
Last edited:
Emm script not working ^^ When premium account end script teleport player to facc town and it not working. I thing wrong is in line 2
local config = {
 
Code:
function onLogin(cid)
	local config = {
	premium_towns = { 1, 2, 3, 4 },
	facc_town = { 5 }
	}

	if isPremium(cid) == FALSE and isInArray(config.premium_towns, getPlayerTown(cid)) == TRUE then
		doPlayerSetTown(cid, config.facc_town)
	end
end

Use IDs not temple pos, shorten, improved.
When changing town player is automatically teleported.
 
Back
Top