Jump to content

Question

Posted

to ekana compile alla sto game vgazei test succesfully enchanted his weapon to+16

o kwdikas einai autos: Announcements.getInstance().announceToAll("Player" + activeChar.getName() + " succesfully enchanted his weapon to " + Config.WEAPON_MAX);

 

ginete na ton kanoume opws etsi: ? Congratulations, test successful enchanted (itemid) +16

34qqq0l.jpg

 

 

10 answers to this question

Recommended Posts

  • 0
Posted

τράβα requestenchantitem.java

 

βρες αυτό:

item.setEnchantLevel(item.getEnchantLevel()+1);
            	item.updateDatabase();

 

κάτω από αυτό βάλε αυτό:

if (item.getItemType().equals(L2WeaponType.BIGBLUNT))
            		Announcements.getInstance().announceToAll("Congratulations," + activeChar.getName() + "succesfully enchanted his" + item.getItemName() + "to " + Config.ENCHANT_CHANCE_WEAPON);
            	else if (item.getItemType().equals(L2ArmorType.HEAVY))
                		Announcements.getInstance().announceToAll("Congratulations," + activeChar.getName() + "succesfully enchanted his" + item.getItemName() + "to " + Config.ENCHANT_CHANCE_ARMOR);

 

αυτό ήταν ένα μικρό παράδειγμα,πως μπορείς να το κάνεις.

δεν ξέρω αν λειτουργεί γιατί έχω καιρό να ασχοληθώ με την java..πάντως αν κάνεις έτσι και για τα υπόλοιπα items πιστεύω θα δουλέψει..

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..