Jump to content

Recommended Posts

Posted

Γεια σας σε ολους καλες γιορτες να εχετε.Ειναι το δευτερο share μου εδω και πιστευω να βοηθησει αρκετους απο εσας.Παω στοιχημα οσοι διαβασατε τον τιτλο δεν καταλαβατε τιποτα για το περιεχομενο του.Εδω λοιπον θα αναφερω συγκεκριμενα fix για μικρο bugs, λιγα περισσοτερα ακομα και θα τα εξηγησουμε.Ας ξεκινησουμε λοιπον...(Να πω οτι, οτι βλεπετε μπροστα σας εδω ειναι δοκιμασμενα σε l2j interlude και οχι σε αλα clients).Χωριζεται σε 2 parts.

 

Part1=============Συγκεκριμενα fixes για μικρο bugs και εξηγηση του κωδικα=========

Ολη η δουλεια μας εδω θα γινει συγκεκριμενα στο net.sf.l2j.gameserver.clientpackets.Αυτο το ειδος περιεχει java αρχεια τα οποια εχουν να κανουν οπως βλεπετε με actions.Για να fixaristei ενα bug θα χρειαστει να σταματαμε το action  σε ορισμενες συνθηκες.100% δεν καταλαβατε μια..Παμε να δουμε ενα παραδειγμα.

Ολοι ξερετε το bug με το enchant που κανανε κατα την ωρα του trade.Εδω και μονο με απλη λογικη το fix  στα ελληνικα θα ηταν:Οταν ο χαρακτηρας κανει trade να μην γινετε να κανει enchant.Ευκολο στα λογια, αλλα και στην πραξη ευκολο ειναι.Εδω φυσικα θα παμε στο RequestEnchantItem.java

Στο τελος οποιουδηποτε κωδικα βαζουμε τον παρακατω:

    	if (activeChar.getActiveTradeList() != null)
   	{
   	activeChar.sendMessage("You Cannot Enchant While Trading!");
   	return;
   	}
   	

Η πρωτη γραμη ειναι σαν να λετε στα ελληνικα:Αν ο χαρακτηρας εχει ανοικτο trade.

Η δευτερη γραμμη αρχιζει ο κωδικας

Η Τριτη γραμμη απλα στελνει στον χαρακτηρα ενα message που ειναι μεσα στα " βλαβλα "

Η τεταρτη γραμμη και η σημαντικοτερη αντιστρεφει το action,δηλαδη το κανει να μην γινετε.

Η πεμπτη τελειωνει η γραμμη.

 

Παμε τωρα να κανουμε κιαλο παραδειγμα για καλυτερη κατανοηση.Παμε στο uselItem.java.Εδω ειναι το action για να φορανε items(οτιδηποτε ομως οχι μονο weapons και armors).Θα κανουμε ενα παραδειγμα τωρα,να μην μπορει ο παικτης να φορεσει item οταν castarei spells,η scrolls, η /unstuck.

Στο τελος παλι καποιου κοδικα βαζουμε τον εξης

if (activeChar.isCastingNow())
		{
			activeChar.sendMessage("You can't equip item while casting.");
			return;
		}

Ειδατε ειναι παρομοιο να μην τα ξανα εξηγω, η πρωτη γραμμη σημαινει αν castarei.Τωρα θα πειτε αυτα τα isCastingNow,κλπ εγω πως να τα ξερω;Στο τελος θα σας αναφερω αρκετους μεθοδους αρκετα χρησιμους πιστευω.

 

Ενας ξεχωριστος κοδικος που μαλλον fixarei το το phx enchant.Με λιγο σκεψη καποιος μπορει να καταλαβει οτι για να fixaroyme το phx enchant, θα πρεπει να μην γινετε να κανει enchant  ο παικτης οταν ειναι κοντα σε warehouse.Για αυτο θα παμε παλι στο RequestEnchant και θα βρουμε το εξης line:

if (activeChar == null || _objectId == 0) return;

αφηνουμε μια γραμμη και προσθετουμε τον εξης κωδικα.

for (L2Object wh : knowns) 
    	{ 
    		  if (wh instanceof L2WarehouseInstance) 
    		   { 
    		        activeChar.sendMessage("You cannot enchant near warehouse."); 
    		        return; 
    		     } 
    	 } 

Αν ο χαρακτηρας μας ειναι διπλα σε warehouse και παει να πατησει το οκ στο scroll του εμφανιζετε το μυνημα που ειναι μεσα στα " " και δεν γινετε το enchant.

Πιστευω να καταλαβατε οτι ολα ειναι θεμα μυαλου και εξυπναδας και υπομονης.Οσοι δεν ξερατε αυτα θελω να προσπαθησετε να κανετε ενα κοδικα που να μην γινετε να κανει ο παικτης enhant οταν castarei kati.Η εξασκηση ειναι ο καλυτερος τροπος για να μαθετε

 

Ενα τελευτεο παραδειγμα.Ολοι ξερετε το παλιο bug  με το unstuck που δεν μπορουσαν να σας κανουν target.Ε και αυτο με μυαλο καταλαβενετε οτι το fix στα ελληνικα θα ειναι να μην γινετε να κανει restart οταν castarei.Παμε λοιπον στο RequestRestart.java και ο κοδικας ειναι ο εξης φυσικα

if (activeChar.isCastingNow())
{
activeChar.sendMessage("You cant restart while casting);
return;
}

Αυτα ηταν μερικα παραδειγματα για μικρο fixes,πιστευω να εγινα κατανοητος.

 

Part2============Απλοι μεθοδοι και μερικα αλλα==========================

Οι μεθοδοι ειναι συγκεκριμενες λεξεις που μας βοηθουν στο να κανουμε τον κοδικα.Παμε λοιπον να δουμε αρκετες οι οποιες ειναι πολι στοιχειωδεις και χρησιμες και βοηθανε.

***return; ->Ακυρωνει την πραξη(το ειδαμε και παραπανω)

***isCastingNow -> Castarei οποιοδηποτε skill/scroll Η  unstuck

***isAttakingNow ->Κανει attack με απλα hits

***isStunned ->Ειναι σε stun mode

***isParalyzed ->Ειναι σε paralyzed mode, gia paradeigma anchor.

***isMageClass ->Ειναι mage class

***isInParty -> Ειναι σε party

***isDead -> ειναι πεθαμενος

***isClanLeader -> ειναι clan leader

***isMounted -> Ειναι πανω σε pet

***getActiveTradeList() != null) ->Εχει ανοικτο trade list

***activeChar.getInventory().addItem("ONOMA", ITEM-ID, POSA ITEM, activeChar, null); ->να παρει στο inventory του το item της επιλογης.

***getAppearance() ->δινει εμφανιση.

***getAppearance().setNameColor(0xCode); ->δινει την εμφανιση του χρωματος της επιλογης μας.

***getPvpKills() == 1) ->Εχει 1 pvp (το 1 το αλλαζουμε)

***getPkKills() == 1) -> Εχει 1 pk ( το 1 το αλλαζουμε)

***isInCombat ->Ειναι σε combat mode

***Announcements.getInstance().announceToAll("Class: "+activeChar.getName()+" has been logged in."); ->Κανει announce οτι θελετε

***isInJail -> ειναι στη φυλακη

***teleToLocation(your X, your y, your Z); ->Teleport στο μερος επιλογης σας

***isFlying ->Πεταει με wyvern

***setTitle("blabla") ->Dinei titlo που ειναι μεσα στα " "

***setHero(true); ->Δινει hero στον παικτη

***setNoble(true); ->Δινει noble στον παικτη

***isSitting ->καθεται κατω

Οπως καταλαβενετε υπαρχουν παρα πολλες ..σας ειπα μερικες...τωρα παμε να δουμε απλα συμβολα ( εχουν ξαναγινει share, αλλα ακομα μια φορα δεν βλαπτει πιστεβω.)

== ->Ισον

>= -> Μεγαλυτερο ή Ισον

<= ->Μικροτερο ή Ισον

> ->Μεγαλυτερο

< ->Μικροτερο

! -> ακυρωνει την πραξη ( if (!activeChar.isNoob()) ->Δεν ειναι noob.

---------------------------------------------------------------------------------------------------------

Αυτο ηταν.Ελπιζω να βοηθησει. Οπως καταλαβατε το να κανεις ενα κοδικο, ειναι σαν pazzle βαζεις τα σωστα κομματια στη σωστη θεση.Για περισσοτερες μεθοδους ψαχνετε στο καταλληλο java αρχειο,επισης το L2PCInstance εχει αρκετες.

===========================================================

 

 

 

Posted

Telio!!!idame kati diaforetiko epitelous olo ta idia kai ta idia share npc kai tetia. euxaristoume . auto pistevo pos aksizei karma...an den sto dosei kapios tha sto dosw egw.

Posted

Telio!!!idame kati diaforetiko epitelous olo ta idia kai ta idia share npc kai tetia. euxaristoume . auto pistevo pos aksizei karma...an den sto dosei kapios tha sto dosw egw.

πςς.. ευχαριστω :P
Posted

Πολυ καλό μπραβο...

 

Μια σημειωση... το ! δεν ακυρωνει αλλα σημαίνει διάφορο. Σε αλλες γλωσσες προγραμματισμού το βλεπουμε σαν <>

 

π.χ    $ = "hello" ζηταμε η μεταβλητή να ειναι ίση με το λήμα "hello"

      !$ = "hello" ζηταμε η μεταβλητή να είναι οτιδήποτε άλλο εκτος από το λήμα "hello"

 

      if (!activeChar.isNoob()) σημαίνει αν δεν είναι noob τότε ...... κανε αυτό.

Posted

Φίλε μπράβο για τον οδηγό σου, για κάποιους σαν και εμένα που δεν είναι πολύ "έμπειροι" με Java Codes και αρχίζουν τώρα θα βοηθήσει πολύ!

Posted

Φίλε μπράβο για τον οδηγό σου, για κάποιους σαν και εμένα που δεν είναι πολύ "έμπειροι" με Java Codes και αρχίζουν τώρα θα βοηθήσει πολύ!

Φίλε μπράβο για τον οδηγό σου, για κάποιους σαν και εμένα που δεν είναι πολύ "έμπειροι" με Java Codes και αρχίζουν τώρα θα βοηθήσει πολύ!

ευχαριστω
Posted

Φίλε μπράβο για τον οδηγό σου, για κάποιους σαν και εμένα που δεν είναι πολύ "έμπειροι" με Java Codes και αρχίζουν τώρα θα βοηθήσει πολύ!

+++++

Κeep up φίλος

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • This post originally appeared on MmoGah. As the global release of Aion 2 draws near, players are eagerly preparing to dive into this highly anticipated MMORPG. One of the most important decisions you’ll make is choosing the right class, as it will define your experience in both solo and group content. Aion 2 introduces eight distinct classes, each with unique gameplay mechanics, strengths, and roles. Whether you’re a seasoned veteran or a newcomer, understanding these classes is essential to finding the one that suits your preferred playstyle. This guide provides a comprehensive overview of all eight classes, tips for selecting your ideal role, and recommendations for different types of players. Aion 2’s class system offers a variety of options across tanks, damage dealers, healers, and hybrid supports. Here’s a quick breakdown of the roles: - Tank Classes: Templar - Physical DPS Classes: Gladiator, Assassin, Ranger - Magical DPS Classes: Sorcerer - Hybrid Classes: Spiritmaster, Chanter - Healer Class: Cleric Each class has been carefully designed to excel in specific scenarios, whether it’s PvP, PvE, solo leveling, or large-scale faction battles. Pro Tip: As you embark on your journey, remember that having Aion 2 Kinah can greatly enhance your experience, so consider acquiring it to make the most of your adventure.   Class Breakdown Templar – The Indomitable Tank The Templar is the quintessential tank, specializing in defense and crowd control. With high durability and reliable aggro management, this class is invaluable in group content and large-scale battles. Strengths: - Exceptional survivability  - Top-tier aggro control  - Disruption tools for PvP  Playstyle: Templars thrive on the frontlines, soaking up damage and protecting allies. They are perfect for players who enjoy leading the charge and maintaining battlefield control. Gladiator – The Melee Powerhouse The Gladiator strikes a balance between offense and defense, offering strong AoE damage and decent survivability. This class excels in fast-paced melee combat and open-world PvP. Strengths: - High AoE damage  - Lifesteal-style abilities for sustain  - Versatile in both PvE and PvP  Playstyle:  Gladiators are ideal for players who enjoy dynamic melee combat with a mix of durability and damage. Assassin – The Stealthy Burst Specialist Assassins are masters of stealth and mobility. Known for their high single-target burst damage, they dominate in duels and small-scale PvP encounters. Strengths: - Exceptional burst damage  - Stealth mechanics for ambushes  - High mobility for quick disengagement Playstyle: This class is perfect for players who prefer fast-paced, tactical gameplay with an emphasis on sneaky kills. Ranger – The Precision Archer Rangers excel at dealing consistent physical damage from a distance. With excellent crowd control abilities and strong kiting potential, they are a solid choice for both PvE and PvP. Strengths:  - Safe ranged damage  - Strong crowd control tools  - Great for solo play  Playstyle: Rangers suit players who enjoy staying at range, controlling enemies, and executing precise attacks. Sorcerer – The Magical Artillery Sorcerers are pure magic damage dealers with devastating AoE spells and crowd control abilities. They are capable of turning the tide of battle with their massive burst potential. Strengths: - Highest magical burst damage  - Excellent AoE capabilities  - Crowd control via slows and immobilizes  Playstyle: Sorcerers are perfect for players who enjoy dealing immense magical damage while controlling enemies from a distance. Spiritmaster – The Tactical Summoner The Spiritmaster brings strategic depth to combat by combining summons, debuffs, and utility spells. This class is highly versatile and excels in both solo and group settings. Strengths: - Elemental summons with unique abilities  - Strong debuffs for PvP dominance  - Great solo leveling potential  Playstyle: Spiritmasters are best suited for players who enjoy strategic gameplay and multitasking in battle. Cleric – The Essential Healer The Cleric is the backbone of any group, providing powerful healing, cleansing, and defensive buffs. This class is indispensable in dungeons and raids. Strengths: - Reliable direct and AoE healing  - Cleansing abilities to remove debuffs  - Vital for group survival  Playstyle: Clerics are ideal for players who take pride in supporting their team and ensuring everyone stays alive. Chanter – The Hybrid Support The Chanter blends melee combat with healing and party-wide buffs. This versatile class can fill multiple roles in a group, making it a valuable addition to any team. Strengths: - Strong party buffs  - Solid healing capabilities  - Decent melee damage Playstyle: Chanters are perfect for players who want to contribute both offensively and defensively while supporting their team.   Choosing the Right Class What’s Your Playstyle? To help narrow down your choice, consider what you enjoy most in an MMORPG: • If you like tanking and leading the charge, choose Templar. • If you like melee combat with high durability, choose Gladiator.  • If you like stealthy gameplay with burst damage, choose Assassin.  • If you like ranged combat with precision, choose Ranger.   • If you like Massive magical damage, choose Sorcerer. • If you like tactical utility with summons, choose Spiritmaster. • If you like healing and supporting teammates, choose Cleric.  • If you like hybrid support with melee combat, choose Chanter. Beginner-Friendly Classes If you’re new to MMORPGs or unsure where to start, these classes offer straightforward mechanics: 1. Templar – Durable, beginner-friendly tank. 2. Cleric – Essential healer with clear roles in group content. Solo vs. Group Play Some classes excel in solo play, while others shine in groups: - Best Solo Classes: Gladiator, Ranger, Spiritmaster (good sustain and flexibility). - Best Group Classes: Templar (tank), Cleric (healer), Chanter (support). PvP Recommendations For competitive players who enjoy PvP: - 1v1/Small-Scale PvP: Assassin (stealth burst) or Sorcerer (burst + CC).  - Large-Scale PvP: Spiritmaster (debuffs) or Templar (frontline disruption). Team Composition Tips Building a balanced party is crucial in Aion 2. Consider these combinations for optimal synergy: - Tank + DPS + Healer: Templar + Sorcerer + Cleric (classic setup).  - Buff-Oriented Group: Gladiator + Chanter + Cleric (durability + support).    Final Thoughts Aion 2 offers a rich variety of classes tailored to different playstyles. Whether you prefer tanking, dealing damage, or supporting your team, there’s a class that fits your preferences. To summarize: - For beginners: Start with Templar or Cleric. - For high damage: Choose Gladiator, Assassin, or Sorcerer. - For strategic gameplay: Go with Spiritmaster. - For support roles: Opt for Cleric or Chanter. Still undecided? Share your preferred playstyle—solo adventuring, competitive PvP, or cooperative group play—and you’ll find the perfect class to begin your journey in Aion 2!  
    • Prepare for OBT (Open Beta Test)! https://www.l2ertheia.eu/news:open-beta-test-obt/
    • What the actual fuck? HEY Maxtor, gay of the season, time to do some work. Banning required.
    • Hello there, sorry for the late response, (nobody cares anyway). I remember you, yes you did tried something, but sucked at it. Not a little lick, but sucked hard. No surprise you couldn't handle a single event, not to mention a long term event schedule. Section is long gone. And after all these years, you are still dumb enough to not even try to use a google translator.
    • I'm sorry for the graveyard digging.. As a good mate, I just had to copy/paste a message, remember I'm just the messenger, NOT ADMIN, NOT GM, and quickly to the topic: - project is in it's final stages - staff recruitment shall begin shortly (non fluent english speakers fuck off) - thank you for the understanding The end.
  • Topics

×
×
  • 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