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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock