Jump to content

Jobalabido

Banned
  • Posts

    42
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Jobalabido

  1. can you share the solution?
  2. public class L2DonatorZone extends L2ZoneType { public L2DonatorZone (final int id) { super (id); } @Override protected void onEnter (final L2Character character) { if (character instanceof L2PcInstance) { L2PcInstance player = (L2PcInstance)character; if (player.getParty()==null || player.getParty.getMembers.size<6){//if player in not in party or if party has 5 or less people player.sendMessage ("You need a party of 6 or more people to enter this zone"); player.teleportTo(1,1,1);//teleport to another location } player.setInPartyZone(true); } } @Override protected void onExit (final L2Character character){ L2PcInstance player = (L2PcInstance) character; player.setInPartyZone(false); } @Override protected void onDieInside (final L2Character character){ } @Override protected void onReviveInside (final L2Character character){ } } So you will need to make a variable private boolean _isInPartyZone = false; and two methods public void setInPartyZone(boolean b){_isInPartyZone = b;} and public boolean getInPartyZone(){return _isInPartyZone;} inside L2PcInstance. Then you will have to find the requestLeave(i don't know the name of the packet) and write something like: if(player.getInPartyZone())return; or disable /leave command when he is in that zone, sorry for the abstract second part of the code but I don't know the packet :(. Also some of the methods my need adjustment, i have never worked on l2jfrozen
  3. We can't see the post, can you copy the code on pastebin?
  4. All of protections are in the most part useless, they can only stop unupdated bots and most of clickers but they can't put up with adrenaline
  5. true, strix costs 100 euros for ever with updates
  6. I think that's it, send them yours and wait for response
  7. maybe now you will succeed at last
  8. Did you gave them your armor.grp itemname.grp etc? or did they send you their random ones?
  9. I would suggest you to start learning Java first and then invest in a project like this. By learning java i mean the basics at least
  10. If you really want it then you should try it, don't let others discourage you. To setup the server it wouldn't cost alot its a matter of minutes. It would cost alot if you need a developer(java-client etc) to implement new stuff. For the hosting part you won't need alot of money unless you want a host with backup-ddosprotection-high storage/speed etc but you could make it work with a 50 euros host.
  11. this, but also you need to change the requestleaveparty so the player wont be able to leave if he is in the zone, or you can make it so that if the player leaves the party then he is automaticaly teleport in town
  12. I think its basemul
  13. Does anyone have classic interface for h5? Or does anyone have just classic's inventory for h5? Or does anyone know how to implement those? Or are they already shared?
  14. You need to save a unix time to your db, then every time a player logs in you need to make a new thread that removes player's hero in setTime-CurrentTime
×
×
  • Create New...