-
Posts
107 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Chakl22
-
Code Custom Pvp Zone ( Freya - H5 ) Up-Dated
Chakl22 replied to `NeverMore's topic in Server Shares & Files [L2J]
First of all he posted a Code so he should put a Warning or something if the code don't work (in this case the Update one) and i m not any good at java but i know how apply a patch and this sin't a patch is creating a new java file. The Update Patch have something wrong cuz i follow all the steps and 1 code isn't giving errors and the Update yes so there is something wrong. -
Code Custom Pvp Zone ( Freya - H5 ) Up-Dated
Chakl22 replied to `NeverMore's topic in Server Shares & Files [L2J]
Well here a -beep-ing comparition of the damn codes: So the old code don't give errors but don't will work, the update Code give errors. We can see the diferences between those codes so someone can tell the damn correct way for get the update Code working? Since Nevermore don't give a shit helping me and i send a Private message, he should change the nick to NeverCareaShit. -
Code Custom Pvp Zone ( Freya - H5 ) Up-Dated
Chakl22 replied to `NeverMore's topic in Server Shares & Files [L2J]
I see but i wrote the new file correct L2CustomPvP.java without the * But when i paste the code inside the * appears automtic in the name. oO When i paste the old code: 3)Create a new zone type with name L2CustomPvP.java and inside put this code : (+++ java/com/l2jserver/gameserver/model/zone/type/L2CustomPvP.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.model.zone.type; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.zone.L2SpawnZone; import com.l2jserver.util.Rnd; /** * An Custom PvP Zone * * @author NeverMore */ public class L2CustomPvP extends L2SpawnZone { //Ramdom Locations configs private static int[] _x = {11551, 10999, 10401}; private static int[] _y = {-24264, -23576, -24030}; private static int[] _z = {-3644, -3651, -3660 }; public L2CustomPvP(int id) { super(5555); } @Override protected void onEnter(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, true); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true); if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendMessage("You enter a PvP Area"); ((L2PcInstance) character).setPvpFlag(1); } } @Override protected void onExit(L2Character character) { character.setInsideZone(L2Character.ZONE_PVP, false); character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false); if (character instanceof L2PcInstance) { ((L2PcInstance) character).stopNoblesseBlessing(null); ((L2PcInstance) character).setPvpFlag(0); ((L2PcInstance) character).sendMessage("You exit from a PvP Area"); } } static class BackToPvp implements Runnable { private L2Character _activeChar; BackToPvp(L2Character character) { _activeChar = character; } @Override public void run() { int r = Rnd.get(3); _activeChar.teleToLocation(_x[r] , _y[r], _z[r]); } } @Override public void onDieInside(L2Character character) { if (character instanceof L2PcInstance) { } } @Override public void onReviveInside(L2Character character) { ThreadPoolManager.getInstance().scheduleGeneral(new BackToPvp(character), 500); ((L2PcInstance) character).isNoblesseBlessed(); } } I don't get the errors i don¡t know what happend here. But since Nevermore said this will not work i need to get working the Update One. -
Code Custom Pvp Zone ( Freya - H5 ) Up-Dated
Chakl22 replied to `NeverMore's topic in Server Shares & Files [L2J]
I get errors with your Update Code fo H5: http://i.imgur.com/2yE3X.jpg[/img] Some help please? ty. -
it's auto?
-
Very usefull ty.
-
[Collection][Share]AIO Npc's for High Five (H5)
Chakl22 replied to `NeverMore's topic in Server Development Discussion [L2J]
Thx you. -
Disable weapon for classes v.2 (aCis)
Chakl22 replied to vl4d's topic in Server Shares & Files [L2J]
What about Bows? Ty. -
Help Make Guards detect Players with "Silent Move" Effect.
Chakl22 replied to Chakl22's question in Request Server Development Help [L2J]
BUMP -
Hi i just find a code for Make a PK Guard Detect daggers Even if them go in "Silent Move" (so high lvl daggers will can't go there Pking and going Silent Move to evade Pk Guards) The code i find is this: L2AttackableAI // Check if the target isn't dead, is in the Aggro range and is at the same height if (target.isAlikeDead() || !me.isInsideRadius(target, me.getAggroRange(), false, false) || Math.abs(_actor.getZ() - target.getZ()) > 300) return false; if (_selfAnalysis.cannotMoveOnLand && !target.isInsideZone(L2Character.ZONE_WATER)) return false; // Check if the target is a L2PlayableInstance if (target instanceof L2PlayableInstance) { // Check if the AI isn't a Raid Boss and the target isn't in silent move mode -- if (!(me instanceof L2RaidBossInstance) && ((L2PlayableInstance) target).isSilentMoving()) + if (!(meinstanceof L2RaidBossInstance) && !(me instanceof L2GuardInstance) && ((L2PlayableInstance)target).isSilentMoving()) return false; } But in High Five this looks a bit diferent: { // Check if the AI isn't a Raid Boss, can See Silent Moving players and the target isn't in silent move mode [color=green]if (!(me.isRaid()) && !(me.canSeeThroughSilentMove()) && ((L2Playable) target).isSilentMoving())[/color] return false; } So if someone can tell me the correct code for make this work in HI5 would be great. Ty.
-
I make fresh install downloading all from SVN, etc.. and iget this error when try to start GS: Someone help please. FIXED
-
Java GK with preview players Count in X Zones.
Chakl22 replied to Chakl22's question in Request Server Development Help [L2J]
ok, close thread. -
Java GK with preview players Count in X Zones.
Chakl22 posted a question in Request Server Development Help [L2J]
I find this code but it's designed for archid pack i would like to know how apply to L2j, i know how apply a patch manually, change the imports, etc.. but on this package say "custom.SpecialGatekeeper" l2j don't have the mentioned package where i should create the .java? package custom.SpecialGatekeeper; import com.l2jarchid.Config; import com.l2jarchid.gameserver.instancemanager.ZoneManager; import com.l2jarchid.gameserver.model.actor.L2Character; import com.l2jarchid.gameserver.model.actor.L2Npc; import com.l2jarchid.gameserver.model.actor.L2Player; import com.l2jarchid.gameserver.model.quest.Quest; import com.l2jarchid.gameserver.model.quest.QuestState; import com.l2jarchid.gameserver.model.zone.L2ZoneType; /** * @author Matim * <br>Special Gatekeeper NPC. * <br>Show current players count from zone. * <br>This code may be easily edited. * <br>By default it has few arenas teleports. * * TODO price for teleports, config. */ public class SpecialGatekeeper extends Quest { protected static L2Player player; private final static String qn = "SpecialGatekeeper"; private final static int NPC = Config.SPECIAL_GK_NPC_ID; //private final static int teleportPrice = 1000; //private final static int priceItemId = 57; public SpecialGatekeeper(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(NPC); addStartNpc(NPC); addTalkId(NPC); } @Override public String onAdvEvent(String event, L2Npc npc, L2Player player) { String htmltext = ""; if(event.equalsIgnoreCase("1")) player.teleToLocation(73890, 142656, -3778); else if (event.equalsIgnoreCase("2")) player.teleToLocation(-86979, 142402, -3643); else if (event.equalsIgnoreCase("3")) player.teleToLocation(147451, 46728, -3410); else if (event.equalsIgnoreCase("4")) player.teleToLocation(12312, 182752, -3558); else htmltext = "Error, check whole GK code!"; return htmltext; } @Override public String onFirstTalk(L2Npc npc, L2Player player) { String htmltext = ""; QuestState qs = player.getQuestState(qn); if (qs == null) qs = newQuestState(player); htmltext = "<html><title>Special Gatekeeper</title><head><body><center>" + "<br><img src=l2ui.bbs_lineage2 height=16 width=80>" + "<font color=AAAAAA>Special Gatekeeper</font><br>" + "Teleport costs: <font color=\"LEVEL\">" + teleportPrice + "</font> adena" + "<img src=L2UI_CH3.herotower_deco width=256 height=32>" + "Players Inside: <font color=\"LEVEL\">" + getPlayerInsideCount(11600) + "</font>" + "<button value=\"Aden\" action=\"bypass -h Quest SpecialGatekeeper 1\" back=\"L2UI_ch3.bigbutton_over\" fore=\"L2UI_ch3.bigbutton\" width=95 height=21><br>" + "Players Inside: <font color=\"LEVEL\">" + getPlayerInsideCount(10500) + "</font>" + "<button value=\"Giran\" action=\"bypass -h Quest SpecialGatekeeper 2\" back=\"L2UI_ch3.bigbutton_over\" fore=\"L2UI_ch3.bigbutton\" width=95 height=21><br>" + "Players Inside: <font color=\"LEVEL\">" + getPlayerInsideCount(11012) + "</font>" + "<button value=\"MOS\" action=\"bypass -h Quest SpecialGatekeeper 3\" back=\"L2UI_ch3.bigbutton_over\" fore=\"L2UI_ch3.bigbutton\" width=95 height=21><br>" + "Players Inside: <font color=\"LEVEL\">" + getPlayerInsideCount(11013) + "</font>" + "<button value=\"VARKA\" action=\"bypass -h Quest SpecialGatekeeper 4\" back=\"L2UI_ch3.bigbutton_over\" fore=\"L2UI_ch3.bigbutton\" width=95 height=21><br>" + "Players Inside: <font color=\"PI\">" + getPlayerInsideCount(11013) + "</font>" + "<button value=\"VARKA\" action=\"bypass -h Quest SpecialGatekeeper 4\" back=\"L2UI_ch3.bigbutton_over\" fore=\"L2UI_ch3.bigbutton\" width=95 height=21><br>" + "<font color=\"cc9900\"><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32></font><br1></center></body></head></html>"; return htmltext; } /** * @param zoneId * @return player count from given zone ID */ public static int getPlayerInsideCount(int zoneId) { int i = 0; for (L2ZoneType zone : ZoneManager.getInstance().getAllZones()) if (zone.getId() == zoneId) { for (L2Character character : zone.getCharactersInside().values()) if (character instanceof L2Player) i++; return i; } return -1; } public static void main(String[] args) { new SpecialGatekeeper(-1, qn, "SpecialGatekeeper"); } } -
About "New Respawn" what you mean? you wanna make a x mob respawn in a new place? just spawn him on the place you want and he will respawn in that place every time.
-
Faction Range are you sure?, i think this is maybe cuz the mobs are in same "Clan" and so the range is high, if it¡s the case go to navicat - NPCAIDATA and just delete the clan or low the range.
-
Hi all, well i m using L2Control and Battleping (for ppl who don't know what Battleping is: http://www.battleping.com/ ) L2Control is a program that allow you use Auto CPH/HP/MP recharge without the need to click yourself and a lot of other things. So the problem is when i connect to the server with Battleping, L2Control don't work. But if i not use Battleping this work perfect. Now ofc. i need use Battleping for get less ping and can play, but i would like to have L2Control running to. I try all diferent ways, first run BP and later open L2 so before choice server i run L2C, i try firs run L2C later BP and later L2 and nothing, i m stucked at this if someone know something about this please help. thx.
-
freya [L2J]Lineage2 HIGHLY MODIFIED Gallo Server!
Chakl22 replied to •DarkStar•'s topic in Private Servers
Just great! =) -
works in Freya?
-
So no one fisnished this script with restrictions?
-
[HELP] Make a FLAG Zone Permanent.
Chakl22 replied to Chakl22's question in Request Server Development Help [L2J]
Very thx man, now is working fine. PD: The only problem is for ex, in coli when in chat say: You enter in bookmark zone (flag status working) but when say you leave bookmark zone (flag go off), i test this in other arena like in Giran Arena and work fine. Anyway i will use this for a new zone (not arena) so i think i don't should have a that Bookmark shit problem. -
[HELP] Make a FLAG Zone Permanent.
Chakl22 posted a question in Request Server Development Help [L2J]
I m trying to make a player get Flag status when enter on X zone for example lets say Coly, i m using this code: Index: java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java =================================================================== --- java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0) +++ java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0) @@ -0,0 +1,62 @@ +/* + * 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.model.zone.type; + +import com.l2jserver.gameserver.model.actor.L2Character; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.zone.L2ZoneType; + +/** + * @author UnAfraid + */ +public class L2FlagZone extends L2ZoneType +{ + public L2FlagZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + if (character instanceof L2PcInstance) + { + ((L2PcInstance) character).startPvPFlag(); + ((L2PcInstance) character).broadcastUserInfo(); + } + } + + @Override + protected void onExit(L2Character character) + { + if (character instanceof L2PcInstance) + { + ((L2PcInstance) character).stopPvPFlag(); + ((L2PcInstance) character).broadcastUserInfo(); + } + } + + @Override + public void onDieInside(L2Character character) + { + onExit(character); + } + + @Override + public void onReviveInside(L2Character character) + { + onEnter(character); + } +} -
Wroking great o nLast Rev. Freya, thx.
-
This maybe work? So i make 3 categories for 1 mob with diferent drop and this will make mob drop all items at same time? And what is this a Query for modify the Custom Drop Table? set @a := 0; update droplist set category = (@a := @a+1) where category <> -1;
-
Instance Open a door after kill 2 mobs.
Chakl22 replied to Chakl22's question in Request Server Development Help [L2J]
Man if leave it like i write in my post, the Player can kill first the Sentry 2 and the door will be opened in the second way is like kill SENTRY1 - OPEN DOOR1 / KILL SENTRY 2 OPEN DOOR 2 What i need is the doors ONLY OPEN WHEN THE 2 SENTRY'S are dead. openDoor(DOOR1,npc.instanceId) openDoor(DOOR2,npc.instanceId) If i put this after the Sentry 2 code so he only need kill Sentry 2 and the DOORS will be opened.