Jump to content

Lioy

Members
  • Posts

    408
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Lioy

  1. Ok then , who ever is interested will pm me. You don't need to talk about a stranger.
  2. And why you want proofs?Whoever is interested just pm me with his requests. It's simple. No one told you to buy something.
  3. Some proofs my little pony. Thank you
  4. Hello I need some cash and since I can code in java , I will take advantage of this. I mostly work in Interlude client and I can code things like: -Events -Custom modifications (Custom features) -Bug fixes -Npcs , commands , item handlers, etc -Any change in core , something unique,special you know.. Request something by sending me a PM here.
  5. Hey dony , when will the development begin?
  6. ### Eclipse Workspace Patch 1.0 #P L2_GameServer_It Index: java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java (revision 5502) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java (working copy) @@ -603,6 +603,14 @@ @Override public void onAction(L2PcInstance player) { + if(getNpcId() == 5555) + { + if(player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player)) + { + player.sendMessage("You cannot target buffer now"); + return; + } + } if (!canTarget(player)) return; // Check if the L2PcInstance already target the L2NpcInstance With this check you won't be able even to target the buffer. Of course, you need to change the id.
  7. ### Eclipse Workspace Patch 1.0 #P L2_GameServer_It Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5502) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -748,6 +748,8 @@ /** The event y. */ public int eventY; + private boolean locked; + /** The event z. */ public int eventZ; @@ -1221,6 +1223,16 @@ initPcStatusUpdateValues(); } + public boolean canSellBuy() + { + if(isLocked()) + { + sendMessage("You can buy/sell only in Giran Castle Town, we are sorry."); + return false; + } + return true; + } + @Override public final PcKnownList getKnownList() { @@ -1363,6 +1375,16 @@ return getStat().getLevel(); } + public void setLocked(boolean locked) + { + this.locked = locked; + } + + public boolean isLocked() + { + return locked; + } + /** * Return the _newbie state of the L2PcInstance. * @return true, if is newbie Index: java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListSell.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListSell.java (revision 5502) +++ java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListSell.java (working copy) @@ -101,6 +101,9 @@ player.broadcastUserInfo(); return; } + + if(!player.canSellBuy()) + return; // Check maximum number of allowed slots for pvt shops if (_count > player.GetPrivateSellStoreLimit()) Index: java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListBuy.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListBuy.java (revision 5502) +++ java/net/sf/l2j/gameserver/clientpackets/SetPrivateStoreListBuy.java (working copy) @@ -99,6 +99,9 @@ player.broadcastUserInfo(); return; } + + if(!player.canSellBuy()) + return; // Check maximum number of allowed slots for pvt shops if (_count > player.GetPrivateBuyStoreLimit()) Index: java/net/sf/l2j/gameserver/model/zone/type/L2TownZone.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/type/L2TownZone.java (revision 5502) +++ java/net/sf/l2j/gameserver/model/zone/type/L2TownZone.java (working copy) @@ -36,6 +36,8 @@ private int _taxById; private boolean _noPeace; private int[] _spawnLoc; + + int giranId = 2; // 2 is random, change it. public L2TownZone() @@ -99,6 +101,12 @@ // Could also check if this town is in siege, or if any siege is going on if (((L2PcInstance)character).getSiegeState() != 0 && Config.ZONE_TOWN == 1) return; + + if(getTownId() != giranId) + + ((L2PcInstance) character).setLocked(true); + else + ((L2PcInstance) character).setLocked(false); //((L2PcInstance)character).sendMessage("You entered "+_townName); }
  8. Intersalonika alla kai Eurosos απο γνωστους. Απο προσωπικη αποψη intersalonika καλυτερα.
  9. Check in this code how items grades methods work and try to do it in your code
  10. Your custom mods create this problem.I don't know what exactly can be the problem but maybe the problem is the Starting Tittle. If it is more than 16 characters , it creates this problem. Fix it and try again , if it's not the problem , make what Tryskell told you.
  11. Thank for sharing. Just one tip, try to use arrays and for loops to give the items. Something like that : private int[] bow_items = {1,2,3,4,5}; // IDS for(int i : bow_items) player.addItem(blabla where id i); Doing this will be great and more readable which is important.
×
×
  • Create New...