Skip to content

[Help]Custom spawn location, relog ports back.

Featured Replies

I have a custom town location players go to when they die. But when they relog from a server restart or a crash they always get ported back to that custom location. Maybe I did something wrong but how can I make it so they stay where they logged out?

Did you apply this mod through patch?

 

Chcek if you modified something on enterworld it sounds like when players enter the world they are teleported to the custom location?

 

  • Author

well its a faction mod that I turned on. It has the faction base locations. I have the source code so if u could point me towards where I might be able to look at it.

Check enterworld.java changes , faction engines got 90% time a method which make you port.

  • Author

Ok, so would it be some kind of setting that forces players to port at that location on login? I'm not really sure what I should be looking for in this file.

right click on the EnterWorld.java in package explorer, choose "Compara with"  and next choose "latest from repository"

u should look for something like activeChar.teletolocation(parameters) or codes similar to this1

Ok, so would it be some kind of setting that forces players to port at that location on login? I'm not really sure what I should be looking for in this file.

Yea it would be something about teleport just search for teleport in the enterworld file

  • Author

I found it and turned the teleport back to town from true to false but it didn't work.

Delete godamn line and condition :P.

 

Must be something like

 

if (activeChar.isFaction() == 1)

{

    activeChar.teleportblabla....

    activeChar.sendMessage("you have been proted back blabla");

}

 

Delete whole code.

  • Author

Removed the line and worked. Thanks

Removed the line and worked. Thanks

 

Problem solved, topic may be locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.