
vagos123
Members-
Posts
453 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by vagos123
-
[Share][Completed] L2JTranslator V1 + IPLocator V1
vagos123 replied to Xanderॐ's topic in Server Shares & Files [L2J]
i think u MUST share the translator as well !!! perfect share ! -
[GR]-[EN][Share][IL]Top PvP Player Announce+Color+Chat
vagos123 replied to skoupas's topic in Server Shares & Files [L2J]
you know which char in your server is the terror of every body else xD @ontopic : goog share mate keep it up ! -
an 8es tn gnomi m prospa8ise monos alla an dn 8es
-
[help]blessed scrolls
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
ennoeitai meso eclipse gt ama kaneis allo build 8a diagrafei ;) -
[help]blessed scrolls
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
apla valto sto antistixo config p exeis ta rates gia ta normal scrolls -
[help]blessed scrolls
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
ta credits ennoountai afou apo to search to pira dn eipa oti einai diko m ;) an epsaxnes 8a to evriskes kai monos enas mod as lock to topic -
it isn't itemetc table it is etcitem table :/
-
[help]blessed scrolls
vagos123 replied to ScRaB4ever's question in Request Server Development Help [Greek]
dn exei epilogi sta config gia auto tsimpa ena code gia na to ftiakseis Index: trunk/gameserver/java/config/other.properties =================================================================== --- trunk/gameserver/java/config/other.properties (revision 5) +++ trunk/gameserver/java/config/other.properties (working copy) @@ -135,4 +135,11 @@ AltSubClassWithoutQuests = True + +EnchantChanceWeaponCrystal = 100 +EnchantChanceArmorCrystal = 100 +EnchantChanceJewelryCrystal = 100 +EnchantChanceWeaponBlessed = 85 +EnchantChanceArmorBlessed = 85 +EnchantChanceJewelryBlessed = 85 \ No newline at end of file Index: trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (revision 2) +++ trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -39,8 +39,10 @@ public final class RequestEnchantItem extends L2GameClientPacket { protected static final Logger _log = Logger.getLogger(Inventory.class.getName()); + private static final int[] ENCHANT_SCROLLS = { 729, 730, 947, 948, 951, 952, 955, 956, 959, 960 }; private static final String _C__58_REQUESTENCHANTITEM = "[C] 58 RequestEnchantItem"; private static final int[] CRYSTAL_SCROLLS = { 731, 732, 949, 950, 953, 954, 957, 958, 961, 962 }; + private static final int[] BLESSED_SCROLLS = { 6569, 6570, 6571, 6572, 6573, 6574, 6575, 6576, 6577, 6578 }; private int _objectId; @@ -56,6 +58,13 @@ L2PcInstance activeChar = getClient().getActiveChar(); if (activeChar == null || _objectId == 0) return; + if (activeChar.isProcessingTransaction()) + { + activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); + activeChar.setActiveEnchantItem(null); + return; + } + if (activeChar.isProcessingTransaction()) { activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); @@ -195,27 +204,96 @@ return; } - SystemMessage sm; + / SystemMessage sm = new + // SystemMessage(SystemMessageId.ENCHANT_SCROLL_CANCELLED); + // activeChar.sendPacket(sm); + SystemMessage sm; + int chance = 0; + int maxEnchantLevel = 0; + if (item.getItem().getType2() == L2Item.TYPE2_WEAPON) + { + maxEnchantLevel = Config.ENCHANT_MAX_WEAPON; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL; + + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED; + break; + } + } + } else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR) + { + maxEnchantLevel = Config.ENCHANT_MAX_ARMOR; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL; + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED; + break; + } + } + } else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY) + { + maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY; + for (int scrollId : ENCHANT_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY; + break; + } + } + for (int scrollId : CRYSTAL_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL; + break; + } + } + for (int scrollId : BLESSED_SCROLLS) + { + if (scroll.getItemId() == scrollId) + { + chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED; + break; + } + } + } - int chance = 0; - int maxEnchantLevel = 0; - - if (item.getItem().getType2() == L2Item.TYPE2_WEAPON) - { - chance = Config.ENCHANT_CHANCE_WEAPON; - maxEnchantLevel = Config.ENCHANT_MAX_WEAPON; - } - else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR) - { - chance = Config.ENCHANT_CHANCE_ARMOR; - maxEnchantLevel = Config.ENCHANT_MAX_ARMOR; - } - else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY) - { - chance = Config.ENCHANT_CHANCE_JEWELRY; - maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY; - } - if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX || (item.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL)) Index: trunk/gameserver/java/net/sf/l2j/Config.java =================================================================== --- trunk/gameserver/java/net/sf/l2j/Config.java (revision 2) +++ trunk/gameserver/java/net/sf/l2j/Config.java (working copy) @@ -194,6 +194,14 @@ /** maximum level of safe enchantment for full body armor*/ public static int ENCHANT_SAFE_MAX_FULL; + + /** Chance blessed-crystal enchants */ + public static int ENCHANT_CHANCE_WEAPON_CRYSTAL; + public static int ENCHANT_CHANCE_ARMOR_CRYSTAL; + public static int ENCHANT_CHANCE_JEWELRY_CRYSTAL; + public static int ENCHANT_CHANCE_WEAPON_BLESSED; + public static int ENCHANT_CHANCE_ARMOR_BLESSED; + public static int ENCHANT_CHANCE_JEWELRY_BLESSED; /** Lottery */ public static int ALT_LOTTERY_PRIZE; @@ -924,6 +932,9 @@ ENCHANT_SAFE_MAX_FULL = Integer.parseInt(otherSettings.getProperty("EnchantSafeMaxFull", "4")); + ENCHANT_CHANCE_WEAPON_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceWeaponCrystal", "100")); + ENCHANT_CHANCE_ARMOR_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceArmorCrystal", "100")); + ENCHANT_CHANCE_JEWELRY_CRYSTAL = Integer.parseInt(otherSettings.getProperty("EnchantChanceJewelryCrystal", "100")); + ENCHANT_CHANCE_WEAPON_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceWeaponBlessed", "85")); + ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceArmorBlessed", "85")); + ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceJewelryBlessed", "85")); + -
nmz off topic check edw http://www.maxcheaters.com/forum/index.php?topic=191493.0
-
nai vevea alla ama 8es na tn xrisimopieiseis gia l2 einai kalitero na arxiseis na peiramatizese me tis me8odous tou l2 kai na eksikio8eis me to perivalon tou l2 alliws ena vivliaraki einai i kaliteri arxi
-
xaxa xD alla einai i kaliteri eisagwgi stn java.... sta va8ia katef8eian dld xD
-
ANYONE CAN HELP ME !
vagos123 replied to bestini16's question in Request Server Development Help [L2J]
FOR GOD SAKE ARE YOU BLIND PEOPLE OR WHAT? WHEN U SEE THE PHRASE SOURCE CODE WTF DO U UNDERSTAND? JUST LOL Ps : have you ever seen a pre pack with 80mb size? -
kalitera pigene se ena vivliopoleio kai pare ena vivliaraki auto 8a kano kai egw gia na emploutiso tis gnoseis m px Tsekare ena vivlio sta ellinika kai ftino
-
ksekina me teon lipon kai stn poreia vlepeis!
-
koita na deis opos leei kai o coyote i l2jacis einai kalo project alla prp na perimeneis akoma... gia l2jfree dn s protino exei compile me maven alla ama to ksereis einai poli kalo project exo doulepsei pano t apo archid an exeis xrimata agorase to pack alla tn free version mn tn xrisimopoieiseis dn exei teliosei akoma teon kai brasil emena dn m kanoun prosopika para polla mods. 8elw na pernao osa exo egw Ljfrozen : kalo projectaki vasismeno sto rossiko l2scoria.. to powerpak einai ena megalo ++ alla se polla simia tou pack 8a vreis invalid characters ( profanos rossika apo tn scoria) pou 8a s kanoun tn zoi ligo diskoli telos menei i l2j pou par ' ola ta buggs p exei einai gia mena i kaliteri arxi idika ama arxizeis tr to developing dioti mporeis na peiramatisteis oso 8eleis , na gnoriseis tis me8odous mesa apo ta fix p 8a pernas kai genika 8a egklimatisteis me to java developing Auta ! xD tr esi dialegeis
-
http://www.maxcheaters.com/forum/index.php?topic=156075.0 des kai dialekse kai einai interlude oxi interloude ;)
-
an xrisimoppihseis auto i armor s i epic 8a exei aura apo moni tis ALTER TABLE `armorsets` ADD COLUMN `aurahero` INTEGER NOT NULL DEFAULT 0; Patch: Code: Index: sf/l2j/gameserver/datatables/ArmorSetsTable.java =================================================================== --- sf/l2j/gameserver/datatables/ArmorSetsTable.java (revision 4407) +++ sf/l2j/gameserver/datatables/ArmorSetsTable.java (working copy) @@ -62,7 +62,7 @@ try { con = L2DatabaseFactory.getInstance().getConnection(); - PreparedStatement statement = con.prepareStatement("SELECT chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill FROM armorsets"); + PreparedStatement statement = con.prepareStatement("SELECT chest, legs, head, gloves, feet, skill_id, shield, shield_skill_id, enchant6skill, aurahero FROM armorsets"); ResultSet rset = statement.executeQuery(); while(rset.next()) @@ -76,7 +76,8 @@ int shield = rset.getInt("shield"); int shield_skill_id = rset.getInt("shield_skill_id"); int enchant6skill = rset.getInt("enchant6skill"); - _armorSets.put(chest, new L2ArmorSet(chest, legs, head, gloves, feet,skill_id, shield, shield_skill_id, enchant6skill)); + int aurahero = rset.getInt("aurahero"); + _armorSets.put(chest, new L2ArmorSet(chest, legs, head, gloves, feet,skill_id, shield, shield_skill_id, enchant6skill, aurahero)); } _log.config("ArmorSetsTable: Loaded "+_armorSets.size()+" armor sets."); Index: sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 4407) +++ sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -452,6 +452,7 @@ private boolean _noble = false; private boolean _hero = false; + private boolean _epic = false; /** The L2FolkInstance corresponding to the last Folk wich one the player talked. */ private L2FolkInstance _lastFolkNpc = null; @@ -8114,6 +8115,23 @@ sendSkillList(); } + public void setEpic(boolean epic) + { + if (epic) + { + sendMessage("You wear Epic Set"); + sendPacket(new UserInfo(this)); + broadcastUserInfo(); + } + else + { + sendPacket(new UserInfo(this)); + broadcastUserInfo(); + } + _epic = epic; + + } + public void setIsInOlympiadMode(boolean b) { _inOlympiadMode = b; @@ -8132,7 +8150,12 @@ { return _hero; } - + + public boolean isEpic() + { + return _epic; + } + public boolean isInOlympiadMode() { return _inOlympiadMode; Index: sf/l2j/gameserver/model/Inventory.java =================================================================== --- sf/l2j/gameserver/model/Inventory.java (revision 4407) +++ sf/l2j/gameserver/model/Inventory.java (working copy) @@ -309,10 +309,17 @@ L2Skill skill = SkillTable.getInstance().getInfo(armorSet.getSkillId(),1); if(skill != null) { - player.addSkill(skill, false); - player.sendSkillList(); - } - else + int aura = armorSet.getauraHero(); + if (aura != 0) + { + player.addSkill(skill, false); + player.sendSkillList(); + player.setEpic(true); + } + player.addSkill(skill, false); + player.sendSkillList(); + } + else _log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getSkillId()+"."); if(armorSet.containShield(player)) // has shield from set @@ -371,42 +378,44 @@ int removeSkillId3 = 0; // enchant +6 skill if(slot == PAPERDOLL_CHEST) + { + L2ArmorSet armorSet = ArmorSetsTable.getInstance().getSet(item.getItemId()); + if(armorSet == null) + return; + + remove = true; + removeSkillId1 = armorSet.getSkillId(); + removeSkillId2 = armorSet.getShieldSkillId(); + removeSkillId3 = armorSet.getEnchant6skillId(); + player.setEpic(false); + } + else + { + L2ItemInstance chestItem = getPaperdollItem(PAPERDOLL_CHEST); + if(chestItem == null) + return; + + L2ArmorSet armorSet = ArmorSetsTable.getInstance().getSet(chestItem.getItemId()); + if(armorSet == null) + return; + + if(armorSet.containItem(slot, item.getItemId())) // removed part of set + { + remove = true; + removeSkillId1 = armorSet.getSkillId(); + removeSkillId2 = armorSet.getShieldSkillId(); + removeSkillId3 = armorSet.getEnchant6skillId(); + player.setEpic(false); + } + else if(armorSet.containShield(item.getItemId())) // removed shield + { + remove = true; + removeSkillId2 = armorSet.getShieldSkillId(); + } + } + + if(remove) { - L2ArmorSet armorSet = ArmorSetsTable.getInstance().getSet(item.getItemId()); - if(armorSet == null) - return; - - remove = true; - removeSkillId1 = armorSet.getSkillId(); - removeSkillId2 = armorSet.getShieldSkillId(); - removeSkillId3 = armorSet.getEnchant6skillId(); - } - else - { - L2ItemInstance chestItem = getPaperdollItem(PAPERDOLL_CHEST); - if(chestItem == null) - return; - - L2ArmorSet armorSet = ArmorSetsTable.getInstance().getSet(chestItem.getItemId()); - if(armorSet == null) - return; - - if(armorSet.containItem(slot, item.getItemId())) // removed part of set - { - remove = true; - removeSkillId1 = armorSet.getSkillId(); - removeSkillId2 = armorSet.getShieldSkillId(); - removeSkillId3 = armorSet.getEnchant6skillId(); - } - else if(armorSet.containShield(item.getItemId())) // removed shield - { - remove = true; - removeSkillId2 = armorSet.getShieldSkillId(); - } - } - - if(remove) - { if(removeSkillId1 != 0) { L2Skill skill = SkillTable.getInstance().getInfo(removeSkillId1,1); Index: sf/l2j/gameserver/model/L2ArmorSet.java =================================================================== --- sf/l2j/gameserver/model/L2ArmorSet.java (revision 4407) +++ sf/l2j/gameserver/model/L2ArmorSet.java (working copy) @@ -39,8 +39,9 @@ private final int _shieldSkillId; private final int _enchant6Skill; + private final int _auraHero; - public L2ArmorSet(int chest, int legs, int head, int gloves, int feet, int skill_id, int shield, int shield_skill_id, int enchant6skill) + public L2ArmorSet(int chest, int legs, int head, int gloves, int feet, int skill_id, int shield, int shield_skill_id, int enchant6skill, int auraHero) { _chest = chest; _legs = legs; @@ -53,6 +54,7 @@ _shieldSkillId = shield_skill_id; _enchant6Skill = enchant6skill; + _auraHero = auraHero; } /** * Checks if player have equiped all items from set (not checking shield) @@ -143,6 +145,10 @@ { return _enchant6Skill; } + public int getauraHero() + { + return _auraHero; + } /** * Checks if all parts of set are enchanted to +6 or more * @param player Index: sf/l2j/gameserver/serverpackets/CharInfo.java =================================================================== --- sf/l2j/gameserver/serverpackets/CharInfo.java (revision 4407) +++ sf/l2j/gameserver/serverpackets/CharInfo.java (working copy) @@ -325,7 +325,7 @@ writeD(_activeChar.getClanCrestLargeId()); writeC(_activeChar.isNoble() ? 1 : 0); // Symbol on char menu ctrl+I - writeC((_activeChar.isHero() || (_activeChar.isGM() && Config.GM_HERO_AURA)) ? 1 : 0); // Hero Aura + writeC((_activeChar.isHero() || (_activeChar.isEpic()) || (_activeChar.isGM() && Config.GM_HERO_AURA)) ? 1 : 0); // Hero Aura writeC(_activeChar.isFishing() ? 1 : 0); //0x01: Fishing Mode (Cant be undone by setting back to 0) writeD(_activeChar.GetFishx()); Index: sf/l2j/gameserver/serverpackets/UserInfo.java =================================================================== --- sf/l2j/gameserver/serverpackets/UserInfo.java (revision 4407) +++ sf/l2j/gameserver/serverpackets/UserInfo.java (working copy) @@ -294,7 +294,7 @@ writeD(_activeChar.getClanCrestLargeId()); writeC(_activeChar.isNoble() ? 1 : 0); //0x01: symbol on char menu ctrl+I - writeC((_activeChar.isHero() || (_activeChar.isGM() && Config.GM_HERO_AURA)) ? 1 : 0); //0x01: Hero Aura + writeC((_activeChar.isHero() || (_activeChar.isEpic()) || (_activeChar.isGM() && Config.GM_HERO_AURA)) ? 1 : 0); //0x01: Hero Aura writeC(_activeChar.isFishing() ? 1 : 0); //Fishing Mode writeD(_activeChar.GetFishx()); //fishing x tora gia auto p 8es esi prepei na xrisimopieiseis kai tn me8odo getEnchantLevel ==
-
Paidia exw provlima me tin clan. Deite parakalw.
vagos123 replied to c0britsa's question in Request Server Development Help [Greek]
ektos apo osa anafer8ikan otan xrisimopiousa egw equal eixe problems sto arxeio L2TeleporterInstance.java kai dn mporouses na pas se diafora meri opos px Primeval telos pantwn dialekse ena projectaki kai kanto compile pare mai eteria p na exei fix kai oxi l2j gt kai egw tr ftiaxno ena project vasismeno se l2j interlude kai m exei vgalei tn pisti ... exw perasei ta mods m alla vrisko ta bugg to ena meta to allo -
MaNa Potion Problem
vagos123 replied to ronagr's question in Request Server Development Help [Greek]
np ;) -
MaNa Potion Problem
vagos123 replied to ronagr's question in Request Server Development Help [Greek]
pigene sto guide tou extreme dwarf , einai kai sticky , ma8e compile ftiakse to pack s apo tn arxi , perna osa fix kai mods 8es kai 8a eisai coble me pre pack dn mporeis na kaneis tpt -
MaNa Potion Problem
vagos123 replied to ronagr's question in Request Server Development Help [Greek]
asto kalitera..... exeis preconfigured pack? holy shit -
MaNa Potion Problem
vagos123 replied to ronagr's question in Request Server Development Help [Greek]
pare auto , perase to kai vale oso 8es na anevazei Index: L2JBrasil_CORE/java/config/L2JBrasil.properties =================================================================== --- L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 1459) +++ L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 1460) @@ -181,6 +181,11 @@ # Default : True AltOlySameIP = True +#----------------------------------------# +# Mana Potion MP Regeneration # +#----------------------------------------# +ManaPotionMPRes = 200 + #--------------------------------------------------------------- # Item Configurations - #--------------------------------------------------------------- Index: L2JBrasil_CORE/java/com/it/br/Config.java =================================================================== --- L2JBrasil_CORE/java/com/it/br/Config.java (revision 1459) +++ L2JBrasil_CORE/java/com/it/br/Config.java (revision 1460) @@ -610,6 +610,7 @@ public static boolean ALLOW_ARCHERS_WEAR_HEAVY; public static boolean ALLOW_SAME_IP_NOT_GIVE_PVP_POINT; public static boolean ALT_OLY_SAME_IP; + public static int MANA_POTION_RES; public static boolean RESTORE_EFFECTS_ON_SUBCLASS_CHANGE; public static boolean SHOW_WELCOME_HTML_ON_PLAYER_LOGIN; public static boolean SHOW_WELCOME_PM; @@ -1036,6 +1037,7 @@ NOBLE_STATUS_NEEDED_TO_USE_HERO_ITEM = Boolean.parseBoolean(L2JBrasil.getProperty("NobleStatusNeededToUseHeroItem", "True")); ALLOW_SAME_IP_NOT_GIVE_PVP_POINT = Boolean.parseBoolean(L2JBrasil.getProperty("AllowSameIPDontGivePvPPoint", "False")); ALT_OLY_SAME_IP = Boolean.parseBoolean(L2JBrasil.getProperty("AltOlySameIp", "True")); + MANA_POTION_RES = Integer.parseInt(L2JBrasil.getProperty("ManaPotionMPRes", "200")); ANNOUNCE_ALL_KILL = Boolean.parseBoolean(L2JBrasil.getProperty("AnnounceAllKill", "False")); // Get the AnnounceAllKill, AnnouncePvpKill and AnnouncePkKill values if ( !ANNOUNCE_ALL_KILL ) { Index: L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java =================================================================== --- L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java (revision 1459) +++ L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java (revision 1460) @@ -21,6 +21,7 @@ import java.util.logging.Level; import java.util.logging.Logger; +import com.it.br.Config; import com.it.br.gameserver.ThreadPoolManager; import com.it.br.gameserver.datatables.SkillTable; import com.it.br.gameserver.handler.IItemHandler; @@ -33,6 +34,8 @@ import com.it.br.gameserver.model.entity.TvTEvent; import com.it.br.gameserver.network.SystemMessageId; import com.it.br.gameserver.network.serverpackets.ActionFailed; +import com.it.br.gameserver.network.serverpackets.MagicSkillUser; +import com.it.br.gameserver.network.serverpackets.StatusUpdate; import com.it.br.gameserver.network.serverpackets.SystemMessage; /** @@ -127,10 +130,20 @@ res = usePotion(activeChar, 2003, 1); break; case 728: - res = usePotion(activeChar, 2005, 1); - break; + { + activeChar.setCurrentMp(Config.MANA_POTION_RES + activeChar.getCurrentMp()); + StatusUpdate su = new StatusUpdate(activeChar.getObjectId()); + su.addAttribute(StatusUpdate.CUR_MP, (int) activeChar.getCurrentMp()); + activeChar.sendPacket(su); + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2005, 1, 0, 0); + activeChar.broadcastPacket(MSU); + SystemMessage sm = new SystemMessage(SystemMessageId.USE_S1); + sm.addItemName(itemId); + activeChar.sendPacket(sm); + activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); + } + return; - case 65: // red_potion, xml: 2001 res = usePotion(activeChar, 2001, 1); break; -
L2JDP installer ERROR
vagos123 replied to Agonisez's question in Request Server Development Help [Greek]
Koita ston database installer an patiseis deksi click kai edit kai kateveis ligaki kato 8a vries auto if not "%1"=="17" ( color F ) else ( color ) ) else ( color %1 ) goto :eof :configure call :colors 17 title L2JDP installer - Setup cls set config_version=2 if NOT %upgrade_mode% == 2 ( set fresh_setup=1 set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.5\bin set lsuser=root set lspass= set lsdb=l2jdb set lshost=localhost set cbuser=root set cbpass= set cbdb=l2jcb set cbhost=localhost set gsuser=root set gspass= set gsdb=l2jdb set gshost=localhost set cmode=c set backup=. set logdir=. ) alakse ta panta kata to pos ta exeis valei dld ti mysql exeis an exeis pass stn db ktlp @Nosti ksexases na developareis re? xD -
ti simasia exei to client? :S afou iparxei i me8odos sto proto command kai ta system messages sto deftero gt na s vgalei error? :S i glossa programatismou einai mia dn allazei ana client