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

Setting Temple Pos in 8.6 tfs 1.2

Jtk

Member
Joined
Feb 4, 2018
Messages
15
Reaction score
1
So where would I set in my config.lua for the player to log into the temple, thanks in advance for the help <3

Lua:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75
-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome."
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "Teagan"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 25
-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1
-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"
-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000
-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "evo"
mapAuthor = "Komic"
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "test"
mysqlPass = "test"
mysqlDatabase = "evo db"
mysqlPort = 3306
mysqlSock = ""
-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1
-- Monsters
deSpawnRange = 2
deSpawnRadius = 50
-- Stamina
staminaSystem = true
-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true
-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = false
-- Status server information
ownerName = ""
ownerEmail = ""
url = "https://otland.net/"
location = "Sweden"
 

KearaOT

KearaOT Custom Mid/High
Joined
Feb 4, 2018
Messages
129
Reaction score
67
Location
UK
You can edit towns on remere's map but if ppl want change temple position(residence) u need to be fix town's and scripts.

One example in movements:

Code:
function onStepIn(cid, item, pos)
    if item.actionid==50103 then
        newpos = {x = 32732, y = 31634, z = 7}
        doPlayerSetTown(cid, 1)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your residence to Ab/'Dendriel")
        doTeleportThing(cid, newpos)
        doSendMagicEffect(newpos, 12)

        return true
    end
end


You need to fix actioID on teleport in remeres map
 

xNMExReject

Member
Joined
Oct 31, 2009
Messages
28
Reaction score
8
For anyone who looks this up later like I did, TFS 1.2~ has a movement already for this: Citizen.lua
Use portal with id: 1387
Set the actionID to a value greater than 30020, the code will subtract 30020 from the actionID set on the portal and apply that number as the players town ID. For example: Portal with actionID of 30025 will set the players town ID to 5 when they step into the portal.

Hope this helps.
 
Top