-
Posts
2,865 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Flash™
-
[SHARE] JAVA Config mana mana potion
Flash™ replied to Flash™'s topic in Server Shares & Files [L2J]
file tosa 3ereis tosa les ama deis kalitera leei se ayto to simio /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java l2j kai den exei kamia sxesei me to L2jArchid giati exoun diaforetika java :P des kai monos sou se ayto to link http://svn.assembla.com/svn/L2J-Archid/trunk/L2J-Archid-Game/src/main/java/com/l2jarchid/gameserver/ -
[Help]Buffer & Another Problem
Flash™ replied to Loukas's question in Request Server Development Help [Greek]
1: file gia eimai o a a-error prin na anebaso tin buffer kai idika to pack pou exo anebasei to exo elen3ei kai prosexo ti kano i buffer douleyei 100% ama esu kaneis la8os tote den mporoume na kanoume kati emeis. 2: pigene GameServer\data\jscript\custom\__init__ kai pata epano tou open mpes mesa kai des ama einai ola opos ayto edo __all__ = [ '3995_echo', '4000_ShadowWeapons', '7000_HeroItems', '8000_RaidbossInfo', '6050_KetraOrcSupport', '6051_VarkaSilenosSupport', '9999_NPCBuffer' ] print "" print "importing custom data ..." for name in __all__ : try : __import__('data.jscript.custom.'+name,globals(), locals(), ['__init__'], -1) except: print "failed to import quest : ",name print "... done" print "" kai ama einai ok ola kanto close 3: pigene GameServer\data\jscript\custom\9999_NPCBuffer\__init__ kai des pos einai ayto edo to simio import sys from com.l2jarchid.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from com.l2jarchid.gameserver.datatables import SkillTable from com.l2jarchid import L2DatabaseFactory from com.l2jarchid.gameserver.model.quest import State from com.l2jarchid.gameserver.model.quest import QuestState from com.l2jarchid.gameserver.model.quest.jython import QuestJython as JQuest alla ayto einai gia l2jarchid aplos sou leo pos kai kala 8a to deis kai ama exei kapou problima balto edo na sto ftia3o ego -
file oti pack server kai na pareis prepei na kaneis compile allios den mporeis na sikoseis server kai na plironeis pc stin ameriki na mpenei to ka8e 10xrono kai na kanei tin plaka tou emena i apopsi mou fisika
-
file mace den tou eipa na parei l2jfree giati oute ego 8a to eperna pote giati exo dei t bug exei akoma kai i archid exei bug kai akoma pou ta ftiaxnoun uparxoun exoun kanei posa update ta paidia gia na fix to Enchant bug kai akoma den to exoun fix
-
telika 8a mou peis me ti pack server 8a to sikoseis ton server l2dot me l2jfree me ti ? kai kati allo 3ereis pos mporeis na mpei sto pc tin amerikis pou 8a agoraseis ?
-
file DāЯқŜiĐє kai file Killer_09 ama parei hosting apo ekei pes kaneme mou i se ayto to acc i stou a-error na kanoniso ama einai anti 3GB RAM na sa balei 4GB RAM na eistai ok
-
ego ston l2-just pou eixa ta idia sto pc gia peripou 1 mina eixa 250 atoma meta ebala 8GB RAM kai no lag aplos prepei na deis kai to pack giati kapoia pack server pou eixa brei palia eixa lag...
-
nai alla ama einai 8a sto kanei 4 :P 3ero ti sou leo me ti pack server 8a doulepseis ?
-
* 250 GB Hard Drive * 4 GB RAM * 1 IP Address * 5 TB Bandwidth * 100 Mbps uplink port * Free Setup kai oti windows ama baleis einai 109 dolaria se euro 76 eyro
-
nai re file den mporeis na to skeftis kai monos sou 8a plironeis ena pc pou den 8a exei ton server sou einai logiko pes mou kai mono sou ...
-
akou ayto einai otan hostaris ton server ameriki i opou 8eleis.. dou exo dosei kai sto post ayto ena link mias eterias kai ayti pisteyo einai kali apo tin dikia mou apopsi fisika
-
file oriste ena link pou pisteyo na se ikanopiisei http://www.maxcheaters.com/forum/index.php?topic=58757.0 oti allo 8eleis kane mou pm na sou po
-
file kanei den 8a sou dinei 20 euro tin ebdomada kai ama exeis hostari ton server sou ameriki tote bgale ena poso na tou baleis to mino px 50 eyro alla na min exeis accesslevels polla...
-
paidia edo einai ena config gia ta mana potion poso mp 8a anebazei ..... Index: /trunk/lin2srv/java/config/l2jmods.properties =================================================================== --- /trunk/lin2srv/java/config/l2jmods.properties (revision 834) +++ /trunk/lin2srv/java/config/l2jmods.properties (revision 883) @@ -252,4 +252,11 @@ EnableManaPotionSupport = False +# Mp recovery for mana potion (ID 728) +# Lvl1 - 100MP, lvl2 - 250MP +# Lvl3 - 500MP, lvl4 - 750MP +# Lvl5 - 1000MP +# Default: 1 +ManaPotionLevel = 1 + # --------------------------------------------------------------------------- # Welcome message Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 873) +++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 883) @@ -10849,5 +10849,6 @@ getPet().updateAndBroadcastStatus(0); } - + + TvTEvent.onTeleported(this); } Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java (revision 849) +++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java (revision 883) @@ -25,4 +25,5 @@ import net.sf.l2j.gameserver.datatables.ItemTable; import net.sf.l2j.gameserver.datatables.NpcTable; +import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.datatables.SpawnTable; import net.sf.l2j.gameserver.model.L2Skill; @@ -896,4 +897,40 @@ } + /** + * Called on Appearing packet received (player finished teleporting)<br><br> + * + * @param L2PcInstance playerInstance + */ + public static void onTeleported(L2PcInstance playerInstance) + { + if (!isStarted() || playerInstance == null || !isPlayerParticipant(playerInstance.getObjectId())) + return; + + if (playerInstance.isMageClass()) + { + if (Config.TVT_EVENT_MAGE_BUFFS != null && !Config.TVT_EVENT_MAGE_BUFFS.isEmpty()) + { + for (int i : Config.TVT_EVENT_MAGE_BUFFS.keySet()) + { + L2Skill skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_MAGE_BUFFS.get(i)); + if (skill != null) + skill.getEffects(playerInstance, playerInstance); + } + } + } + else + { + if (Config.TVT_EVENT_FIGHTER_BUFFS != null && !Config.TVT_EVENT_FIGHTER_BUFFS.isEmpty()) + { + for (int i : Config.TVT_EVENT_FIGHTER_BUFFS.keySet()) + { + L2Skill skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_FIGHTER_BUFFS.get(i)); + if (skill != null) + skill.getEffects(playerInstance, playerInstance); + } + } + } + } + /* * Return true if player valid for skill Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java (revision 814) +++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java (revision 883) @@ -17,6 +17,4 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.ThreadPoolManager; -import net.sf.l2j.gameserver.datatables.SkillTable; -import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Summon; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; @@ -85,30 +83,4 @@ _playerInstance.setTeam(0); - L2Skill skill; - if (_playerInstance.isMageClass()) - { - if (Config.TVT_EVENT_MAGE_BUFFS != null && !Config.TVT_EVENT_MAGE_BUFFS.isEmpty()) - { - for (int i : Config.TVT_EVENT_MAGE_BUFFS.keySet()) - { - skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_MAGE_BUFFS.get(i)); - if (skill != null) - skill.getEffects(_playerInstance, _playerInstance); - } - } - } - else - { - if (Config.TVT_EVENT_FIGHTER_BUFFS != null && !Config.TVT_EVENT_FIGHTER_BUFFS.isEmpty()) - { - for (int i : Config.TVT_EVENT_FIGHTER_BUFFS.keySet()) - { - skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_FIGHTER_BUFFS.get(i)); - if (skill != null) - skill.getEffects(_playerInstance, _playerInstance); - } - } - } - _playerInstance.setCurrentCp(_playerInstance.getMaxCp()); _playerInstance.setCurrentHp(_playerInstance.getMaxHp()); Index: /trunk/lin2srv/java/net/sf/l2j/Config.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 878) +++ /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 883) @@ -622,4 +622,5 @@ public static int OFFLINE_NAME_COLOR; public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT; + public static int MANA_POTION_LEVEL; public static boolean WELCOME_MESSAGE_ALLOW; public static String WELCOME_MESSAGE; @@ -2068,4 +2069,6 @@ L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableManaPotionSupport", "false")); + MANA_POTION_LEVEL = Integer.parseInt(L2JModSettings.getProperty("ManaPotionLevel", "1")); + if (MANA_POTION_LEVEL > 5 || MANA_POTION_LEVEL < 1) MANA_POTION_LEVEL = 5; WELCOME_MESSAGE_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty("AllowScreenWelcomeMessage", "false"));
-
se ola aplos ama exeis problima me to sql mou les kai sou to ftiaxno kai ti pack server xrisimopieis
-
pos anigw 2 Server online?
Flash™ replied to symeon24's question in Request Server Development Help [Greek]
file mou di3e mou ligo kai ta 2 config apo tous 2 gamserver na sou po ti 8a kaneis kai ama exeis opos eipes ena pack l2dot kai allo ena l2jfree den mporeis na peraseis ta ida tools kai sou 2 server giati to ka8e ena pack exei diaforetika sql pou pernaei stin nav prepei na peraseis prota tou l2dot kai meta na kaneis l2db_2 opos kai na legete kai na peraseis to l2jfree -
file kai mporeis na to kaneis efkola
-
file min kaneis tsampa post giati na peis mono kai mono oti den mporeis na ton voi8iseis to paidi to leei 3eka8ara oti 8elei ena system gia final
-
[HELP]Teleport problem plz help
Flash™ replied to YouMustDie's question in Request Server Development Help [Greek]
file poio pano ayto tou eipa des kato kai ektos apo ayto ayto to error to eixa kanei post edo prin para poly kairo kai kaneis den i3ere ti einai kai to brika kai polla paidia to eixa to problima kai tous to eipa kai to lisane to problima :P -
exw provlima me ta sub class
Flash™ replied to marioulizzz's question in Request Server Development Help [Greek]
file ama exeis problima me ta config pigene Gameserver\config\altsettings kai des ama einai etsi ayto edo to simio # Alternative skill learn rules: # - all classes can learn all skills # - skills of another class costs x2 SP # - skills of another race costs x2 SP # - skills of fighters/mages costs x3 SP AltGameSkillLearn = False kai pigene -Gameserver\config\customs # When True, this will allow a person who changes subclasses to keep the skills of the previous class. # When False, this will remove all skills of the previous sub=class, # and only award skills of the current class. # (official = False) KeepSubClassSkills = False analoga kai ti pack server exeis... -
Posa atoma krataei o server...
Flash™ replied to DeathbringerGR's question in Request Server Development Help [Greek]
file ama 8eleis na hostaris ton server sou pare ayto to link einai kali eteria kai ftinei apo tis alles kai den exeis kanena problima http://vrtservers.net/ -
[Help]Buffer & Another Problem
Flash™ replied to Loukas's question in Request Server Development Help [Greek]
file ti server pack exeis ama einai na sou ftia3o ego mia buffer na iremiseis -
pws kanw enchant ta infinity weapon?
Flash™ replied to Karmiris's question in Request Server Development Help [Greek]
file den exei to config pou 8eleis ama 8eleis mporeis na to peraseis esu me java ama 8eleis kane post pali na sou to doso i pm -
help me forgotten scrolls!!
Flash™ replied to tr3lam3n0s's question in Request Server Development Help [Greek]
file mporeis na mas baleis to error i kati na to doume to error -
exw provlima me ta sub class
Flash™ replied to marioulizzz's question in Request Server Development Help [Greek]
ama eides kala poio pano tou exo dosei posa link gia na dei kai eipe to paidi