Jump to content
  • 0

Help


CTGavesT

Question

kalispera exo to e3is problima exo vali code otan pernis pvp na pigeni +1 apo ta items sou to max sto enchant einai +25 kai otan o allos ta exis ola +25 tote auta pane +26 pos mporo na balo tin epilogi na stamataei sto +25?

Link to comment
Share on other sites

Recommended Posts

  • 0

kalispera exo to e3is problima exo vali code otan pernis pvp na pigeni +1 apo ta items sou to max sto enchant einai +25 kai otan o allos ta exis ola +25 tote auta pane +26 pos mporo na balo tin epilogi na stamataei sto +25?

Στείλε μου τον κώδικα σε ΠΜ αν δεν θες να τον μοιραστείς εδώ.

Μόλις ξανά μπω το βράδυ, θα το διαβάσω και θα σου πω.

Θέλεις ένα τσεκ να σταματάει.

Link to comment
Share on other sites

  • 0

Steile mou kai se emena ton kodika gia na ston dior8osw...

 

 

Edit:

3exasa na pw oti einai gia dikos mou logous :3 oxi oti o Baggos den mporei na ton dior8osei mia xara ton kwdika....

Edited by MixHarder
Link to comment
Share on other sites

  • 0

den exo problima na ton mirasto mazi sas apla epidi exo perasi polous code den 8imame pios einai mporite na me help?na ton bro?

Edited by FastCow
Link to comment
Share on other sites

  • 0

den exo problima na ton mirasto mazi sas apla epidi exo perasi polous code den 8imame pios einai mporite na me help?na ton bro?

Υπήρχε ήδη ο κώδικας σε κάποιο pack που έχεις?

Πήγαινε L2PcInstance και κάνε search για enchant και θα καταλάβεις ποιος είναι, θα βρεις ένα μέρος του κώδικα εκεί μέσα. 

 

Πως τον είχες βρει αυτόν τον κώδικα αν δεν το έχει το pack ήδη?

Γιατί ίσως να παίρνει και από αλλού εντολή ο κώδικας, και δεν έχω eclipse εδώ που είμαι να κοιτάξω καλύτερα...

Link to comment
Share on other sites

  • 0

Υπήρχε ήδη ο κώδικας σε κάποιο pack που έχεις?

Πήγαινε L2PcInstance και κάνε search για enchant και θα καταλάβεις ποιος είναι, θα βρεις ένα μέρος του κώδικα εκεί μέσα. 

 

Πως τον είχες βρει αυτόν τον κώδικα αν δεν το έχει το pack ήδη?

Γιατί ίσως να παίρνει και από αλλού εντολή ο κώδικας, και δεν έχω eclipse εδώ που είμαι να κοιτάξω καλύτερα...

epidi exo kani update ta source kai mou exi bgali error se ola kai prospa8o na to ftia3o den to brisko brika ta config mimpos einai edw dite 

 

 

# Auto Enchant by pvping

EnablePvpEnchanting = True

# The maximum enchant for normal and custom items

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 8

# Rate for weapons and the others

WeaponsRateByPvping = 2

OthersRateByPvping = 4

Link to comment
Share on other sites

  • 0

epidi exo kani update ta source kai mou exi bgali error se ola kai prospa8o na to ftia3o den to brisko brika ta config mimpos einai edw dite 

 

 

# Auto Enchant by pvping

EnablePvpEnchanting = True

# The maximum enchant for normal and custom items

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 8

# Rate for weapons and the others

WeaponsRateByPvping = 2

OthersRateByPvping = 4

Όταν θα φτιάξεις τα ερρορ που βλέπεις σε όλα τα java, δοκίμασε να κάνεις delete από Config.java το ENABLE  του EnablePvpEnchanting. (Όχι αυτό που συνοδεύει για get.property, αλλά το πρώτο που θα βρεις.)

Μετά θα σου πετάξει ερρορ εκεί που βρίσκεται ο κώδικας.. Άνοιξέ το και θα το δεις..

Αλλά αφού έχει για maxenchant στα config... Σίγουρα δε βάζεις κάτι λάθος? Έχεις +18 στο config, δοκίμασε να βάλεις τόσο και το max enchant γενικώς. Μετά ξανά χτύπα ένα mob με +18 όπλο να δούμε.

Link to comment
Share on other sites

  • 0

epidi exo kani update ta source kai mou exi bgali error se ola kai prospa8o na to ftia3o den to brisko brika ta config mimpos einai edw dite 

 

 

# Auto Enchant by pvping

EnablePvpEnchanting = True

# The maximum enchant for normal and custom items

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 8

# Rate for weapons and the others

WeaponsRateByPvping = 2

OthersRateByPvping = 4

EXIS MORMALS = 18    KE CUSTOM = 8

TI PERIMENIS NA GINI ???

18+8=26

 

KANTA STO EKSIS

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 7

H

MaxEnchByPvpingNormals = 25

MaxEnchByPvpingCustoms = 0

ELEOS

Link to comment
Share on other sites

  • 0

EXIS MORMALS = 18    KE CUSTOM = 8

TI PERIMENIS NA GINI ???

18+8=26

 

KANTA STO EKSIS

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 7

H

MaxEnchByPvpingNormals = 25

MaxEnchByPvpingCustoms = 0

ELEOS

Και γω στην αρχή το σκέφτηκα αυτό... Αλλά διάβασα πάνω και λέει for normal & custom items. Δηλαδή για κανονικά και custom πράγματα. Πως ταιριάζει αυτό με την πραγματική τιμή enchant ενός πράγματος?

Δεν νομίζω να'χει σημασία αυτό..

Μπορεί όμως να είναι λάθος γραμμένη η εξήγηση του # The maximum enchant for normal and custom items και να δουλέψει.

Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

EXIS MORMALS = 18    KE CUSTOM = 8

TI PERIMENIS NA GINI ???

18+8=26

 

KANTA STO EKSIS

MaxEnchByPvpingNormals = 18

MaxEnchByPvpingCustoms = 7

H

MaxEnchByPvpingNormals = 25

MaxEnchByPvpingCustoms = 0

ELEOS

 

8a to testaro kai 8a sou po

Και γω στην αρχή το σκέφτηκα αυτό... Αλλά διάβασα πάνω και λέει for normal & custom items. Δηλαδή για κανονικά και custom πράγματα. Πως ταιριάζει αυτό με την πραγματική τιμή enchant ενός πράγματος?

Δεν νομίζω να'χει σημασία αυτό..

Μπορεί όμως να είναι λάθος γραμμένη η εξήγηση του # The maximum enchant for normal and custom items και να δουλέψει.

exo nomizo oti tora den 3ero ama einai sosto 

MaxEnchByPvpingNormals = 18 auto einai mexri poso na pigenoun ta normal 

MaxEnchByPvpingCustoms = 7 kai auto einai poso na pigeni sta custom 

Link to comment
Share on other sites

  • 0

8a to testaro kai 8a sou po

exo nomizo oti tora den 3ero ama einai sosto 

MaxEnchByPvpingNormals = 18 auto einai mexri poso na pigenoun ta normal 

MaxEnchByPvpingCustoms = 7 kai auto einai poso na pigeni sta custom 

Κάνε αυτό που σου είπα πιο πάνω, και θα βρεις που είνα περασμένος ο κώδικας.

Άμα διαγράψεις την γραμμή που θα λέει π.χ

public static Boolean PVP_ENCHANT_ENABLE;

μέσα από το Config.java, και το κάνεις save.. θα σου πετάξει έρρορ στα σημεία που είναι ο κώδικας... έτσι θα δεις που είναι, και στείλτον εδώ να τον κοιτάξουμε.

 

Μπες στα config.java, κάνε αναζήτηση την λέξη EnablePvpEnchanting

Πήγαινε στην αρχή της πρότασης και θα βρεις πως λέγεται το σημείο που έχει το ENABLE. Κάνε το αναζήτηση, και θα βρεις την σειρά με το public static boolean. Σβήσε το, αποθήκευση, και μετά θα σου πετάει ερρορ στα java όπου είναι ο κώδικας.

Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

Auta exi mono sto L2PcInstance.java

/** The _active enchant item. */
private L2ItemInstance _activeEnchantItem = null;
/**
  * Return the Item amount of the L2PcInstance.<BR>
  * <BR>
  *
  * @param itemId the item id
  * @param enchantLevel the enchant level
  * @return the item count
  */
public int getItemCount(int itemId, int enchantLevel)
{
}
    else if(item.getEnchantLevel() > 0)
    {
     SystemMessage sm = new SystemMessage(SystemMessageId.YOU_PICKED_UP_A_S1_S2);
     sm.addNumber(item.getEnchantLevel());
     sm.addItemName(item.getItemId());
     sendPacket(sm);
if(getActiveEnchantItem() != null && getActiveEnchantItem().getObjectId() == objectId)
  {
if (target.getEnchantLevel() > 0)
    {
     SystemMessage msg = new SystemMessage(SystemMessageId.ATTENTION_S1_PICKED_UP_S2_S3);
     msg.addString(getName());
     msg.addNumber(target.getEnchantLevel());
     msg.addItemName(target.getItemId());
     broadcastPacket(msg, 1400);
    }
    else
    {
     SystemMessage msg = new SystemMessage(SystemMessageId.ATTENTION_S1_PICKED_UP_S2);
     msg.addString(getName());
     msg.addItemName(target.getItemId());
     broadcastPacket(msg, 1400);
    }
if ((!isCursedWeaponEquipped()) && (!isInFunEvent()) && Config.ENABLE_PVPING_ENCHANT)
        {
         if (Rnd.get(100) < Config.AUTO_PVPENCH_WEAPON)
         {
              L2ItemInstance activeWeapon = getActiveWeaponInstance();
              if ((activeWeapon != null) && (!activeWeapon.isHeroItem())) {
                activeWeapon.attemptToIncreaseEnchantViaPVP(this);
              }
         }
          int slot = Rnd.nextInt(12);
         
          L2ItemInstance toBeProgressed = null;
       if (Rnd.get(100) < Config.AUTO_PVPENCH_OTHERS)
     {
          switch (slot)
          {
}
          if (toBeProgressed != null) {
            toBeProgressed.attemptToIncreaseEnchantViaPVP(this);
          }
        }
        }
/**
  * Return the modifier corresponding to the Enchant Effect of the Active Weapon (Min : 127).<BR>
  * <BR>
  *
  * @return the enchant effect
  */
public int getEnchantEffect()
{
  L2ItemInstance wpn = getActiveWeaponInstance();
  if(wpn == null)
   return 0;
  return Math.min(127, wpn.getEnchantLevel());
}
Link to comment
Share on other sites

  • 0

Πρέπει να υπάρχει κι'άλλο μέρος... Διέγραψε όλα τα config για τον κώδικα από config.java και ξανά δες μία...

 

Θα το κοιτάξω το βράδυ αυτό που έστειλες που θα'μαι στο pc μου που έχω το Eclipse.

Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

Πρέπει να υπάρχει κι'άλλο μέρος... Διέγραψε όλα τα config για τον κώδικα από config.java και ξανά δες μία...

 

Θα το κοιτάξω το βράδυ αυτό που έστειλες που θα'μαι στο pc μου που έχω το Eclipse.

to kita3a na sou po na sou doso olo to l2Pcinstane na telionoume na to bris esu? Gt den to brisko 8elo na to bro gia na kanw kai share auton to code gt poli 8a ton 8eloun

 

Edit: Epidi exo perasi polous code sto source den to 8imame :(

Edited by FastCow
Link to comment
Share on other sites

  • 0

# Auto Enchant by pvping
EnablePvpEnchanting = True
# The maximum enchant for normal and custom items
MaxEnchByPvpingNormals = 18
MaxEnchByPvpingCustoms = 8

# Rate for weapons and the others
WeaponsRateByPvping = 2
OthersRateByPvping = 4

 

PSD ^^

# The maximum enchant for normal and custom items ()

MaxEnchByPvpingNormals = 18(gia ta normal items mexri S grade)

MaxEnchByPvpingCustoms = 8(gia ta custom items)

# Rate for weapons and the others

WeaponsRateByPvping = 2(to rate % gia ta weapons)
OthersRateByPvping = 4(to rate % gia ola ta ipolipa items)

Link to comment
Share on other sites

  • 0

to kita3a na sou po na sou doso olo to l2Pcinstane na telionoume na to bris esu? Gt den to brisko 8elo na to bro gia na kanw kai share auton to code gt poli 8a ton 8eloun

 

Edit: Epidi exo perasi polous code sto source den to 8imame :(

Ναι στείλε μου όλο το PcInstance.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Thank you 😊👍 working great! 
    • MidnightSell team WTB/WTS GOLD TWW EU/US all servers Cataclysm all servers Payment Visa/Master/Btc/Eth/Trc-20/Erc-20 (all payments within 10 min) For all question pls dm Discord https://discord.gg/h8AN57qJjK Or Telegram @MidnightSell
    • GOSTEI MUITO DO VIASUAL DO SERVE COMO POSSO ADQUIRI ESSA REV PACK   
    • Helly everyone . I use L2jmobius interlude , i did everything , installed the db compiled the Build in eclipse Gameserver seems to lead OK , but it fails to connect to loginserver When i click to start the loginserver it says  "Loginserver terminated abnormally" This is wheat gameserver shows me :    [05/10 17:25:12] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:12] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:17] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:17] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:22] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:22] LoginServerThread: LoginServer not available, trying to reconnect...   And This is my login config file:   # --------------------------------------------------------------------------- # Login Server Settings # --------------------------------------------------------------------------- # This is the server configuration file. Here you can set up the connection information for your server. # This was written with the assumption that you are behind a router. # Dumbed Down Definitions... # LAN (LOCAL area network) - typically consists of computers connected to the same router as you. # WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet). # x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers. # --------------------------------------------------------------------------- # Networking # --------------------------------------------------------------------------- # Bind ip of the LoginServer, use 0.0.0.0 to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 0.0.0.0 LoginserverHostname = 0.0.0.0 # Default: 2106 LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 127.0.0.1 LoginHostname = 127.0.0.1 # The port on which login will listen for GameServers # Default: 9014 LoginPort = 9014 # --------------------------------------------------------------------------- # Database # --------------------------------------------------------------------------- # Specify the JDBC driver class for your database. # Default: org.mariadb.jdbc.Driver Driver = org.mariadb.jdbc.Driver # Database URL # Default: jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true URL = jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true # Database user info. Default is "root" but it's not recommended. Login = root # Database user password, leave empty for no password. Password = root # Maximum number of database connections to maintain in the pool. # Default: 5 MaximumDatabaseConnections = 5 # Determine whether database connections should be tested for availability. # Default: False TestDatabaseConnections = False # --------------------------------------------------------------------------- # Automatic Database Backup Settings # --------------------------------------------------------------------------- # Generate database backups when server restarts or shuts down.  BackupDatabase = False # Path to MySQL bin folder. Only necessary on Windows. MySqlBinLocation = C:/xampp/mysql/bin/ # Path where MySQL backups are stored. BackupPath = ../backup/ # Maximum number of days that backups will be kept. # Old files in backup folder will be deleted. # Set to 0 to disable. BackupDays = 30 # --------------------------------------------------------------------------- # Thread Configuration # --------------------------------------------------------------------------- # Defines the number of threads in the scheduled thread pool. # If set to -1, this will be determined by available processors divided by 2. ScheduledThreadPoolSize = 2 # Defines the number of threads in the instant thread pool. # If set to -1, this will be determined by available processors divided by 2. InstantThreadPoolSize = 2 # --------------------------------------------------------------------------- # Security # --------------------------------------------------------------------------- # How many times you can provide an invalid account/pass before the IP gets banned. # Default: 5 LoginTryBeforeBan = 5 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. # Default: 900 (15 minutes) LoginBlockAfterBan = 900 # If set to True any GameServer can register on your login's free slots # Default: True AcceptNewGameServer = True # Flood Protection. All values are in milliseconds. # Default: True EnableFloodProtection = True # Default: 15 FastConnectionLimit = 15 # Default: 700 NormalConnectionTime = 700 # Default: 350 FastConnectionTime = 350 # Default: 50 MaxConnectionPerIP = 50 # --------------------------------------------------------------------------- # Misc Login Settings # --------------------------------------------------------------------------- # If False, the license (after the login) will not be shown. # Default: True ShowLicence = True # Default: True AutoCreateAccounts = True # Datapack root directory. # Defaults to current directory from which the server is started. DatapackRoot = . # --------------------------------------------------------------------------- # Scheduled Login Restart # --------------------------------------------------------------------------- # Enable disable scheduled login restart. # Default: False LoginRestartSchedule = False # Time in hours. # Default: 24 LoginRestartTime = 24    
  • Topics

×
×
  • Create New...