-
Posts
214 -
Credits
0 -
Joined
-
Last visited
-
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by dymek1984
-
Help Enable/disable Weapon Visible Enchant Effect
dymek1984 posted a question in Request Server Development Help [L2J]
Hello. How to disable / enable visible enchant effect? i want to make option for player that they can disable enchant effect and his weapon will look like +0 if someone could point me where to search about that thanks. -
Help Multisell Problem On H5-Beta
dymek1984 replied to dievas's question in Request Server Development Help [L2J]
<item id="4"> replace with <item> and add ingredient if you want items for free put <ingredients id="57" count="0"> and ingredient must be in before production -
Community Board for H5 l2jserver stable (soon for freya) Information: Top pvp.pk,fame (in my video you can see also deaths and pvp assists that is only for my server) (you can click in player name [ if is online ] to see player info ) Top clan ( you can click in clan name to see clan info) Player info ( all information about player pvp,pk,hp,mp,cp, items that player have equiped, dressme info + copy template, stats information, more in ss and video) Clan info ( all information about clan, all online members names info + possible to click in name to see player info ) Teleporter Gm Shop Dressme ( fixed dressme, worked with full body armor, copy target template, reset every part of armor or weapon ) Buffer ( all buffs + sheme, sheme save currently buffs that player have, heal, cancel, auto buff, warrior, mage) Options ( party, trade, pm, buff, xp, ss effects, possible to remove/add other options) Screen Shots: CB Main page : Top players : Top Clan : Player info : Clan Info : Teleporter : Gm Shop : Dressme : Buffer : Options : Video: https://www.youtube.com/watch?v=A7ztCnrCohE&feature=youtu.be My Skype: bubudemolka Price: 40 Euro (Paypal) edit: For a customer wish i can change the look of the html for an additional surcharge
-
setTeam(Team.BLUE); setTeam(Team.RED); and setTeam(Team.NONE);
-
else if((activeChar.getPvpKills() <= 25)) { activeChar.sendMessage("Need 25 PVPs to use this Chat."); return; } in scripts/handlers/chathandlers/chatshout.java or something like that
-
Thanks for help. Trusted and skilled.
-
Help I Need Help With My L2J Server
dymek1984 replied to jgkous's question in Request Server Development Help [L2J]
Why u can't open? Any errors? -
WTS Lineage 2 Java Project L2Jgabe [Freya]
dymek1984 replied to HyperBlown's topic in Marketplace [L2Packs & Files]
all this features are hmm easy to add, but what about balance? skills? what you do to balance classes? -
Help Enchant Chance
dymek1984 replied to alextoti13's question in Request Server Development Help [L2J]
If you want give message to player when put item into enchant widow look in RequestExTryToPutEnchantTargetItem -
Help Anit Afk In Zone Multifunction
dymek1984 replied to dymek1984's question in Request Server Development Help [L2J]
The author of this code is /** * * @author Phear3d */ i only replaced tvt players with player in zone. So you say that code is not good idea to put in live server even if i remove errors? -
Help Anit Afk In Zone Multifunction
dymek1984 posted a question in Request Server Development Help [L2J]
I wanted to buy anti afk but no one wanted it to do, so i tried by myself and i have it working good with errors. if i am to long afk in zone server kick me. here it is: package custom.AntiAfk; import java.util.ArrayList; import java.util.logging.Logger; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.instancemanager.ZoneManager; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.zone.L2ZoneType; /** * * @author Phear3d */ public class AntiAfkTvt { private final int CheckDelay = 60000; private static Logger _log = Logger.getLogger(AntiAfkTvt.class.getName()); private static ArrayList<String> PlayersInZone = new ArrayList<String>(); private static String[] Splitter; private static int xx,yy,zz,SameLoc; private static L2PcInstance _player; private AntiAfkTvt() { _log.info("AntiAfkTvt: Auto-Kick AFK in TVT System initiated."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AntiAfk(), 60000, CheckDelay); } private class AntiAfk implements Runnable { @SuppressWarnings("deprecation") public void run() { for (L2ZoneType zone : ZoneManager.getInstance().getAllZones()) if (zone.getId() == 70006) for (L2Character character : zone.getCharactersInside().values()) { if (character instanceof L2PcInstance && (!((L2PcInstance) character).getClient().isDetached())) { _player = (L2PcInstance)character; AddSpawnInfo(_player.getName(),_player.getX(),_player.getY(),_player.getZ()); } } } } private static void AddSpawnInfo(String name, int _x, int _y, int _z) { if(!CheckSpawnInfo(name)) { String temp = name + ":" + Integer.toString(_x) + ":" + Integer.toString(_y) + ":" + Integer.toString(_z) + ":1"; PlayersInZone.add(temp); } else { Object[] elements = PlayersInZone.toArray(); for(int i=0; i < elements.length ; i++) { Splitter = ((String) elements[i]).split(":"); String nameVal = Splitter[0]; if (name.equals(nameVal)) { GetSpawnInfo(name); if (_x == xx && _y == yy && _z == zz && _player.isAttackingNow() == false && _player.isCastingNow() == false && _player.isOnline() == true) { ++SameLoc; if (SameLoc >= 2)//Kick after 4 same x/y/z, location checks { //kick here _player.logout(); return; } else { PlayersInZone.remove(i); String temp = name + ":" + Integer.toString(_x) + ":" + Integer.toString(_y) + ":" + Integer.toString(_z) + ":" + SameLoc; PlayersInZone.add(temp); return; } } PlayersInZone.remove(i); String temp = name + ":" + Integer.toString(_x) + ":" + Integer.toString(_y) + ":" + Integer.toString(_z) + ":1"; PlayersInZone.add(temp); } } } } private static boolean CheckSpawnInfo(String name) { Object[] elements = PlayersInZone.toArray(); for(int i=0; i < elements.length ; i++) { Splitter = ((String) elements[i]).split(":"); String nameVal = Splitter[0]; if (name.equals(nameVal)) { return true; } } return false; } private static void GetSpawnInfo(String name) { Object[] elements = PlayersInZone.toArray(); for(int i=0; i < elements.length ; i++) { Splitter = ((String) elements[i]).split(":"); String nameVal = Splitter[0]; if (name.equals(nameVal)) { xx = Integer.parseInt(Splitter[1]); yy = Integer.parseInt(Splitter[2]); zz = Integer.parseInt(Splitter[3]); SameLoc = Integer.parseInt(Splitter[4]); } } } public static AntiAfkTvt getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AntiAfkTvt _instance = new AntiAfkTvt(); } public static void main(String[] args) { AntiAfkTvt.getInstance(); } } and error in gs: Exception in thread "GeneralSTPool-8" java.lang.ClassCastException: com.l2jserve r.gameserver.model.actor.instance.L2MonsterInstance cannot be cast to com.l2jser ver.gameserver.model.actor.instance.L2PcInstance at custom.AntiAfk.AntiAfkTvt$AntiAfk.run(AntiAfkTvt.java:48) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread PoolManager.java:87) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) -
WTB Arena For Freya And Anty Afk On Multifunctionzone.
dymek1984 replied to dymek1984's topic in Marketplace [L2Packs & Files]
i make anti afk by mayself so i deleted in first post. -
WTB Arena For Freya And Anty Afk On Multifunctionzone.
dymek1984 replied to dymek1984's topic in Marketplace [L2Packs & Files]
Sorry but i cannot find it. maybe I could do it by mayself, but i really have no time atm. Its why i will pay. -
i do like you say, but when enter in oly and "AltOlyEnchantLimit = 0" hp reduced only around 400 hp it should be more. ill try another way because i had error at "_armorHPBonuses" so i replaced by "_armorHPBonus" edit: now hpbonus not work at all, i wondering why this not work how it should work in freya. i do nothing with hpbonus in my pack before.
-
Hello. i set # Enchant limit for items during Olympiad battles. Disabled = -1. # Default: -1 AltOlyEnchantLimit = 6 when player enter to olympiad arena all stats reduce but hp not, (HP should be reduced to all items +6 from +16 that is max in my server) i searcjing where is problem, but in FuncEnchant.java /* * 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 <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.skills.funcs; import com.l2jserver.Config; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.skills.Env; import com.l2jserver.gameserver.skills.Stats; import com.l2jserver.gameserver.templates.item.L2Item; import com.l2jserver.gameserver.templates.item.L2WeaponType; public class FuncEnchant extends Func { public FuncEnchant(Stats pStat, int pOrder, Object owner, Lambda lambda) { super(pStat, pOrder, owner); } @Override public void calc(Env env) { if (cond != null && !cond.test(env)) return; L2ItemInstance item = (L2ItemInstance) funcOwner; int enchant = item.getEnchantLevel(); if (enchant <= 0) return; int overenchant = 0; if (enchant > 3) { overenchant = enchant - 3; enchant = 3; } if (env.player != null && env.player instanceof L2PcInstance) { L2PcInstance player = (L2PcInstance)env.player; if (player.isInOlympiadMode() && Config.ALT_OLY_ENCHANT_LIMIT >= 0 && (enchant + overenchant) > Config.ALT_OLY_ENCHANT_LIMIT) { if (Config.ALT_OLY_ENCHANT_LIMIT > 3) { overenchant = Config.ALT_OLY_ENCHANT_LIMIT - 3; } else { overenchant = 0; enchant = Config.ALT_OLY_ENCHANT_LIMIT; } } } if (stat == Stats.MAGIC_DEFENCE || stat == Stats.POWER_DEFENCE) { env.value += enchant + 3 * overenchant; return; } if (stat == Stats.MAGIC_ATTACK) { switch (item.getItem().getItemGradeSPlus()) { case L2Item.CRYSTAL_S: env.value += 4 * enchant + 8 * overenchant; break; case L2Item.CRYSTAL_A: env.value += 3 * enchant + 6 * overenchant; break; case L2Item.CRYSTAL_B: env.value += 3 * enchant + 6 * overenchant; break; case L2Item.CRYSTAL_C: env.value += 3 * enchant + 6 * overenchant; break; case L2Item.CRYSTAL_D: env.value += 2 * enchant + 4 * overenchant; break; } return; } if (item.isWeapon()) { L2WeaponType type = (L2WeaponType) item.getItemType(); switch (item.getItem().getItemGradeSPlus()) { case L2Item.CRYSTAL_S: switch(type) { case BOW: case CROSSBOW: env.value += 10 * enchant + 20 * overenchant; break; default: env.value += 5 * enchant + 10 * overenchant; break; } break; case L2Item.CRYSTAL_A: switch(type) { case BOW: case CROSSBOW: env.value += 8 * enchant + 16 * overenchant; break; default: env.value += 4 * enchant + 8 * overenchant; break; } break; case L2Item.CRYSTAL_B: switch(type) { case BOW: case CROSSBOW: env.value += 6 * enchant + 12 * overenchant; break; default: env.value += 3 * enchant + 6 * overenchant; break; } break; case L2Item.CRYSTAL_C: switch(type) { case BOW: case CROSSBOW: env.value += 6 * enchant + 12 * overenchant; break; default: env.value += 3 * enchant + 6 * overenchant; break; } break; case L2Item.CRYSTAL_D: case L2Item.CRYSTAL_NONE: switch(type) { case BOW: case CROSSBOW: { env.value += 4 * enchant + 8 * overenchant; break; } default: env.value += 2 * enchant + 4 * overenchant; break; } break; } } } } and FuncEnchantHP.java /* * 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 <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.skills.funcs; import com.l2jserver.gameserver.datatables.EnchantHPBonusData; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.skills.Env; import com.l2jserver.gameserver.skills.Stats; /** * * @author Yamaneko */ public class FuncEnchantHp extends Func { public FuncEnchantHp(Stats pStat, int pOrder, Object owner, Lambda lambda) { super(pStat, pOrder, owner); } @Override public void calc(Env env) { if (cond != null && !cond.test(env)) return; final L2ItemInstance item = (L2ItemInstance) funcOwner; if (item.getEnchantLevel() > 0) env.value += EnchantHPBonusData.getInstance().getHPBonus(item); } } all looks fine. maybe there is some other config for this? or i have to look somewer else. pls help me
-
WTB Arena For Freya And Anty Afk On Multifunctionzone.
dymek1984 replied to dymek1984's topic in Marketplace [L2Packs & Files]
i have some incomplete files for arena, but with some NPE when open door. and i want also monthly ranking. edit. if this is so easy why noone want make it for me? ofc i will pay for it. -
Help Clan And Ally Crest In Npc Html
dymek1984 replied to dymek1984's question in Request Server Development Help [L2J]
I mean in html, not crests for NPC. -
Help Clan And Ally Crest In Npc Html
dymek1984 posted a question in Request Server Development Help [L2J]
It is possible to add clan and ally crest to npc html, i would like to add these crests to pvp/pk npc.