Jump to content

vagos123

Members
  • Posts

    453
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by vagos123

  1. an doseis mia voi8ia dn 8a pa8eis kati oriste file 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;
  2. prepei na koitakseis ta xml kai sta datatables apo core to AugmentationData.java
  3. nmz auto m to pes kai sto sxoleio
  4. na to kseka8ariso... 8elw na vazo xrimata sto paypal anonima :) iparxei to moneypak opou "fortoneis" osa xrhmata 8es kai ta pernas se paypal alla distixws pwleitai mono se ameriki telos pantwn an dn iparksei kati allo 8a prepei na arxiso na psaxno gia tous psc traders kai na kano tn stavro m
  5. dn eimai 10 , 16 eimai kai pezo apo 7 xronon basket , exo mpei kai se anaptiksiako... rotisa kai ema8a dn paei me tn ilikia
  6. well i don't think 2011 is out.. even the season hasn't started yet. if you are talking about 2010 you can easily find a torrent
  7. an eisai tixeros nai alliws gamiete o metavolismos kai meta prepei na tros para para poli ligo
  8. file akou afta p 8a s po epidi kai egw kano diatrofi gt prepei na xaso kana 10 kilo mexri to kalokairi. (eimai 1.86 kai 95 kila) Lpn katarxas kalo 8a htan souvlakia , pitses , glyka ktlp mia fora tn evdomada. Episis mporeis na kaneis to allo : na prosexeis olin tn evdomada sou kai na exeis mia mera , px savvato , pou 8a tros to gliko s to mesimeri kai to souvlaki s to vradi. Etc kano egw . Me auto tn tropo oute sterise tpt oute to parakaneis. Ena poli simantiko akoma pragma einai na prosexeis to vradino. Egw troo ena kalo vradino stis 7. Gt vevea kimamai giro stis 10-11 logo sxoleiou. Dn prepei na tros kai na kimase amesos etc pira egw ta kila kai as eimai kai a8litis (8a deis parakato) Epipros8eta , poli askisi. Egw paizo se omada basket alla eimai grammenos kai se gymnasthrio , alla emena o skopos m einai allos. Esena 8a sou proteina na vgaineis gia perpatima ka8e mera alla kai gia joking oses perissoteres fores mporeis. Telos , mn kaneis to la8os tou na mn tros tpt . Einai to megalitero la8os gt xalaei o metavolismos sou. An to kaneis auto , mprei na xaseis kila alla meta mporei na tros kanonika alla na perneis ta kila piso. Prepei na tros sixna kai mikra gevmata . 8a s po pos troo egw mesa stn mera : Ena kalo proino ena koulouri 8esalonikis sto sxoleio mesimeriano o,ti exei ftiaksei i mama stis 5 ena frouto vradino stis 7 ama pinaso mexri na kimi8o ena potiri gala i ena frouto lpn afta apo mena. Elpizo na se voi8isa. An 8eleis tpt allo stile ena pm
  9. Γεια σας ... Θα ήθελα να ρωτήσω εαν υπάρχει κάποιος τρόπος να έχω paypal account αλλά να μην βάζω χρήματα μέσω τράπεζας ή πιστωτικής. Έψαξα και βρήκα το moneypak αλλά δυστυχώς πωλείται μόνο στην Αμερική... Συνοψίζοντας λοπόν, υπάρχει κάποιος τρόπος να βάζω ανώνυμα χρήματα σε paypal? Μην μπλέκω με τραπεζες και πιστωτικές... Ευχαριστώ εκ των προτέρων ...
  10. if you want free hosting just head for www.000webhost.com and everything will be easier
  11. Index: C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/config/pvp.properties =================================================================== --- C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/config/pvp.properties (revision 1156) +++ C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/config/pvp.properties (working copy) @@ -29,3 +29,11 @@ PvPVsNormalTime = 40000 # Length one stays in PvP mode after hitting a purple player (in ms) PvPVsPvPTime = 20000 + +# Announces when a Player PK another Player. Default - false +AnnouncePkKill = false +# Announces when a Player Pvp another Player. Default - false +AnnouncePvPKill = false +# Announces when a Player kill another Player. Default - false +# NOTE: If AnnounceKill is enabled, AnnouncePk and AnnouncePvP will be disabled. +AnnounceAllKill = false Index: C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java =================================================================== --- C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (revision 1156) +++ C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (working copy) @@ -777,7 +777,13 @@ /** Duration (in ms) while a player stay in PVP mode after hitting an innocent */ public static int PVP_NORMAL_TIME; /** Duration (in ms) while a player stay in PVP mode after hitting a purple player */ - public static int PVP_PVP_TIME; + public static int PVP_PVP_TIME; + /** Announce PvP */ + public static boolean ANNOUNCE_PVP_KILL; + /** Announce PK */ + public static boolean ANNOUNCE_PK_KILL; + /** Announce Kill */ + public static boolean ANNOUNCE_ALL_KILL; // Karma Punishment /** Allow player with karma to be killed in peace zone ? */ @@ -1926,6 +1932,18 @@ PVP_NORMAL_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsNormalTime", "15000")); PVP_PVP_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsPvPTime", "30000")); + ANNOUNCE_ALL_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnounceAllKill", "False")); // Get the AnnounceAllKill, AnnouncePvpKill and AnnouncePkKill values + if ( !ANNOUNCE_ALL_KILL ) + { + ANNOUNCE_PVP_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePvPKill", "False")); + ANNOUNCE_PK_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePkKill", "False")); + } + else + { + ANNOUNCE_PVP_KILL = false; + ANNOUNCE_PK_KILL = false; + } + } catch (Exception e) { @@ -2323,6 +2341,9 @@ else if (pName.equalsIgnoreCase("PvPVsNormalTime")) PVP_NORMAL_TIME = Integer.parseInt(pValue); else if (pName.equalsIgnoreCase("PvPVsPvPTime")) PVP_PVP_TIME = Integer.parseInt(pValue); + else if (pName.equalsIgnoreCase("AnnouncePvPKill") && !ANNOUNCE_ALL_KILL ) ANNOUNCE_PVP_KILL = Boolean.valueOf(pValue); // Set announce Pvp value + else if (pName.equalsIgnoreCase("AnnouncePkKill") && !ANNOUNCE_ALL_KILL ) ANNOUNCE_PK_KILL = Boolean.valueOf(pValue); // Set announce Pk value + else if (pName.equalsIgnoreCase("AnnounceAllKill") && !ANNOUNCE_PVP_KILL && !ANNOUNCE_PK_KILL ) ANNOUNCE_ALL_KILL = Boolean.valueOf(pValue); // Set announce kill value else if (pName.equalsIgnoreCase("GlobalChat")) DEFAULT_GLOBAL_CHAT = pValue; else if (pName.equalsIgnoreCase("TradeChat")) DEFAULT_TRADE_CHAT = pValue; else if (pName.equalsIgnoreCase("MenuStyle")) GM_ADMIN_MENU_STYLE = pValue; Index: C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 1156) +++ C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -35,6 +35,7 @@ import javolution.util.FastMap; import net.sf.l2j.Config; import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.GameTimeController; import net.sf.l2j.gameserver.GeoData; import net.sf.l2j.gameserver.GmListTable; @@ -4446,6 +4447,9 @@ ) { increasePvpKills(); + if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName()); + return; } else // Target player doesn't have pvp flag set { @@ -4458,6 +4462,10 @@ { // 'Both way war' -> 'PvP Kill' increasePvpKills(); + if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName()); + else if ( target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL ) // Announces a kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" killed Player "+target.getName()); return; } } @@ -4469,13 +4477,19 @@ if ( Config.KARMA_AWARD_PK_KILL ) { increasePvpKills(); + if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName()); } } else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma { increasePkKillsAndKarma(targetPlayer.getLevel()); + if ( target instanceof L2PcInstance && Config.ANNOUNCE_PK_KILL ) // Announces a Pk kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" has assassinated Player "+target.getName()); } } + if ( target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL ) // Announces a kill + Announcements.getInstance().announceToAll("Player "+this.getName()+" killed Player "+target.getName()); } AnnounceAllKills [true|false] : Every time that a player kills another player an announcement will appear. Doesn't matter if it is a Pk kill or a PvP kill. (Announcement: Player A killed Player B) AnnouncePvPKills [true|false]: Every time that a player win in a PvP fight an announcement will appear. (Announcement: Player A hunted Player B) AnnouncePkKills [true|false]: Every time that a player kill another and becomes a Pk (or increases its pk points) an announcement will appear. (Announcement: Player A has assassinated Player B ) * Note that you can enable AnnouncePvPKills and AnnouncePkKills at the same time, but if AnnounceAllKills is enabled, AnnouncePvPKills and AnnouncePkKills will get disabled automatically. * Note that AwardPKKillPVPPoint affects to the announcement (PvP). If the AwardPKKillPVPPoint option is disabled, when a good character kills a chaotic character the announcement won't appear. * Feel free to change the messages as you want. 2o sto search , alli fora prospa8ise na kaneis prota search kai meta 1 topic
  12. i have to say i never thought about something like that , but in fact it is reality
  13. absolutely right also you do not start learning java to code for l2j for god sake! You start learning for other reasons such as university , job , or just because you like programming languages and everything related to the computer , like me.
  14. this is fucking awesome for newbies wish i had found it before i started reading the written tutorial
  15. http://maxcheaters.com/forum/index.php?topic=200880.0 request dev help
  16. vres auto sto altsettings.properties # Weight Limit multiplier - default 1 AltWeightLimit = 1 kai vale 9999999999999 btw wrong section ;)
  17. works well for me by the time i firstly downloaded it. I will give a try to the one you mention
  18. yeap but the best around and btw it updates frequently
  19. Hello guys! Is there a way i can get a moneypak in greece? i really need a paypal account to pay for my server hosting and i really don't want to mess up with banks and credits cards.... moneypak is my only way... do you know if there is a possible way to get one or something like it?
  20. op nai sry dikio exeis dn exo asxoli8ei me pio kainouria clients xD
  21. navicat -> characters -> o char sou -> proxoras mexri na vreis to access level -> vazeis 200 prepei o pextis na einai offline
  22. gt sto login kai na stilei packets dn 8a ginei tpt.. olo to setup tou server einai sto gameserver
  23. allo ennoo... apo pou 8a anevaso ta arxeia sto dedica?.... upload / download , ftp apo pou?
  24. lpn 8a prospa8iso na se ksemperdepso.. to noobish error , to opio einai fixed sto mmocore pou perases an 8imame kala exei na kanei me tn buffer ayto pou vlepo egw tora einai packet flooding dld kapios me ena programma sou stelnei unknown packets oste na sou kolisei ton server xriazese lpn na kaneis ena oraio rework sto mmocore sou sxetika me packet flooding . elpizo na se ksemperdepsa
×
×
  • Create New...