Jump to content

Recommended Posts

Posted
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)

Posted
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.

Posted (edited)
17 hours ago, Gezis said:

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

 

Edited by Gezis
  • 1 month later...
Posted (edited)

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
  • 10 months later...
  • 7 months later...
Posted

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.

  • 5 months later...
Posted (edited)
        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
  • 1 year later...
Posted
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();
}

 

  • 1 year later...
Posted

hello how can i make respawn after die 

in the locations ?

example respawn in the same locations player enter in the zone

 <stat name="locs" val="12878,-49166,976;12876,-46422,-288;13014,-51828,-288;16694,-47984,-640;16654,50331,640;14286,-46279,960;18257,-49147,-568" />
 

  • 3 months later...
Posted (edited)

Thanks. It works very well.
And how can i add this zones as a Pvp Zone for example?.  That logis is in RandomZoneTaskManager?. Or i can modify random_zone.xml?

 

Edited by barao45

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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