Jump to content

Dragic

Legendary Member
  • Posts

    1,024
  • Credits

  • Joined

  • Last visited

  • Days Won

    22
  • Feedback

    100%

Everything posted by Dragic

  1. First of all your code is not working and as i say in description i make it for my needs if you can make it better you can reshare it this maybe helps more than to judge my code when you dont give any solution here, a simple teleport is not better since you can walk into the zone!
  2. You are not allowed to up/bump via comment, use the bump button!
  3. Make a zone required party with minimum members for lucera. package zones; import java.util.Collection; import java.util.Iterator; import l2.gameserver.instancemanager.ReflectionManager; import l2.gameserver.listener.zone.OnZoneEnterLeaveListener; import l2.gameserver.model.Creature; import l2.gameserver.model.Party; import l2.gameserver.model.Player; import l2.gameserver.model.Zone; import l2.gameserver.network.l2.components.CustomMessage; import l2.gameserver.network.l2.s2c.ExShowScreenMessage; import l2.gameserver.scripts.ScriptFile; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class PartyZone implements OnZoneEnterLeaveListener, ScriptFile { private static final Logger bEb = LoggerFactory.getLogger(PartyZone.class); private static final PartyZone bHe = new PartyZone(); private static final String bHf = "PartyZone"; private Object PartyInfo; public PartyZone() { } public void onLoad() { byte var1 = 0; Collection var2 = ReflectionManager.DEFAULT.getZones(); Iterator var3 = var2.iterator(); while(var3.hasNext()) { Zone var4 = (Zone)var3.next(); if (var4.getParams().getBool("PartyZone", false)) { var4.addListener(bHe); } } if (var1 > 0) { bEb.info("PartyZone: added {} party zone(s).", Integer.valueOf(var1)); } } public void onReload() { this.onShutdown(); this.onLoad(); } public void onShutdown() { Collection var1 = ReflectionManager.DEFAULT.getZones(); Iterator var2 = var1.iterator(); while(var2.hasNext()) { Zone var3 = (Zone)var2.next(); if (var3.getParams().getBool("PartyZone", false)) { var3.removeListener(bHe); } } } public void onZoneEnter(Zone var1, Creature var2) { if (var2.isPlayer()) { Player var3 = var2.getPlayer(); Party var4 = var3.getParty(); if (var4 == null) { String var10 = (new CustomMessage("zone.services.PartyZone", var3, new Object[0])).toString(); var3.sendPacket(new ExShowScreenMessage(var10, 10000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, false)); var3.teleToClosestTown(); } if (var3.getParty().getMemberCount() <= 4) { String var10 = (new CustomMessage("zone.services.PartyZone", var3, new Object[0])).toString(); var3.sendPacket(new ExShowScreenMessage(var10, 10000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, false)); var3.teleToClosestTown(); } } } public void onZoneLeave(Zone var1, Creature var2) { } } Next you have to add this parameter in zone: <set name="PartyZone" val="true" /> For example: <zone name="[primeval_peace1]" type="fun" > <coords loc="10408 -27395 -4290 -1290" /> <coords loc="12065 -25334 -4290 -1290" /> <coords loc="12223 -23159 -4290 -1290" /> <coords loc="10424 -22340 -4290 -1290" /> <coords loc="9566 -23131 -4290 -1290" /> <coords loc="9290 -24261 -4290 -1290" /> </polygon> </zone> Make it like this: <zone name="[primeval_peace1]" type="fun" > <set name="PartyZone" val="true" /> <coords loc="10408 -27395 -4290 -1290" /> <coords loc="12065 -25334 -4290 -1290" /> <coords loc="12223 -23159 -4290 -1290" /> <coords loc="10424 -22340 -4290 -1290" /> <coords loc="9566 -23131 -4290 -1290" /> <coords loc="9290 -24261 -4290 -1290" /> </polygon> </zone> Then go to en string gameserver\data\string and add this line: zone.services.PartyZone=You Are Not Currently In A Party With Minimum 5 Party Members So You Cannot Enter. And this line to ru string gameserver\data\string: zone.services.PartyZone=Вы не находитесь в партии с минимум 5 членами партии Так что вы не можете войти. If you want to change the value of minimum players then you have to change the number 4 in this line in ext: if (var3.getParty().getMemberCount() <= 4) { DOWNLOAD EXT This is a simple code i make it for my needs you can remake it as you want don't spam this topic.
  4. Επειδή έμαθα ότι ρωτάς ποιος σε κάνει συνέχεια ban και με βρίζεις παλι κιόλας τρομάρα σου και ότι είπες πάλι ο Καρα-γκιόζης ο Χρήστος με έκανε Μπαν χωρίς λόγο!? Θα σου κάνω μια τυπική υπενθύμιση ότι είσαι perma banned οπότε σταματά να αναρωτιέσαι γιατί σε κάνουμε ban τους λόγους τους γνωρίζεις δεν χρειάζεται να το αναλύσουμε περαιτέρω. Τώρα που βλέπω την προηγούμενη σελίδα πραγματικά είσαι όλο εκπλήξεις! Υστερόγραφο: Εάν ά τοις άλλοις επιτιμώμεν, αυτοί μη δρώμεν!
  5. Last years i was using StormWall but now im working with ovh servers its fine until now.
  6. You have not the access to ban members. If you have serious proofs about this person is scamming people send me private message topic cleaned.
  7. I'm working on it! I think I've found his buttons
  8. @Justice I never say something bad about you mate! You are one of the most i respect here that i was saying to maxtor before some days we need guys like you in our staff.. I'm talking about everyone who has been on staff last years most of them did a BIG nothing just using the mod for ads etc i think everyone knows that... I can speak public here with proofs and names but people who saying the truth are bad so the only i can do is to tell @Maxtor almost everyday about who i think needs to be demoted and i hope one day @Maxtor will hear me.
  9. I'm just telling you how i got it! I am a person who always expresses my opinion and speaks straight when something disturbs me is not personal !
  10. I am Dragic and want to let you know that I know your contribution as for all those who have been on the staff for the last 10 years + I remember you since you report topics that need to be locked before you become a gold member! You probably don't know about my contribution to this forum if you would like to ask Nik to tell you about it. I find it offensive to say "4 globals lol" at the time i got promoted
  11. Some of you who were once on staff, the reasons why you are no longer on the staff is because they were not active, some did nothing, some of you have negative behavior, some abused their access, others lost their enthusiasm etc.. Νik's mistake is not that he put people on the staff.. is that it doesn't demote those who are not appropriate for being staffers. I tell him to do it almost every day, i don't think it's wrong to make a promotions but to keep these people who doesnt care about this forum. Now about the "4 Globals lol" tell us who you think is random from the 4 globals we can talk about it!
  12. WTB ADENA ON L2 REBORN x1 PM ME HERE ON FORUM Prefix [WTB] means "Want to Buy"
  13. I totally agree with you, and I believe that the php section would be useful to our community. PHP category will be added soon!
  14. Καλησπερα και σε εσενα!
  15. Updated (20 March 2020)
  16. Updated (20 March 2020)
×
×
  • 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