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.

  • 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

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