Jump to content
  • 0

Spawn Cordenadas Code


nortim

Question

 

Could someone create the code for the char to be born in the same area without changing the respawns?

Example, I hedge an area and in the .properties file I edit the coordinates of when the players die inside it ..

Could someone please do?

Link to comment
Share on other sites

Recommended Posts

  • 0
default:
if (activeChar.getKarma() > 0 && Config.ALT_KARMA_TELEPORT_TO_FLORAN)
{
  loc = new Location(17836, 170178, -3507);// Floran Village
  break;
}
if (activeChar.isInsideZone(L2Character.ZONE_FLAG))
{
  Location[] flagLocations =
  {
   new Location(1,2,3),
   new Location(1,2,3),
   new Location(1,2,3),
   new Location(1,2,3),
   new Location(1,2,3)
   };
   loc = flagLocations[Rnd.get(5)];
   break;
}
loc = MapRegionData.getInstance().getTeleToLocation(activeChar, MapRegionData.TeleportWhereType.Town);
break;
}

Replace L2Character.ZONE_FLAG with the correct field name of the flag zone. (Just go to L2Character and see how FlagZone is named).

 

Or

write into the parenthesis L2Character. and press control + Space to see available zones.

 

 

Solumon, you have to put the coordinates to be edited in an .ini / .properties file ..?

Edited by nortim
Link to comment
Share on other sites

  • 0

 

 
I want to thank you sincerely for all my goodwill and patience with me, it worked perfectly! Thank you very much!
 
;D  ;D  ;D  ;D  ;D  ;D  ;D  ;D

 

No problem to help you once again. Consider marking my post as the answer to this topic so other people can find it :)

Link to comment
Share on other sites

  • 0

 

 
I want to thank you sincerely for all my goodwill and patience with me, it worked perfectly! Thank you very much!
 
;D  ;D  ;D  ;D  ;D  ;D  ;D  ;D

 

Locked then.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...