Jump to content

janiko

Members
  • Posts

    205
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by janiko

  1. nice idea
  2. custom jew dont have stats i think :D, for custom item create custom skill
  3. amazing !!
  4. amaizing work. it use telnet, php ? how it connects to db?
  5. 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
  6. How to hack protected wiFi connection? can anyone give my sme clean prog?
  7. how to allow buffs in instance? i did same like kamaloka but it still removes, can someone help me?
  8. 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.
  9. leki shen kide interludze mushaob?
  10. i cant understand what is it?
  11. 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
  12. i have fixed it and thanks for help tryskell topic can be closed
  13. 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
  14. 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"); } }
  15. Found Solution CLose topic
  16. 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) { } }
  17. y i know now my sorrow so you work now togehter :)
  18. 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!!!
  19. ask official developers on www.l2squid.freeforums.org
  20. in droplist 100% == 1000000 to make more rare get npc id, then find his droplist and edit :) GL
  21. Thanks man :)
×
×
  • 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 Disabled AdBlock