Jump to content

Automatic Random Zone Changer


Recommended Posts

5 minutes ago, Gezis said:

I make zone with creat zone modification. 

Just try 2 other zones from another xml as they are if that works then you doing something wrong on xml (if your console have not errors ofc)

Link to comment
Share on other sites

4 hours ago, StinkyMadness said:

Just try 2 other zones from another xml as they are if that works then you doing something wrong on xml (if your console have not errors ofc)

Thank you, with other zone xml works fine. I make own zone :) and working now.

Link to comment
Share on other sites

  • 1 month later...

When char die and press to village he respawn nearest town
i need respawn char to custom locations on custom zone if valakas zone custom respawns on valakas zone if antharas zone custom respawns on antharas zone. please help.

Edited by martuxas1
Link to comment
Share on other sites

  • 10 months later...
  • 7 months later...

Hey guys im playing around with l2jsunrise h5 source right now, can you give me an overview how to adapt it for it, if anyone is familiar with sunrise, i think its no need to create a few of the classes i can use the made ones and import some of the logic in.

Link to comment
Share on other sites

  • 5 months later...
        int random = Rnd.get(1, getZonesCount());    


        currentZoneId = currentZoneId == random ? MathUtil.limit(Rnd.get(++currentZoneId, getZonesCount()), 1, getZonesCount()) : random;

 

@Kara @Tryskell @SweeTs @StinkyMadness  @Elfocrash

 

i know i late a bit :) but it can be done like this .

Edited by AbsolutePower
Link to comment
Share on other sites

  • 1 year later...
else if (_requestType == 4)
{
  if (player.isInsideZone(ZoneId.RANDOM))
    loc = RandomZoneTaskManager.getInstance().getCurrentZone().getLoc();
  else if (!player.isFestivalParticipant() && !player.isGM())
    return;
  else
    loc = player.getPosition();
}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...