[DiscordArchive] What would be the cleanest way to update character's start location and make it so they all start at
[DiscordArchive] What would be the cleanest way to update character's start location and make it so they all start at
Archived author: Mat • Posted: 2022-10-15T20:57:31.067000+00:00
Original source
What would be the cleanest way to update character's start location and make it so they all start at the same place? A module that clears and rewrites `playercreateinfo`?
Archived author: Bench • Posted: 2022-10-15T20:58:27.635000+00:00
Original source
I mean just a SQL query would do it
Archived author: Mat • Posted: 2022-10-15T20:58:50.340000+00:00
Original source
right but where do you put it / how does it get executed?
Archived author: Bench • Posted: 2022-10-15T21:00:06.269000+00:00
Original source
You'd run it through a SQL client like HeidiSQL on your world DB
Archived author: Mat • Posted: 2022-10-15T21:00:58.194000+00:00
Original source
yeah that makes sense, I'm looking to do it in a way that's portable and would be persisted next time I install the server on a brand new machine though, hence why I thought about the module approach and have a sql file part of the module but that might not be right approach
Archived author: Bench • Posted: 2022-10-15T21:02:05.110000+00:00
Original source
I think the worldserver will run it if it's placed in /data/sql/custom
Archived author: Mat • Posted: 2022-10-15T21:02:16.517000+00:00
Original source
sounds good, thank you
Archived author: Bench • Posted: 2022-10-15T21:02:36.251000+00:00
Original source
Something like this would work
```UPDATE `playercreateinfo` SET `map`='number', `zone`='number', `position_x`='number', `position_y`='number', `position_z`='number', `orientation`='number';```
Archived author: Dreadmaster • Posted: 2022-10-15T21:17:10.013000+00:00
Original source
there's still an uh
![[Image: unknown.png?ex=690c6797&is=690b1617&hm=3...3978d3457&]](https://cdn.discordapp.com/attachments/284406375495368704/1030952504097263676/unknown.png?ex=690c6797&is=690b1617&hm=3801c4fae311303f0e2006f5b460a87dcc9dc33fa779abc471a2bf23978d3457&)
Archived author: Dreadmaster • Posted: 2022-10-15T21:17:11.222000+00:00
Original source
![[Image: unknown.png?ex=690c6797&is=690b1617&hm=3...3978d3457&]](https://cdn.discordapp.com/attachments/284406375495368704/1030952504097263676/unknown.png?ex=690c6797&is=690b1617&hm=3801c4fae311303f0e2006f5b460a87dcc9dc33fa779abc471a2bf23978d3457&)