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

TFS 1.X+ Dynamic depot's depotid [8.6]

VitoxMaster

Member
Joined
Feb 6, 2023
Messages
38
Reaction score
16
Hi everyone,
I haven't found a topic with similar question related to depot's depotid. Usually if someone wanted to assign townid (depotid) to depot it was marked that it can be achieved via RME. In my case I want to spawn depot dynamically (by script/actions) and assign townid(depotid) to it. If I just use:
Lua:
Game.createItem(2591, 1, position)
working depo is spawned, but it's not assigned to any of city. Do you guys know any possibility how to make it? Is it achievable via items.xml or require engine source code changes?

I'm working on similar mechanism like hireling one but the goal is to 'spawn' depot in your home. Neglect part of storing data in database to keep depots after restart - I've made something already.

Thanks!
TFS1.5 downgrade 8.6
 
Last edited:
Back
Top