Jump to content

[Share]Σύστημα Heroic για Interlude Client.


Recommended Posts

Καλησπερα σε ολους.Αυτο το code το εγραψα πριν 2 ωρες και ειπα να το κανω share εδω μαζι σας.

Το ξερω οτι δεν ειναι κατι δυσκολο και σκληρο για να το κανεις, αλα πιστευω οτι ειναι καλο.Πριν αρχισω να πω οτι εγινε test  και λειτουργει(Για να μην εχουμε ερωτησεις του τυπου:To testare kaneis?).Ας ξεκινησουμε με την εισαγωγη....

***Τι ειναι αυτο το συστημα;

Ειναι ενα καινουργιο ειδος παικτων οι οποιοι ονομαζονται Heroic.

 

***Πως γινονται οι παικτες heroic members;

Για να γινει ενας χαρακτηρας heroic member πρεπει να εχει τις 2 παρακατω προυποθεσεις:

1)Να εχει πανω απο 8000 pvp.(Μπορειτε να αλαξετε τα pvp.Πως;Θα το δουμε αρκετα παρακατω)

2)Να ειναι nobless(Φανταστειτε ενας χαρακτηρας να εχει 8000 pvp και να μην ειναι nobless)

 

***Εστω οτι ο παικτης ειναι heroic.Και τι με αυτο;Τι παραπανω εχει απο τους αλους παικτες;

Οι Heroic παικτες παραμενουν σαν τους κανονικους παικτες αλα με της εξης διαφορες:

-Εχουν ξεχωριστο χρωμα στο ονομα τους.(Τωρα Ειναι κιτρινο,μπορειτε να το αλαξετε.Στο τελος αυτα).

-Εχουν ξεχωριστο χρωμα στο τιτλο τους.(Το ιδιο με παραπανω, μπορει να το αλαξετε)

-Οταν μπαινουν στο παιχνιδι το ονομα τους γινετε announce.

-Μπορουν να γραψουν στο hero voice.

-Εχουν ενα ξεχωριστο command(.town) που τους παει στην main town(Giran).

-Εχουν hero aura.

 

***Γινετε να ενεργοποιησω και να απενεργοποιησω το συστημα αυτο;Ή πρεπει να ξανασβησω ολο τον code απο την αρχη και το αντιθετο;

Γινετε.Το εχω κανει σε config,δηλαδη διαλεγετε εσεις true η false.(Ναι η οχι δηλαδη.)

 

***Πως γινετε να το βαλω στον server μου;(το μεγαλυτερο κομματι)

Καταρχας πρεπει να ξερετε οτι ειναι με java  αρα θα χρειαστει να εχετε compile Pack.Ας αρχισουμε.

 

Part1===============Κανοντας το Config.

Ανοιγετε eclipse και πατε gameserver/config/l2jmods.

Βρισκετε το παρακατω line:

TvTEventDoorsCloseOpenOnStartEnd =

Κατω απο αυτη βαζουμε το παρακατω :

#Allow Heroic Characters.
AllowHeroic = True

Αποθηκευουμε.

Υστερα παμε net.sf.l2j.Config.java

Βρισκουμε το

public static int L2JMOD_WEDDING_DIVORCE_COSTS;

.

Κατω απο αυτο βαζουμε:

public static boolean ALLOW_HEROIC;

Μετα βρισκουμε¨

L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));

Κατω απο αυτο βαζουμε

ALLOW_HEROIC = Boolean.parseBoolean(L2JModSettings.getProperty("AllowHeroic", "True"));

.

Τελος part1.

 

Part2==============Επεξεργασια κοδικα.

Παμε net.sf.l2j.gameserver.clientpackets.Enterworld.java

Δημιουργουμε μια γραμμη στο τελος οποιοδηποτε code(βρισκουμε δηλαδη ενα })

Κατω απο το } που βρισκουμε κανουμε μια νεα γραμμη και προσθετουμε τον εξης κοδικα:

   if (Config.ALLOW_HEROIC)
             {
       if (activeChar.isNoble() && activeChar.getPvpKills() >= 8000)
       {
       activeChar.setAccessLevel(10);
           }
       }
       if (Config.ALLOW_HEROIC)
            {
       if (activeChar.getAccessLevel() == 10 && activeChar.isNoble()) //Apla gia asfalia
       {
       activeChar.getAppearance().setNameColor(0xCC6600);
       activeChar.getAppearance().setTitleColor(0x993366);
        activeChar.setHero(true);
       Announcements.getInstance().announceToAll("Heroic Member: "+activeChar.getName()+" has been logged in.");	
            }
       }

Αποθηκευουμε κλεινουμε.

Τωρα παμε net.sf.l2j.gameserver.clientpackets.Say2.java

Βρισκουμε

if (activeChar.isHero()

Το σβηνουμε και το κανουμε

if (activeChar.isHero() || activeChar.getAccessLevel() == 10)

Αποθηκευση κλεινουμε.

Παμε net.sf.l2j.gameserver.handler.voicedcommandhandlers

Κανουμε ενα νεο αρχειο με ονομα Town.java

Μεσα σε αυτο βαζουμε τον παρακατω κοδικα:

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.gameserver.Olympiad;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

//Author CrackerTM

public class Town implements IVoicedCommandHandler
{

  private static final String[] VOICED_COMMANDS = { "town" };
 
public boolean useVoicedCommand(String command, L2PcInstance activeChar,String target)
{
 if (command.equalsIgnoreCase("town"))
 {
  
  if(activeChar.isInJail())
     {
         activeChar.sendMessage("You can't use this command in jail.");
         return false;
     }
     else if(activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegistered(activeChar))
     {
         activeChar.sendMessage("You can't use this command in olympiad mode.");
         return false;
     }
             
     else if(activeChar.atEvent)
     {
         activeChar.sendMessage("You can't use this command in event mode.");
         return false;
     }
     else  if (activeChar.isInDuel())
     {
         activeChar.sendMessage("You can't use this command in duel mode.");
         return false;
     }
     else if (activeChar.isDead())
     {
        activeChar.sendMessage("You can't use this command in dead mode.");  
     return false;
     }        
     else if (activeChar.getKarma() > 0 || activeChar.getPvpFlag() > 0)
     {
        activeChar.sendMessage("You can't use this command in combat mode.");
     return false;
     }
     else if (activeChar.isInCombat())
     {
   	  activeChar.sendMessage("You can't use this command in combat mode");
   	  return false;
     }
     else if (activeChar.getAccessLevel() < 10)
     {
   	 activeChar.sendMessage("Only heroic members can use this command");
   	 return false;
     }
     else if (activeChar.inObserverMode())
     {
        activeChar.sendMessage("You can't use this command in oberver mode.");
        return false;
     }            
     else if (activeChar.isFestivalParticipant())
     {
         activeChar.sendMessage("You can't use this command in festical mode.");
         return false;
     }         
  
  activeChar.teleToLocation(83802, 148622, -3394, true); 
  activeChar.sendMessage("You are teleporting to Giran Castle Town Now,Heroic Member.");
 }
 return true;
}
public String[] getVoicedCommandList()
{
 return VOICED_COMMANDS;
}
}

Αποθηκευουμε,κλεινουμε.

Παμε στο net.sf.l2j.gameserver.Gameserver.java

Βρισκουμε

import net.sf.l2j.gameserver.util.DynamicExtension;

Κατω απο αυτο γραφουμε

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Town;

Μετα βρισκουμε

if(Config.L2JMOD_ALLOW_WEDDING)

Δυο σειρες πανω απο αυτο γραφουμε

_voicedCommandHandler.registerVoicedCommandHandler(new Town());

Αποθηκεουμε,Κλεινουμε.Αν θελετε κλειστε και το eclipse,Ναι ναι τελειωσαμε :D.

 

***Extra Βοηθεια πως αλαζουμε τα χρωματα,κλπ.

Για το χρωμα των ονοματων

Στο enterworld.java στη σειρα

activeChar.getAppearance().setNameColor(0xCC6600);

Αλαζουμε το CC6600 Με το κοδικα του name που θελουμε.

Για το χρωμα των τιτλων.

Στο enterworld.java στη σειρα

activeChar.getAppearance().setTitleColor(0x993366);

Αλλαζουμε το 993366 με το κοδικα που θελουμε.

Πως οταν πατανε .town να μην πανε στην giran αλλα οπου θελω εγω.

Στο Town.java που δημιουργησατε βρειτε τη σειρα

activeChar.teleToLocation(83802, 148622, -3394, true);

Αντικαταστειτε να νουμερα με το loc της επιλογης σας.

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

Αυτο ηταν σας ευχομε καλη τυχη,οπως ειδατε το εγραψα οσο αναλυτικοτερα μπορουσα.Ξεχασα να πω οτι ειναι για Interlude L2J.

 

 

 

 

 

Link to comment
Share on other sites

ta access level ti douleia exoun kai dn ktlveno to logo pou xrhsimopoieis kati tetoio kai to susthma einai sxetika aplo dn exei kati to idietero kai mporei na pragmatopoih8ei arketa pio apla.

Link to comment
Share on other sites

ετοιμο

Δεν ξερω πολλα απο java,αλλα δεν βλεπω να το εβαλες

επισης,γιατι αυτο

ta access level ti douleia exoun kai dn ktlveno to logo pou xrhsimopoieis kati tetoio kai to susthma einai sxetika aplo dn exei kati to idietero kai mporei na pragmatopoih8ei arketa pio apla.

;
Link to comment
Share on other sites

ta access level ti douleia exoun kai dn ktlveno to logo pou xrhsimopoieis kati tetoio kai to susthma einai sxetika aplo dn exei kati to idietero kai mporei na pragmatopoih8ei arketa pio apla.

an o charaktiras exei ta pvp klp...tote to access level tou na paei 10. kai an to access tou level ine 10...tote na parei tis eksis idiotites
Link to comment
Share on other sites

-Εχουν hero aura.

 

activeChar.setHero(true);

 

 

 

....

 

Υπαρχει διαφορα απο το hero aura στο sethero

sethero θα εχει ολα τα hero skills

δεν αξιζει αν το καλασκεφτεις xd

Link to comment
Share on other sites

kai dld gia na kaneis olo auto prp na kaneis use tin methodo twn acces level eleino.

to idio pragma ine ( tha mporouse kai xoris ta access den ipa to antitheto,ala siga...etc me ir8e ekeini tin ora :D)
Link to comment
Share on other sites

Vasika blepw ton kwdika grammenos eleina proxiri douleia fenete oti 3ereis liga pragmata alla mpravo pou prospa8eis to code mporei na ginei kanontas apla mia methodo sto l2pcinstance .

Link to comment
Share on other sites

Vasika blepw ton kwdika grammenos eleina proxiri douleia fenete oti 3ereis liga pragmata alla mpravo pou prospa8eis to code mporei na ginei kanontas apla mia methodo sto l2pcinstance .

kita na sou pw tin alithia asxoloume me l2j molis 1 vdomada. tha mporousa na kanw auto pou les ala den kserw 1 pragma...to opoio to xw kanei kai se topic:http://www.maxcheaters.com/forum/index.php?topic=189377.0

Tcpa i prospathia metraei :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • Dear Dexter's! of Lineage2dex.com Congratulations to all with successful start!  🎉  The opening went smoothly, without lags or disconnects.  As usual, our Autumn-Winter season started with a huge online! All starting locations are filled with players! Thank you Dexters for your support and choice of our project! You are amazing! 🤗  ✅ Tomorrow (September 30) ➡️ Open registration on Seven Signs. (18:00) ➡️ First Epic Boss: Queen Ant (check ALT+B in game, to see respawn time for all epics) ➡️ Start TvT Event  (with season rating). ➡️ Combat Manager(TvT reward master) sell basic goods (no epic jewelry) ➡️ Nobless available for ToDs. You can purchase it from Astarte Full RoadMap for Autumn Season (2024): https://forum.lineage2dex.com/threads/16677/ Wiki on site for new players: https://lineage2dex.com/en/wiki#aboutx25 You also can check Roadmap in game, press ALT+B and go on Episodes tab. Right there in the game data base you can find all the server features.  We wish everyone a pleasant and fair game. We are sure you will enjoy and get a lot of fun playing on Dex 🚀   ——-       Hello Dexter's! 3rd day of server life, all stable and smooth! Players exping, farming and make first PvPs 😉 We are seeing amazing activity for new players! Welcome! Invite your friends and don't forget to use referral program: https://forum.lineage2dex.com/threads/16680/   Today will be the first Epic Boss - Ant Queen. Exactly time of re-spawn you can check in game ALT+B - raid tab. Good luck to everyone and fair play! Also we want to remind, after AQ die in 5 hour re-spawn Alternative version of AQ. Hope our friends from America time zone get some fun too 😉   We see you reports about elite mobs, and we plan to make some changes soon, some nerfs for blue version.   Thx for you feedbacks and support Lineage2dex!
    • Dark Dragon *NEW ERA*   Grand Opening at 12.10.2024 at 7.30 AM central Europe time   A new era begins… The concept is based as a long-running non P2W, emulating the official server in the High Five era. We offer players a very high quality PvP engine, a great concentration on supporting characters, clan activities, blacksmithing and last but not least our own very high quality events.   What have we prepared? Now in a litte more detail: - XP/SP 2x, adapted for long-term concept - drop 2x amount and chance basic - DCoins are part of the drop from monsters - Adena drop amount +50% to base - Spoil 4x - Raid drop amount 2x - Raid drop chance 1x - Party xp/sp bonus +40% - Manor drop 4x - Quest drop 3x - Quest reward xp/sp 3x - Quest reward Adena 3x   - Vitality – drop/gain specially modified for High Five and Dark Dragon concept, lvl 4 = 300% - the total maximum bonus of XP/SP is 700% - Nevit blessing system 100% work - The number of simultaneously connected characters from 1 computer is limited to 10 - Enchant chance ~ 65-68% / safe value +4, max value +16 - Mana regeneration +50% - weight limit +100% - Subclass without quest - 3 subclasses (level 40 – 80) - penalty grade – NO - augment from D grade weapons, jewels - Sell/Buy augmented weapons, jewels, RB jewels - all High Five Raid Boss Weapons - Spirit Ore, Soul Ore weight 0 - Shots weight 0 - buffs duration – 120 min - buffs amount – 26 - dance / song duration 120 min - dance / song amount – 16 - Masterwork retail, of course Interlude weapons also - Teleport (Gatekeepers) – free of charge   our Discord server --> https://discord.gg/qhakzBcgkj   website --> Dark Dragon New Era - Free private game server for all Lineage 2 fans                
    • L2 AARON - Advertising Banner L2 Aaron - Website L2 Aaron - Discord
    • Now it's working, thank you!
    • 👏 haha nice and you want money for give it ? or you just want keep it personal and you suggest me to buy it from creator. 😛 i dont understand the reason what you just show this and 🙂 this
  • Topics

×
×
  • Create New...