Jump to content

Recommended Posts

Posted

Καλησπερα σε ολους.Αυτο το 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.

 

 

 

 

 

Posted

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.

Posted

ετοιμο

Δεν ξερω πολλα απο 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.

;
Posted

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
Posted

-Εχουν hero aura.

 

activeChar.setHero(true);

 

 

 

....

 

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

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

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

Posted

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)
Posted

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 .

Posted

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 :)

Guest
This topic is now closed to further replies.



  • Posts

    • No digas pj man, significa "personaje". En inglés se usa "char", por character.
    • This package is based of aCis 408/409 and has been prefilled with server & client modifications for your convenience. A detailed list of the features (including images/videos) in this package can be found in the L2DEV Discord. You can download the entire package here.   What this Package DOES include: Prerequisite Install Files (MySQL, JDK21) Server (Compiled) + Patch Files Popular server-side Java Mods What mods are currently installed: Custom Community Board Character Preferences Menu Daily & Weekly Quests Balance System Events Engine Visual System (aka DressMe) Achievements System Retail Interface with Teleport Menu Player Startup Guide Agathion Support Autofarm System Castle / Hall Siege Manager Daily Login Rewards NPC & Item Search Dungeon System Class & Subclass Master Preset & Scheme Buffer Market Board System Ranking / Leaderboard System PCBangPoints System 4 Custom Maps (Hellbound, Fantasy Isle, Kamael Island & Crystal Island) Updated WorldMap/Minimap to support custom zones What this Package DOES NOT include: EmuDevs Armor Files EmuDevs Weapon Files EmuDevs Skin Files EmuDevs Cloak Files EmuDevs Skill Files EmuDevs Enemies/Raid Bosses EmuDevs Essence Interface Source Code To properly setup this package you will need to: Install the prerequisite files Import the database backup Register a gameserver/hexid using the tools provided in the GameServer folder Notes: The default database scheme name is "emudevs" Agathion support has been added but you will need to add your own Agathion NPC's to your patch. Bugs should be reported in L2DEV or EmuDevs discord. Most mods can be configured via the XML files Most HTML's can be edited via the HTML files  
    • Hello, I am working with the IL Classic files, and I would like to make it so that when someone grabs the zariche or akamanah, they transform into the monster.... I remember many years ago in an IL Java that I had, I had done it but the truth is that from those times (+15 years) I no longer have anything... And I started with L2 OFF again... Could someone tell me how to do this? I have managed to add a thousand custom things in terms of functionality, but this one is getting complicated, I have achieved the maximum that the mob appears lying on the pj even, but I do not achieve 100% of what I want!
    • No such file was present in the share you mentioned, nor has such a file ever been publically shared, as far as I know. As a matter of fact, the whole system in l2aepvp was different. It was allegedly an earlier version and it used something called Player Passport or something like that. Anyway, the only way is to reverse-engineer (reconstruct) it by looking at the calls and imagining what it is used for and what it should consist of.  
    • i know bro... i need the file or class to finish implement this share..   I can't find the l2aepvp source code anywhere, I don't know if it has been released for free or not to search code to patch errors
  • Topics

×
×
  • Create New...