janiko
Members-
Posts
205 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by janiko
-
[SHARE]Evermore rev.860(private)
janiko replied to IPXS's topic in Server Development Discussion [L2J]
chronicle? -
[SHARE]l2j Administration Programms
janiko replied to vmlinuz's topic in Server Development Discussion [L2J]
big thanksss :* -
frozen Inventory.java epic (
janiko replied to Dollar's question in Request Server Development Help [L2J]
custom jew dont have stats i think :D, for custom item create custom skill -
amazing !!
-
amaizing work. it use telnet, php ? how it connects to db?
-
When i kill mob without party it shows me this error, check in image any idea why i ahve this error? @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { L2PcInstance partyMember = getRandomPartyMember(player, "1"); QuestState st = partyMember.getQuestState(getName()); // Line 130 if(st == null) { return null; } int npcId = npc.getNpcId(); if(st.getInt("cond") == 1) { if(npcId == Lavasaurus_Alpha) { st.giveItems(Lavasaurus_Alpha_Fragment, 1); st.playSound(SOUND_MIDDLE); st.set("cond", "2"); } } return null; } Uploaded with ImageShack.us
-
How to hack protected wiFi connection? can anyone give my sme clean prog?
-
how to allow buffs in instance? i did same like kamaloka but it still removes, can someone help me?
-
which pack u use? and check in configs there might be smthing that checks spawn by random or not. I had same problem on one pack and it was caused by config.
-
Code L2J Players Statistic Script, Very Good
janiko replied to Memorials's topic in Server Shares & Files [L2J]
nice share, thnx dude -
leki shen kide interludze mushaob?
-
i cant understand what is it?
-
nice share but im' interested how people will observer freya instance or zaken instance? On old crhonics it will be useful but up freya it won't
-
i have fixed it and thanks for help tryskell topic can be closed
-
man i tried to do in that way npc.setTarget(player); npc.doCast(skill); but npc had no reaction it not added buffs on player can u better explain me? anyway thanks
-
Can someone help me to fix ai? i wrote it but npc not casts skill on player. package ai.individual; import ai.group_template.L2AttackableAIScript; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.effects.L2Effect; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; /* * @Author Janiko */ public class ElcardiaAssistant extends L2AttackableAIScript { private static final int ELCARDIA = 32785; public ElcardiaAssistant(int questId, String name, String descr) { super(questId, name, descr); addSpawnId(ELCARDIA); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { if ((event.equalsIgnoreCase("check_buff"))) { cancelQuestTimer("check_buff", npc, null); npc.setTarget(player); if (player.getCurrentHp() < player.getMaxHp() * 0.8D) { npc.broadcastPacket(new MagicSkillUse(npc, player, 6724, 1, 1500, 0)); // heal } if (player.getCurrentMp() < player.getMaxMp() * 0.5D) { npc.broadcastPacket(new MagicSkillUse(npc, player, 6728, 1, 6000, 0)); // recharge } if(player.isInCombat()) { npc.broadcastPacket(new MagicSkillUse(npc, player, 6725, 1, 1000, 0)); // blessBlood } L2Effect vampRage = player.getFirstEffect(6727); if(vampRage == null) { npc.broadcastPacket(new MagicSkillUse(npc, player, 6727, 1, 500, 0)); // vampRage } L2Effect holyResist = player.getFirstEffect(6729); if(holyResist == null) { npc.broadcastPacket(new MagicSkillUse(npc, player, 6729, 1, 500, 0)); // holyResist } startQuestTimer("check_buff", 30000, npc, null); } return super.onAdvEvent(event, npc, player); } @Override public String onSpawn(L2Npc npc) { startQuestTimer("check", 2000, npc, null); return super.onSpawn(npc); } public static void main(String[] args) { new ElcardiaAssistant(-1, ElcardiaAssistant.class.getSimpleName(), "ai"); } }
-
Found Solution CLose topic
-
How to execute script, when character enters on the peace zone to start smthing? i made this kind script and isn't working, when char is in peacefull zone not pauses timer, can someone help me? ____________________ /* * 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.Config; import com.l2jserver.gameserver.instancemanager.TerritoryWarManager; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.zone.L2ZoneType; /** * A Peace Zone * @author durgus */ public class L2PeaceZone extends L2ZoneType { +private L2PcInstance activeChar; public L2PeaceZone(int id) { super(id); } @Override protected void onEnter(L2Character character) { if (character.isPlayer()) { L2PcInstance player = character.getActingPlayer(); if (player.isCombatFlagEquipped() && TerritoryWarManager.getInstance().isTWInProgress()) { TerritoryWarManager.getInstance().dropCombatFlag(player, false, true); } // PVP possible during siege, now for siege participants only // Could also check if this town is in siege, or if any siege is going on if (player.getSiegeState() != 0 && (Config.PEACE_ZONE_MODE == 1)) { return; } } if (Config.PEACE_ZONE_MODE != 2) { character.setInsideZone(L2Character.ZONE_PEACE, true); +if(activeChar != null) +{ + activeChar.pauseAdventTime() +} } if (!getAllowStore()) { character.setInsideZone(L2Character.ZONE_NOSTORE, true); } } @Override protected void onExit(L2Character character) { if (Config.PEACE_ZONE_MODE != 2) { character.setInsideZone(L2Character.ZONE_PEACE, false); } if (!getAllowStore()) { character.setInsideZone(L2Character.ZONE_NOSTORE, false); } } @Override public void onDieInside(L2Character character) { } @Override public void onReviveInside(L2Character character) { } }
-
[Share] L2Brick High Five project [Updated]
janiko replied to Street's topic in Server Development Discussion [L2J]
y i know now my sorrow so you work now togehter :) -
[SHARE] L2J Dario source
janiko replied to έτσι γιατί μπορώ's topic in Server Development Discussion [L2J]
Chronic? -
[Share] L2Brick High Five project [Updated]
janiko replied to Street's topic in Server Development Discussion [L2J]
Why you lie to people? its not brick project, and u arent admin of it , thats your own project the Original project is l2brick.funsite.cz and nothing changed!!! -
[help] L2Squid Help with TvT
janiko replied to KriminalMind's question in Request Server Development Help [L2J]
ask official developers on www.l2squid.freeforums.org -
[help] TrickOrTrasmutation
janiko replied to KriminalMind's question in Request Server Development Help [L2J]
in droplist 100% == 1000000 to make more rare get npc id, then find his droplist and edit :) GL -
Thanks man :)
