• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[LUA] Multi World function

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
93
Location
Sweden, Stockholm
Is there any LUA function to teleport between worlds?

An example

I am going make so when a user create its character there will be 2 character created one on world 1 and one on world 2.

And i was wondering if it is possible to teleport a player between worlds somehow :p
 
World transfer, but in game? Sounds interesting, probably gonna have to run DB query's and make the character log off. Once they log back in, they should have a new world. Another way you could do this is copy/paste your map so two of them exists in the same map file and teleport players between "worlds" (aka. maps), while changing this stuff in the DB.

I recommend making a function which does this, something similar to: setPlayerWorld(cid, world)

Good luck.
 
World transfer, but in game? Sounds interesting, probably gonna have to run DB query's and make the character log off. Once they log back in, they should have a new world. Another way you could do this is copy/paste your map so two of them exists in the same map file and teleport players between "worlds" (aka. maps), while changing this stuff in the DB.

I recommend making a function which does this, something similar to: setPlayerWorld(cid, world)

Good luck.

I want more that for example

one RP server and one PvP server
So you are XX on server1 and level YY on server 2
So when you teleport to the other server you gets logged into the other character instantly (Same name, same map and same pos)

Know any programmer that will be able to do this :P?
 
I'd do what J.Dre said in the first part. Store all character data in SQL query, execute it in the second server.
Then delete everything from the first server. You will have a full transfer.
 
I'd do what J.Dre said in the first part. Store all character data in SQL query, execute it in the second server.
Then delete everything from the first server. You will have a full transfer.

I dont want to change server :P I want to be able to play both at the same time :) Just switch when you feel like it
 
Back
Top