I want to make when player die, and when he press "to vilage" he teleport to mine desired spot. I use l2j.server but in config I dont found "spawn after death" then it must be in java :
But when i change in java MapRegionTable this : it nothink happens, help :)
Hey! It's been years since I tried this, just redownloaded everything for the nostalgia but I'm having the "mismatch" problem.
You were right, I used another system, not the one from the post! My bad!
Now I can't find the system that works with AuthGateD 🤣
I see you have found it and uploaded it but the link you provided no longer works. If you are still around, can you please reupload? Thank you!
Question
bembis
I want to make when player die, and when he press "to vilage" he teleport to mine desired spot. I use l2j.server but in config I dont found "spawn after death" then it must be in java :
But when i change in java MapRegionTable this : it nothink happens, help :)
// Checking if in an instance
if (player.getInstanceId() > 0)
{
Instance inst = InstanceManager.getInstance().getInstance(player.getInstanceId());
if (inst != null)
{
coord = inst.getSpawnLoc();
if (coord[0] != 0 && coord[1] != 0 && coord[2] != 0)
return new Location(82752 + Rnd.get( -100,100), 53583 + Rnd.get( -100,100), -1499);
3 answers to this question
Recommended Posts