Jump to content

L2VANPER

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

L2VANPER last won the day on July 12

L2VANPER had the most liked content!

1 Follower

About L2VANPER

Contact Methods

  • Website URL
    http://l2jbrasil.com

Profile Information

  • Gender
    Male
  • Country
    Brazil

Recent Profile Visitors

1,490 profile views

L2VANPER's Achievements

Rookie

Rookie (2/14)

  • Reacting Well Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Dedicated Rare

Recent Badges

5

Reputation

  1. seus comando nada abre eu tentei refazer-lo mais nao adianto nao abre html nem funciona no st DmgSim package DamageSimulator; import java.util.ArrayList; import java.util.List; import net.sf.l2j.commons.lang.StringUtil; import net.sf.l2j.gameserver.communitybbs.manager.BaseBBSManager; import net.sf.l2j.gameserver.data.cache.HtmCache; import net.sf.l2j.gameserver.enums.items.WeaponType; import net.sf.l2j.gameserver.enums.skills.ShieldDefense; import net.sf.l2j.gameserver.model.actor.Player; import net.sf.l2j.gameserver.skills.Formulas; import net.sf.l2j.gameserver.skills.L2Skill; /** * @author BAN L2JDEV * */ public class DmgSim { private final List<L2Skill> _skills = new ArrayList<>(); private int _skillID = 0; private Player _target = null; private String _attackType = ""; protected static final String CB_PATH = "config/Dev/Html/"; public DmgSim(){ } public void showSimPage(Player player){ getPlayerskills(player); final StringBuilder sb = new StringBuilder(); int i = 0; StringUtil.append(sb, "<font color=b09979>Available Skills</font> <br><center><table width=260>"); for(L2Skill skill : _skills){ final boolean isNextLine = i % 6 == 0; if (isNextLine) sb.append("<tr>"); StringUtil.append(sb,displayIcons(skill)); if (isNextLine) sb.append("</tr>"); i++; } StringUtil.append(sb, "</center></table><br>"); StringUtil.append(sb, selectedSkill(_skillID)); StringUtil.append(sb, "<table width=170><tr><td><center><font color=b09979>Target</font></center></td><td><font color=b09979>Attack Type</font></td></tr>" + "<tr><td><edit var=target width=80 height=10></td><td><combobox width=70 height=10 var=atktype list=AUTOHIT;MAGICAL;PHYSICAL</td></tr></table><br><br>"); StringUtil.append(sb, damageDisplay(player,_target)); StringUtil.append(sb, "<button value=\"Simulate\" action=\"bypass -h _menuDoSim ", _skillID, " $atktype $target\" width=55 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); String html = HtmCache.getInstance().getHtm(CB_PATH + "admin/simulation.htm"); html = html.replaceAll("%simpage%", sb.toString()); BaseBBSManager.separateAndSend(html, player); } private L2Skill idToSkillConv(int skillID){ for(L2Skill skill : _skills){ if(skill.getId() == skillID){ return skill; } } return null; } private static String calcDamage(Player activePlayer,L2Skill skill,Player target,String atkType){ String dmgMsg = ""; int damage = 0; boolean pCrit = Formulas.calcCrit(activePlayer.getStatus().getCriticalHit(target, null)); ShieldDefense shld = Formulas.calcShldUse(activePlayer, target, skill, true); boolean mCrit = Formulas.calcCrit(activePlayer.getStatus().getMCriticalHit(target, skill)); final WeaponType weapon = activePlayer.getAttackType(); switch(atkType){ case "AUTOHIT": damage = getAutohitDmg(activePlayer,target,shld,pCrit, weapon); if(pCrit) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>Normal Hit</font><br1> <font color=LEVEL> Critical</font> <font color=26BEF5>" + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else if(shld != null) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>Normal Hit</font><br1> <font color=D02B2B> Shield Block</font> <font color=26BEF5>" + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>Normal Hit</font><br1> <font color=26BEF5> " + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; break; case "MAGICAL": if(skill == null) dmgMsg = "<font color=b09979>You need to select a skill.</font><br>"; else if(skill.isMagic()) { damage = getMagicalDmg(activePlayer,target,skill,shld,mCrit,weapon); if(mCrit) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=LEVEL> Critical</font> <font color=26BEF5>" + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else if(shld != null) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=D02B2B> Shield Block</font> <font color=26BEF5>" + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=26BEF5>" + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; }else dmgMsg = "<font color=b09979>Wrong type of skill.</font><br>"; break; case "PHYSICAL": if(skill == null) dmgMsg = "<font color=b09979>You need to select a skill.</font><br>"; else if(!skill.isMagic()) { damage = getPhysicalDmg(activePlayer,target,skill,shld,pCrit,weapon); if(pCrit) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=LEVEL> Critical</font> <font color=26BEF5> " + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else if(shld != null) dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=D02B2B> Shield Block</font> <font color=26BEF5> " + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; else dmgMsg = "<font color=b09979>You used</font> <font color=LEVEL>" + skill.getName() + "</font><br1><font color=26BEF5> " + damage + "</font> <font color=b09979>damage to</font> <font color=26BEF5>" + target.getName() + "</font><br>"; }else dmgMsg = "<font color=b09979>Wrong type of skill.</font><br>"; break; } return dmgMsg; } private void getPlayerskills(Player player){ for(L2Skill skill : player.getSkills().values()){ if(skillCondition(skill)) _skills.add(skill); } } /** * Calculate simple hits depending on worn weapon * Currently checking naked hands, duals , dual fists * @param attacker * @param target * @param shld * @param crit * @param wtype * @return damage */ private static int getAutohitDmg(Player attacker,Player target,ShieldDefense shld,boolean crit, WeaponType wtype){ int damage = 0; switch(wtype){ case DUAL: case DUALFIST: damage = (int) Formulas.calcPhysicalAttackDamage(attacker, target, shld, crit, true) / 2; break; case FIST: damage = (int) Formulas.calcPhysicalAttackDamage(attacker, target, shld, crit, true) / 2; break; default: damage = (int) Formulas.calcPhysicalAttackDamage(attacker, target, shld, crit, true); break; } return damage; } private static int getMagicalDmg(Player attacker,Player target,L2Skill skill,ShieldDefense shield,boolean crit, WeaponType wtype){ int damage = 0; if(wtype == WeaponType.FIST) damage = (int) Formulas.calcPhysicalSkillDamage(attacker, target, skill, shield, crit, true); else damage = (int) Formulas.calcPhysicalSkillDamage(attacker, target, skill, shield, crit, true); return damage; } /** * Todo Add condition checks for all physical skill usages ex. dagger for blow type skills etc..etc.. * @param attacker * @param target * @param skill * @param shield * @param crit * @param wtype * @return */ private static int getPhysicalDmg(Player attacker,Player target,L2Skill skill,ShieldDefense shield,boolean crit, WeaponType wtype){ int damage = 0; if(wtype == WeaponType.FIST) damage = 0; else damage = (int) Formulas.calcPhysicalSkillDamage(attacker, target, skill, shield, crit, true); return damage; } public String displayIcons(L2Skill skill){ String tempHolder = ""; if(skill.getId() < 10) tempHolder = "<td><button action=\"bypass -h _menuSelectSkill "+ skill.getId()+ "\" width=32 height=32 back=\"icon.skill000"+skill.getId()+"\" fore=\"icon.skill000"+skill.getId()+"\"></td>"; else if(skill.getId() < 100) tempHolder = "<td><button action=\"bypass -h _menuSelectSkill "+ skill.getId()+ "\" width=32 height=32 back=\"icon.skill00"+skill.getId()+"\" fore=\"icon.skill00"+skill.getId()+"\"></td>"; else if(skill.getId() < 1000) tempHolder = "<td><button action=\"bypass -h _menuSelectSkill "+ skill.getId()+ "\" width=32 height=32 back=\"icon.skill0"+skill.getId()+"\" fore=\"icon.skill0"+skill.getId()+"\"></td>"; else tempHolder = "<td><button action=\"bypass -h _menuSelectSkill "+ skill.getId()+ "\" width=32 height=32 back=\"icon.skill"+skill.getId()+"\" fore=\"icon.skill"+skill.getId()+"\"></td>"; return tempHolder; } /** * Check for the selected skill to display, 0 for the default display msg which is word empty * @param skillid to make the checks * @return the message to display */ public String selectedSkill(int skillid){ String result = ""; if(skillid == 0) result = "<font color=b09979>Selected Skill</font> [Empty]<br1>"; else result = "<font color=b09979>Selected Skill</font> [<font color=LEVEL>"+idToSkillConv(skillid).getName()+"</font>]<br1>"; return result; } /** * Simple checks for target * @param attacker * @param target * @return the damage to display if the field is not empty */ public String damageDisplay(Player attacker,Player target){ String result = ""; if(target != null && target instanceof Player){ result = calcDamage(attacker,idToSkillConv(_skillID),target,_attackType); }else result = "<br1><font color=b09979>Target field is Empty.</font><br>"; return result; } /** * Which skills to allow for display * @param skill to make checks on * @return true or false */ public boolean skillCondition(L2Skill skill){ boolean tempHolder = false; switch(skill.getSkillType()){ case CHARGEDAM: case PDAM: case MDAM: case BLOW: case DRAIN: case DRAIN_SOUL: tempHolder = true; break; case BLEED: case MANADAM: case POISON: case PASSIVE: case DEBUFF: case BUFF: case WARRIOR_BANE: case MAGE_BANE: case CANCEL: case SUMMON: case EXTRACTABLE_FISH: case EXTRACTABLE: case CREATE_ITEM: case DWARVEN_CRAFT: case COMMON_CRAFT: case GIVE_SP: case MANAHEAL_PERCENT: case HEAL_PERCENT: case MANARECHARGE: case HEAL_STATIC: case BALANCE_LIFE: case MPHOT: case HOT: case COMBATPOINTHEAL: case MANAHEAL: case HEAL: case WEAKNESS: case PARALYZE: case MUTE: case SLEEP: case FEAR: case CONFUSION: case ROOT: case STUN: tempHolder = false; break; } return tempHolder; } public void setTarget(Player target){ _target = target; } public void setAttackType(String atktyp){ _attackType = atktyp; } public void setskillIDD(int skillid){ _skillID = skillid; } public int getskillID(){ return _skillID; } public Player getTarget(){ return _target; } } fiz commando admin handler / voiced handler byass nada funciona nao mostra erro em gs
  2. deixa apenas a foto pra nos poder visualizar e deixar com gosto de quero mais...
  3. Yes! algumas coisas muda o nome mesmo isso e normal. Abre o arquivo que faz o use de alguma skill que voce encontra a referencia pra trabalhar!
  4. https://github.com/neetinho/JavaMods/blob/main/GBrespawn
  5. Index: aCis_datapack/data/xml/zones/ArenaZone.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/aCis_datapack/data/xml/zones/ArenaZone.xml b/aCis_datapack/data/xml/zones/ArenaZone.xml --- a/aCis_datapack/data/xml/zones/ArenaZone.xml (revision fe710a9694c725982e80c3db5037128ed3f0ca02) +++ b/aCis_datapack/data/xml/zones/ArenaZone.xml (revision c59220ae01b62d03a4f1394ba1ce52853868bbab) @@ -6,18 +6,21 @@ <node x="12937" y="183019"/> <node x="12943" y="184010"/> <node x="11941" y="184010"/> + <spawn type="NORMAL" x="12661" y="181687" z="-3560"/> </zone> <zone shape="NPoly" minZ="-3752" maxZ="-3352"><!-- gludin_pvp --> <node x="-88411" y="141732"/> <node x="-87429" y="141733"/> <node x="-87429" y="142708"/> <node x="-88408" y="142708"/> + <spawn type="NORMAL" x="-86979" y="142402" z="-3643"/> </zone> <zone shape="NPoly" minZ="-3850" maxZ="-3350"><!-- giran_pvp_battle --> <node x="72493" y="142263"/> <node x="73493" y="142264"/> <node x="73493" y="143261"/> <node x="72495" y="143258"/> + <spawn type="NORMAL" x="73890" y="142656" z="-3778"/> </zone> <zone shape="NPoly" minZ="-3498" maxZ="-3298"><!-- colosseum_battle --> <node x="150948" y="46483" /> @@ -36,5 +39,6 @@ <node x="151220" y="47493" /> <node x="151216" y="47259" /> <node x="150947" y="46960" /> + <spawn type="NORMAL" x="147451" y="46728" z="-3298"/> </zone> </list> \ No newline at end of file Index: aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/MapRegionData.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/MapRegionData.java b/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/MapRegionData.java --- a/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/MapRegionData.java (revision fe710a9694c725982e80c3db5037128ed3f0ca02) +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/MapRegionData.java (revision 1ff70bc80187be81e9301b350b234e26f781a3d9) @@ -22,6 +22,8 @@ import net.sf.l2j.gameserver.model.entity.Castle; import net.sf.l2j.gameserver.model.entity.Siege; import net.sf.l2j.gameserver.model.location.Location; +import net.sf.l2j.gameserver.model.zone.ZoneForm; +import net.sf.l2j.gameserver.model.zone.type.ArenaZone; import net.sf.l2j.gameserver.model.zone.type.TownZone; import org.w3c.dom.Document; @@ -46,7 +48,7 @@ private static final int REGIONS_Y = 16; private static final Location MDT_LOCATION = new Location(12661, 181687, -3560); - + private final int[][] _regions = new int[REGIONS_X][REGIONS_Y]; protected MapRegionData() @@ -228,7 +230,15 @@ // The player is in MDT, move him out. if (player.isInsideZone(ZoneId.MONSTER_TRACK)) return MDT_LOCATION; - + + // The player is in Arena zone type, move him out. + if (player.isInsideZone(ZoneId.ARENA)) { + ArenaZone arenaZone = ZoneManager.getInstance().getZone(player, ArenaZone.class); + if(arenaZone != null && !arenaZone.getSpawns(SpawnType.NORMAL).isEmpty()){ + return arenaZone.getRndSpawn(SpawnType.NORMAL); + } + } + if (teleportType != TeleportType.TOWN && player.getClan() != null) { if (teleportType == TeleportType.CLAN_HALL) Index: aCis_gameserver/java/net/sf/l2j/gameserver/enums/ZoneId.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/enums/ZoneId.java b/aCis_gameserver/java/net/sf/l2j/gameserver/enums/ZoneId.java --- a/aCis_gameserver/java/net/sf/l2j/gameserver/enums/ZoneId.java (revision fe710a9694c725982e80c3db5037128ed3f0ca02) +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/enums/ZoneId.java (revision 1ff70bc80187be81e9301b350b234e26f781a3d9) @@ -21,7 +21,8 @@ CAST_ON_ARTIFACT(16), NO_RESTART(17), SCRIPT(18), - BOSS(19); + BOSS(19), + ARENA(20); private final int _id; Index: aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/ArenaZone.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/ArenaZone.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/ArenaZone.java --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/ArenaZone.java (revision fe710a9694c725982e80c3db5037128ed3f0ca02) +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/ArenaZone.java (revision 1ff70bc80187be81e9301b350b234e26f781a3d9) @@ -3,13 +3,14 @@ import net.sf.l2j.gameserver.enums.ZoneId; import net.sf.l2j.gameserver.model.actor.Creature; import net.sf.l2j.gameserver.model.actor.Player; +import net.sf.l2j.gameserver.model.zone.type.subtype.SpawnZoneType; import net.sf.l2j.gameserver.model.zone.type.subtype.ZoneType; import net.sf.l2j.gameserver.network.SystemMessageId; /** * A zone extending {@link ZoneType}, where summoning is forbidden. The place is considered a pvp zone (no flag, no karma). It is used for arenas. */ -public class ArenaZone extends ZoneType +public class ArenaZone extends SpawnZoneType { public ArenaZone(int id) { @@ -24,6 +25,7 @@ character.setInsideZone(ZoneId.PVP, true); character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true); + character.setInsideZone(ZoneId.ARENA, true); } @Override @@ -31,7 +33,8 @@ { character.setInsideZone(ZoneId.PVP, false); character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, false); - + character.setInsideZone(ZoneId.ARENA, false); + if (character instanceof Player) ((Player) character).sendPacket(SystemMessageId.LEFT_COMBAT_ZONE); }
  6. https://www.l2jbrasil.com/forums/topic/141730-grand-bosses-respawn-por-config-acis/
  7. PT-BR EN https://pastebin.com/yfBeK9r0
  8. Dungeon Event Instancia ItemsHandler ClanItem, NobleItem, HeroItem7Days, HeroItem30Days, HeroItemEternal, Add Ant-Zerg BossZone Max Clan/Ally Member Permanence Zone Add Send Donate Admin Command Reward Player/name Online and Offline Player. Add Premium/VIP and XP | SP | DROP | DROP-ADENA | Add IconTable data/xml/icons.xml Block Class Use Equipe Bow Check HP Title Type Monster
  9. UnrealEd: Open All Tex https://mega.nz/file/IcBknApK#FAxCHQnhczyet3vZSV1uVCE8mWh01GkuQxwqv9ow29A Esse destrava qual quer Arquivo .dat .u .utx .ukx entre outros... https://mega.nz/file/5dxSySgC#zelTzBN3nr40BCW3sDLJDfjaLC_JviGQNtQF20CsGY4
  10. and i found them lost here This is what I wanted, I had already removed Code and another packageThis is what I wanted, I had already removed Code and another package thanks for helping I leave it here as I managed to solve
  11. it's possible ? my idea would be create an event With all that I have already managed to remove the player without a clan from the Zone Inside My Custom Zone more how could i add a check, at teleport time And inside the Zone thanks for nothing!
  12. http://l2jdev.online/index.php?/topic/93-l2jdev-premium/&tab=comments#comment-291 Connect to l2jdev interlude Retail Project
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock