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

for(L2PcInstance players: L2World.getInstance().getAllPlayers())

{

players.sendMessage(" mpla mpla");

}

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