-
Posts
1,403 -
Credits
0 -
Joined
-
Last visited
-
Days Won
32 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by melron
-
Help ERROR INSTALLING ACIS SERVER
melron replied to thepsolartek's question in Request Server Development Help [L2J]
Config.java:1282 Probably you are trying to parse a string and that string is empty -
yeah . a paging system could be very usefull too with teleport actions at every saved loc :D about the read no i think its not that hard to open it via the folder :P Or if you want to say read and edit directly. sounds good and can be done... Ofc it is incomplete, i just shared as i had it :p
-
Request Κώδικας java για μήνυμα στην οθόνη
melron replied to takkenakos's question in Request Server Development Help [Greek]
Συμφωνω μαζι σου οτι το section υπαρχει για αυτο τον λογο και αρκετες φορες δινω ετοιμους κωδικες σε ατομα που ζητανε κατι . Στην συγκεκριμενη περιπτωση ομως εαν το ειχα δει νωριτερα το ποστ θα απαντουσα και εγω το ιδιο (με το object.) απο την στιγμη που δεν μας εδωσε περισσοτερες πληροφοριες . Επισεις θα διαφονισω μαζι σου στο οτι δεν εχει την σωστη καθοδηγηση διοτι για τι πραγμα ακριβως αναφερεσαι? ποια καθοδηγηση πρεπει να εχει? Εσυ ποια ειχες? ... Εγω προσωπικα οσα ατομα ξερω που γνωριζουν 5 πραγματα τα εμαθαν μονοι τους διοτι σημερα στην κοινωνια που ζουμε κανενας δεν θα κατσει να σε πιασει απο το χερι να σου πει αυτο θα το κανεις ετσι (μιλαω για δωρεαν φαση τωρα) . Οποτε δεν νομιζω οτι η λεξη καθοδηγηση ειναι η σωστη εδω. Δεν μπορεις να εχεις καθοδηγηση χωρις θεληση και εγω αυτο που βλεπω εδω μου δειχνει οτι το ατομο δεν εχει θεληση και οτι απλα θελει εναν ετοιμο κωδικα ενω το παρουσιαζει πολυ ομορφα και ευγενικα. Επισεις, Εαν πραγματικα θελει να μαθει το παιδι δεν θα κανει τετοιου ειδους ερωτησεις γιατι για να μιλαει για screen message σε event σημαινει οτι εχει περασει κωδικα στα sources στο οποιον δεν εκανε ποτε κινηση να δει το τι ακριβως ειναι και το πως περιπου λειτουργει (ασχετα που θα του φαινονται κινεζικα). Ο καλυτερος τροπος εξασκισης για τους αρχαριους ειναι το EnterWorld που μπορει να πειραματιστει και να βλεπει τα αποτελεσματα σε καθε login (τουλαχιστον εγω ετσι εκανα και αρχισα με το sendMessage). Η αντιδραση του για το ερρορ του object διχνει οτι πραγματικα δεν εκατσε να δει παραπανω τι εχει (οχι δεν εχω κατι με το παιδι , μετα χαρας να τον βοηθησω και με tv) και απλως ηθελε να κλησει η υποθεση που τον παιδεψε. Οσο για την συμπεριφορα του evye ετσι ειναι το στυλ του, δεν νομιζω να εχει κατι με το ατομο η γενικα με τα newbies... Λογικο ειναι διοτι το 2010 που εκανες ποστς εισασταν ολοι σε αυτο το σταδιο (μερικοι καλυτεροι και αλλοι χειροτεροι)... τωρα ομως που ολοι εχουν γινει 'pro' ζητανε λεφτα και οταν βλεπουν τετοιες αντιδρασεις προσπαθουν να παρουν χαρτζιλικι... Συμφωνω οτι δεν πρεπει να γινεται αυτο σιγουρα... -
Request Κώδικας java για μήνυμα στην οθόνη
melron replied to takkenakos's question in Request Server Development Help [Greek]
Το μονο σιγουρο ειναι οτι εαν καποιος παιρνει ετοιμες απαντησεις τοτε θα η επομενη εμφανιση του θα ειναι με μια νεα ερωτηση για αλλο θεμα , εισαι σωστος. @takkenakos προσπαθησε να καταλαβεις τι ακριβως σου εδωσε ο frye.. Εαν ξερεις εστο και λιγα αγγλικα θα μπορεσεις να καταλαβεις οτι η λεξη object αναφερετε σε ενα αντικειμενο. Ακριβως μετα βλεπεις να λεει sendPacket ... οποτε στελνουμε ενα πακετο σε ενα αντικειμενο . (εσυ τι θες? να στηλεις ενα message στον player ) object = player.. οποτε εαν κοιταξεις λιγες γραμμες παραπανω θα δεις οτι ο player θα εχει ονομα π.χ activeChar η player. μια αλλαγη θα κανεις στον κωδικα που σου εδωσαν. Δεν ειναι οτι δεν ηθελε να σε βοηθησει γραφοντας το σωστο, ειναι οτι δεν γινοταν να ηξερε το ονομα απο την στιγμη που δεν ποσταρες αρκετες πληροφοριες. @`NeverMore Εσυ οταν μαθαινες ζηταγες ετοιμους κωδηκες και ετσι εμαθες? Αμφιβαλλω. Εγω σου λεω οτι οτι κωδικα σου εδιναν τον εκανες αναλυση απο το πρωτο γραμμα μεχρι το τελευταιο για να μαθεις. @Elfocrash Με μια γρηγορη ματια σε αυτα που ποσταρες ειδα οτι τα ερωτηματα που εκανες (τα χαζα για τοτε) τα ελυσες μονος σου (το λες απο κατω σαν comment) αυτο σημαινει οτι κουνισες λιγο τα χερακια σου.... + οτι ειπα για τον nevermore ισχυει και για εσενα... -
Thanks!
-
Thank you guys :)
-
Hello guys, Long time ago, i had to create zone using NPoly and due to fact that is pain in the ass, i've decided to make this code. It's not unique, it's just slightly helpful thing which is going to make your life easier and save a bit time. To understand how the zones work take a look @SweeTs topic. You will understand many things. What is it? You have to select the zone type (NPoly,Cuboid,Cylinder) Set the coordinates (//saveLoc will store the current loc) Once you set all the locs you can save it in xml via the button Store or //storeLocs The Z distance can be found zDifference ( i made it 1000 as default but its up to you and the zone). P.S Im so lazy to make the htmls good. (even the first one , its not my job :P) coded for aCis 374 @StinkyMadness *Update* (far better than mine) Using 1 HTML and not 3 HTML Designed like other aCis admin panel code
- 18 replies
-
- 17
-
Help Random Respawn loc of monster but check how
melron replied to HowardStern's question in Request Server Development Help [L2J]
Spawn.java edit the line where the spawn is getting x,y and add your values. ... + (Rnd.nextBoolean() ? value : 0) is enough -
Help L2OFF Like autopickup
melron replied to HowardStern's question in Request Server Development Help [L2J]
Well probably you did a mistake. its exactly 2 new lines and 2 booleans in doPickupItem superclass + pickupMe :D @HowardStern try this one: ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/Attackable.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/Attackable.java (revision 3) +++ java/net/sf/l2j/gameserver/model/actor/Attackable.java (working copy) @@ -1084,7 +1084,11 @@ { // Check if the autoLoot mode is active if ((isRaid() && Config.AUTO_LOOT_RAID) || (!isRaid() && Config.AUTO_LOOT)) - player.doAutoLoot(this, item); // Give this or these Item(s) to the Player that has killed the L2Attackable + { + ItemInstance itemInfo = dropItem(player, item); + ThreadPool.schedule(() -> player.doPickupItem(itemInfo, true), 350); + } + else dropItem(player, item); // drop the item on the ground ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/item/instance/ItemInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/item/instance/ItemInstance.java (revision 3) +++ java/net/sf/l2j/gameserver/model/item/instance/ItemInstance.java (working copy) @@ -972,10 +972,12 @@ * <FONT COLOR=#FF0000><B> <U>Caution</U> : This method DOESN'T REMOVE the object from _objects of World.</B></FONT><BR> * <BR> * @param player Player that pick up the item + * @param ignorePackets TODO */ - public final void pickupMe(Creature player) + public final void pickupMe(Creature player, boolean ignorePackets) { - player.broadcastPacket(new GetItem(this, player.getObjectId())); + if (!ignorePackets) + player.broadcastPacket(new GetItem(this, player.getObjectId())); // Unregister dropped ticket from castle, if that item is on a castle area and is a valid ticket. final Castle castle = CastleManager.getInstance().getCastle(player); ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/Player.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/Player.java (revision 5) +++ java/net/sf/l2j/gameserver/model/actor/instance/Player.java (working copy) @@ -3212,7 +3210,7 @@ * @param object The ItemInstance to pick up */ @Override - public void doPickupItem(WorldObject object) + public void doPickupItem(WorldObject object, boolean ignorePackets) { if (isAlikeDead() || isFakeDeath()) return; @@ -3231,9 +3229,11 @@ ItemInstance item = (ItemInstance) object; // Send ActionFailed to this Player - sendPacket(ActionFailed.STATIC_PACKET); - sendPacket(new StopMove(this)); - + if (!ignorePackets) + { + sendPacket(ActionFailed.STATIC_PACKET); + sendPacket(new StopMove(this)); + } synchronized (item) { if (!item.isVisible()) @@ -3276,7 +3276,7 @@ item.removeDropProtection(); // Remove the ItemInstance from the world and send GetItem packets - item.pickupMe(this); + item.pickupMe(this,ignorePackets); // item must be removed from ItemsOnGroundManager if is active ItemsOnGroundTaskManager.getInstance().remove(item); @@ -3323,10 +3323,12 @@ else addItem("Pickup", item, null, true); } - - // Schedule a paralyzed task to wait for the animation to finish - ThreadPool.schedule(() -> setIsParalyzed(false), (int) (700 / getStat().getMovementSpeedMultiplier())); - setIsParalyzed(true); + if (!ignorePackets) + { + // Schedule a paralyzed task to wait for the animation to finish + ThreadPool.schedule(() -> setIsParalyzed(false), (int) (700 / getStat().getMovementSpeedMultiplier())); + setIsParalyzed(true); + } } @Override You will have some errors because you need to change some things Do the next things: go at Player.java and find this line. Just click it in it's name until the background color will become grey @Override public void doPickupItem(WorldObject object) then at eclipse tools click at Refactor -> Change Method Signature (a message will pop up that this method overrides bla bla ... ignore it and continue) then click at Add button in Type box add boolean in Name box add for example ignorePackets and as Default Value add false now go inside of this method (doPickUpMe scroll down until you find item.pickupMe and do exactly the same thing i said above with the refactor by clicking on pickUpMe word.. -
Help L2OFF Like autopickup
melron replied to HowardStern's question in Request Server Development Help [L2J]
I don't know what delay l2off have about that, but you have to autoloot the same item instance that dropped before... example: ItemInstance item = dropItem(itemInfo); autLoot(item); by your way you dropping an item and then creating new one with the same id,count for the autoloot. thas why is X2 p.s i will test in the evening -
Help Itemhandler Command
melron replied to cyta5's question in Request Server Development Help [L2J]
Try this one package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.handler.VoicedCommandHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; public class YourClassName implements IItemHandler { private static final int[] ITEM_IDS = { // your item id here }; private static final String command = "menu"; //change with your command @Override public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; VoicedCommandHandler.getInstance().getVoicedCommandHandler(command).useVoicedCommand(command, activeChar, ""); activeChar.sendMessage("if you want any message."); } @Override public int[] getItemIds() { return ITEM_IDS; } } P.s -> You didnt want to write a command. You wanted to call a command :P -
Help Itemhandler Command
melron replied to cyta5's question in Request Server Development Help [L2J]
Could you tell us what project you are using? -
Οι ξένοι είναι συνάνθρωποι ναι αλλά όταν βλέπεις ότι η χώρα σου είναι στα όρια ( και εμείς όχι μόνο στα όρια αλλά έχουμε κατέβει αρκετά) σταματάς να νοιάζεσαι για αυτούς για μόνο ένα λόγο. Γιατί νοιάζεσαι περισσότερο για τον εαυτό σου και για το τι φαι θα φας να τα ξεκαθαρίζουμε αυτά. Όσο για την ηλίθια προφορά που έχεις απέναντι στους Χρυσαυγήτες μαλον είσαι πορομενος με το κόμμα του Αλέξη και δεν σηκώνεις μύγα στο σπαθί σου γιατί λογικά θα είσαι σε γραφείο μαζί με άλλα σκουπίδια αφού σας βόλεψε αυτό το κόμμα. Μάθε όμως ότι όλοι είναι τα ίδια σκατα και ότι υπάρχουν Έλληνες που ζουν στα παγκάκια ενώ ο Κούρδος-αλβανος-ρωσσος έχει σπίτι από το κράτος και παίρνει επιδόματα επειδή στην χώρα του έγινε πόλεμος και εσύ τους υποστηρίζεις . Έχεις δώσει ποτέ μια μπλούζα σε ένα άστεγο Έλληνα ρε? Άντε τράβα στο γραφείο του Τσίπρα τώρα και άσε τα "endopizoume' που ούτε αυτό δεν ξερεις να προφέρεις.. Εάν είσαι ΚΚΕ , ξεχνά ότι είπα παραπάνω και άντε αυτοκτονα
-
I am glad to add points to people like you who have seriously problems and do not respect the rules. Why should i felt offended? You called me retard twice but everyone knows who is the real one. I'm not hiding
- 1 reply
-
- 1
-
Looking L2 Pride CT 2.3 Source Client Patch
melron replied to k4yN's question in Request Server Development Help [L2J]
No more .. i promise.. -
Looking L2 Pride CT 2.3 Source Client Patch
melron replied to k4yN's question in Request Server Development Help [L2J]
-
Discussion Lineage 2 interlude dead?
melron replied to L2DragonWind's topic in Server Development Discussion [L2J]
Lets talk about your features . I wont even mention the other features you've posted (They are clearly your configs) But lets take a look in this photo. You are using the most hated word in the planet 'Unique' ... DO NOT! I will mark some of them and i will ask you if they are really unique features. Stackable scrolls, life stones Unique primeval isle PvP area. Wedding system. Unique farming areas. Full NPC buffer with auto buff. Maximum count of buffs - 76. Maximum subclasses - 5. Free and no quest class change. Free and no quest sub class. Cheap noblesse status. No weight limit. No grade limit. Augmentation system. Unique monsters. Server up-time [24/7] [99]% All the 'Unique items'... As you can see the 85% of the features you posted as Unique are not even 'customs'. just -> false,true things. What? I'm lying? You cant call Unique the fucking Wedding system. , Free and no quest class change. , No grade limit. , No weight limit. and all the others i wrote... Get real dude... Work more on your server and make a preview about of what you did.. If your power stop there then spend some money to get things that will raise your server in ppl eyes... Do not expect even 10 ppl with these features. Another thing, What you did about the advertisement part? Did you posted your server only in hopzone,topzone forums and facebook with your main profile & server profile? If yes then you failed at this part... A server to be successed more than 4 people have to work in different roles... Advertiser,Developer,In-game checker, Site-Forum responsible and more and more and more.... What about your team? .... People will not join in a server like yours just because if they will search for 10 minutes in some sites will find your server with other name. Why? Take a look in your features again... Start realize what they want from a server and why. Be one of them. Do the following test. -Forget about the 'developing part' thing and lets play l2. Open your browser and go at 'topzone' Find a server called l2dragonwind. Ask your self. Is it worth to spend hours of playing there? Why you have to and What's the thing that this server offering to make your feelings good? Now lets talk seriously. Open a txt and start writing all your ideas inside. Log in other servers and steal ideas if you cant think something smart. Ask all your friends in your skype/facebook if they like the things from this txt. Do not ask your self. Once you get the answers and the positives are bigger you can start working on them. Not bigger? Repeat the thing with the txt. Seems like you will never create all these features? 'Cooperation'. Cooperation Pay someone / share your sources with another guy While you are making your features spend more time for checks instead of looking them. In every completed thing take a pic - vid. Do not let it at the end because you will forget what you did before some days. Once your features are done guess what. You have also the advertisement part ready from your side. Search for 5 ppl who can advertise your server. You dont have to look for professionals . You can do with amateur people who owns fb pages for example. Pay one guy to create for you a nice post with nice colors and nice images so your server will looks like 'something different'... Make it attracting... Do not ask for help with the server's profile because you are showing your skills and if they will see -How to- from you guess what will be happen... I really wish you good luck... -
Request Killed mob give all players item
melron replied to martuxas1's question in Request Server Development Help [L2J]
Why you meshing up with new scripts? In case he want a raid/monster instead of only grandboss he can easily add the code in L2RaidbossInstance or L2MonsterInstance (since grandboss -> raidboss -> monster) and check for specific instance with the magical code (instanceof) and nothing more. Creating new script for this is bad idea... -
Request Killed mob give all players item
melron replied to martuxas1's question in Request Server Development Help [L2J]
You have to take a look in L2GrandBossInstance at doDie method.. You can use knownlist to reward all players with X distance from the raid instead of mesh with damages ... if (getNpcId() == baiumId) getKnownList().getKnownPlayersInRadius(3500).forEach(pl -> pl.getInventory().addItem("reward", 57, 5, pl, null)); in case you want all online players i wont help you.. You have admin rights so you can check how mass reward working -
Which is the best L2J Packs ?
melron replied to Taiyo's question in Request Server Development Help [L2J]
if you dont have any skills in java go and learn some basics and then pick what ever you want. Do not expect results then. When your server will be online and the 1st bug will knock your door and you will not be able to fix it by urself, i wanna see this comment again... -
Help How to reset Olympiad info instantly
melron replied to tiguz's question in Request Server Development Help [L2J]
Its because you are changing only the database and that means your new stats will be applied only after the server restart. In order to change it instantly you have to do some changes where the player stats are stored about olympiad. example private static final Map<Integer, StatsSet> _nobles = new HashMap<>(); private static final Map<Integer, Integer> _noblesRank = new HashMap<>(); these maps (Olympiad.java) contains infos about players. you should check there if the player is inside and change/add the values -
Which is the best L2J Packs ?
melron replied to Taiyo's question in Request Server Development Help [L2J]
Define 'best'. I would suggest you acis files as the best sources for many reasons that i will not explain you right now. But as camenomat0 mentioned its depends on what you need... -
Code 1000pvps from item l2jacis
melron replied to ThelwHelpRePaidia's topic in Server Shares & Files [L2J]
Cleaned... -
Code 1000pvps from item l2jacis
melron replied to ThelwHelpRePaidia's topic in Server Shares & Files [L2J]
@ThelwHelpRePaidia Are you the creator of this code? -
Request Olympiad need pvps
melron replied to martuxas1's question in Request Server Development Help [L2J]
find the method registerNoble at Olympiad.java and add this check if (noble.getPvpKills() < 30) { noble.sendMessage("Your message"); return false; }