Jump to content

xRelic

Members
  • Posts

    293
  • Credits

  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Everything posted by xRelic

  1. You use old version of frozen? because i never change that. # You can decide if enable custom period setting feature. Once enabled, # Alt Oly period: MONTH/DAY/WEEK # es. 2weeks-->AltOlyPeriod=WEEK and AltOlyPeriodMultiplier=2 AltOlyUseCustomPeriodSettings= True AltOlyPeriod = DAY AltOlyPeriodMultiplier = 5
  2. So you can ask them for help if it is premium.
  3. You use free version or private?
  4. give us a little more information about what exactly you want to do and what pack are you working on?
  5. Put this file in to your sytem and you will see better names at players or at npc's work 100%. (you can use it and with interface) https://www.mediafire.com/file/vp09pifo7ns83cm/system.rar/file Check.
  6. Allow Healers in TvT/Ctf/DM https://pastebin.com/EyaYWsbG Announce olympiad end season (on enter )https://pastebin.com/PFJR4JQ6 Augment item trade https://pastebin.com/iJEt2Lsn PvP Count TvT/Ctf/DM https://pastebin.com/FEBQv78Y Show HP/CP/ at pvp death https://pastebin.com/SpLCmuyU Show Clan npc crest https://pastebin.com/DqcW0y1Q No enchant near npc l2jfrozen 1132 https://pastebin.com/aSs19TaT Automatic restart l2jfrozen 1132 https://pastebin.com/F3qtVFPx Fix auto learn skill (Freeze bug) https://pastebin.com/CUTWh6UV Fix soulshot l2jfrozen 1132 https://pastebin.com/bQTEPc99 Fix bug clan warehouse lost items l2jfrozen 1132 https://pastebin.com/a6rjUXxL Siege announce system https://pastebin.com/RDznqXiA L2JFrozen Fix Auto-Learn Skill https://pastebin.com/xmTmvghx L2JFrozen Boss event https://pastebin.com/kQjMEjPv Skills bug at restart
  7. thanks for report,server is down for changes. I will upload it soon.
  8. That is the reason where the game is dead.And when we punish you,you cry.
  9. Check this,and my opinion its to add and vitality effect at bonus.
  10. Give me more infos , i can help you...what base you use? you need adapt java/navicat.
  11. It's okay to get custom and a few things, but how does such a pack work without a source?
  12. Yes but you cant work at pride files its files from 2012(java 6 to old.)....you need a lot of money to fix l2jserver gracia final....my opinion work at acis (interlude) l2jfrozen/jserver need a lot of work to fix everything.
  13. So you want a pack just for fun? like to join with your friends? or you want to make pack from zero?
  14. Do not open pride like server with shared files , a lot of bugs... you can run it to take examples. Make new project.
  15. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java (revision 0) +++ java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java (working copy) @@ -0,0 +1,185 @@ +/* + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <[url="http://www.gnu.org/licenses/>."]http://www.gnu.org/licenses/>.[/url] + */ +package net.sf.l2j.gameserver.model.zone.type; + +import java.util.concurrent.Future; + +import net.sf.l2j.gameserver.datatables.SkillTable; +import net.sf.l2j.gameserver.model.L2Skill; +import net.sf.l2j.gameserver.model.actor.L2Character; +import net.sf.l2j.gameserver.model.actor.L2Playable; +import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.model.zone.L2ZoneType; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.util.Rnd; + +/** + * @author Toxico + * @Adaptar Shevenic + */ + +public class L2FlagZone extends L2ZoneType +{ + int _skillId; + private int _chance; + private int _initialDelay; + int _skillLvl; + private int _reuse; + private boolean _enabled; + private String _target; + private Future<?> _task; + public L2FlagZone(int id) + { + super(id); + _skillId = 1323; + _skillLvl = 1; + _chance = 100; + _initialDelay = 0; + _reuse = 30000; + _enabled = true; + _target = "pc"; + } + + @Override + public void setParameter(String name, String value) + { + if(name.equals("skillId")) + { + _skillId = Integer.parseInt(value); + } + else if(name.equals("skillLvl")) + { + _skillLvl = Integer.parseInt(value); + } + else if(name.equals("chance")) + { + _chance = Integer.parseInt(value); + } + else if(name.equals("initialDelay")) + { + _initialDelay = Integer.parseInt(value); + } + else if(name.equals("default_enabled")) + { + _enabled = Boolean.parseBoolean(value); + } + else if(name.equals("target")) + { + _target = String.valueOf(value); + } + else if(name.equals("reuse")) + { + _reuse = Integer.parseInt(value); + } + else + { + super.setParameter(name, value); + } + } + + @Override + protected void onEnter(L2Character character) + { + if (character instanceof L2PcInstance) + { + // Set pvp flag + ((L2PcInstance) character).setPvpFlag(1); + ((L2PcInstance) character).sendMessage("You entered a Pvp Flag zone."); + ((L2PcInstance) character).broadcastUserInfo(); + if((character instanceof L2Playable && _target.equalsIgnoreCase("pc") || character instanceof L2PcInstance && _target.equalsIgnoreCase("pc_only") || character instanceof L2MonsterInstance && _target.equalsIgnoreCase("npc")) && _task == null) + { + _task = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new ApplySkill(/*this*/), _initialDelay, _reuse); + } + } + } + + @Override + protected void onExit(L2Character character) + { + if (character instanceof L2PcInstance) + { + ((L2PcInstance) character).setPvpFlag(0); + ((L2PcInstance) character).sendMessage("You left the Pvp Flag zone."); + ((L2PcInstance) character).broadcastUserInfo(); + } + if(_characterList.isEmpty() && _task != null) + { + _task.cancel(true); + _task = null; + } + } + + public L2Skill getSkill() + { + return SkillTable.getInstance().getInfo(_skillId, _skillLvl); + } + + public String getTargetType() + { + return _target; + } + + public boolean isEnabled() + { + return _enabled; + } + + public int getChance() + { + return _chance; + } + + public void setZoneEnabled(boolean val) + { + _enabled = val; + } + class ApplySkill implements Runnable + { + @Override + public void run() + { + if(isEnabled()) + { + for(L2Character temp : _characterList) + { + if(temp != null && !temp.isDead()) + { + if((temp instanceof L2Playable && getTargetType().equalsIgnoreCase("pc") || temp instanceof L2PcInstance && getTargetType().equalsIgnoreCase("pc_only") || temp instanceof L2MonsterInstance && getTargetType().equalsIgnoreCase("npc")) && Rnd.get(100) < getChance()) + { + L2Skill skill = null; + if((skill=getSkill())==null){ + System.out.println("ATTENTION: error on zone with id "+getId()); + System.out.println("Skill "+_skillId+","+_skillLvl+" not present between skills"); + }else + skill.getEffects(temp, temp); + } + } + } + } + } + } + + @Override + public void onDieInside(L2Character character) + { + + } + + @Override + public void onReviveInside(L2Character character) + { + onEnter(character); + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java (revision 2) +++ java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java (working copy) @@ -38,7 +38,7 @@ private final int _id; protected L2ZoneForm _zone; - protected List<L2Character> _characterList; + public List<L2Character> _characterList; private Map<QuestEventType, List<Quest>> _questEvents; Index: data/xml/zones/ArenaZone.xml =================================================================== --- data/xml/zones/ArenaZone.xml (revision 2) +++ data/xml/zones/ArenaZone.xml (working copy) @@ -11,7 +11,7 @@ <node X="-87429" Y="142708" /> <spawn X="-86979" Y="142402" Z="-3643" /> </zone> - <zone type="ArenaZone" shape="Cuboid" minZ="-3850" maxZ="-350"><!-- giran_pvp_battle --> + <zone type="FlagZone" shape="Cuboid" minZ="-3850" maxZ="-350"><!-- giran_pvp_battle --> <node X="72493" Y="142263" /> <node X="73493" Y="143261" /> <spawn X="73890" Y="142656" Z="-3778" /> This is for Acis pack. I think you can adapt it to jserver easy. Its auto flag and noblesse.
  16. αδερφε μου εισαι κύριος και ωραιος ειπες οπως ειπες τα πραγματα και συμφωνω μαζι σου σε ολα. Απο εκει και περα αυτος ο ανθρωπος που μονο ανθρωπος δεν ειναι η ζωη του ειναι ετσι, η δουλεια του ειναι αυτη να μπαινει να κραζει τους παντες που ολοι τον εχουν παριε χαμπάρι τι ρολο βαραει και οτι ειναι μονο λογια. Τετοια ατομα δεν αξιζει καν να μιλαμε μαζι τους ειναι για λύπηση. Το τελευταιο πραγμα που με νοιαζει στη ζωη μου ειναι αμα κανω καλο σερβερ στο λ2 η οχι.....και εγω τη δουλειτσα μου στα σαιτ την εχω και σε ξενοδοχεια ειμαι τεχνικος απο εκει και περα οτι δεν εκατσα ποτε να ασχοληθω με τη τζαβα τοσο δεν σημαινει επειδη το εκανε ο παραπάνω κύριος οτι ειναι και καποιος.....2 χαρτια εχω και εγω και δε θα μου πει κανενας τη να κανω σιγα μη παρω την αδεια του καθε xdem για να κανω κατι...αλλα δεν ειμαι μονο λογια σαν αυτον που ολο ανοιγει και ποτε δεν καταφερε να κανει κατι...επαιζα και εγω στο σερβερ του το 2015 και ηταν ωραιος ο προηγουμενος + καραντινα κρατησ 5 μερες και ολο το τσατ τον κοροιδευε....απο εκιε και περα ξανα λεω δεν αξιζει να ασχολεισαι το παιδι ειναι πυροβολημένο και ανάξιο της μοίρας του δεν εχει ζωη ειναι μονο ενα client και ενα chat η ζωη του....καταφερε κ εχει παραπανω γνωσεις στο λ2 συγχαρητήρια.....εφτιαξε ενα ψευτικο ακκαονυτ και απάνταγε και ρωταγε τον εαυτο του...Δεν ειναι στα καλα του δεν ειναι να τον παιρνεις στα σοβαρα ακομα και τωρα εγω μειώνω τον εαυτο μου που του μιλαω εχει θεματα ειναι για κληνική....μεγας κλοουν......
×
×
  • Create New...