Jump to content

andrei23

Members
  • Posts

    72
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by andrei23

  1. How i could do at a skill to enchant normally ,when is to 9,when u enchant it,to go at 11 than 10...
  2. Im not so good at add custom items...i got some weapons on server but when i spawn in inventory i don't see the weapons...
  3. I know abou this topic,but there is only animation systextures etc.i want to add in a server...there are no server files...only the animation...
  4. Hi i need a share with custom god weapons for freya...i fine some but when i add,i spawn in game,it works say:spawn item x etc But i cant see items on inventory...idk sure but i think that need SQL too...and that items don't have sql...please someone could help me?
  5. Hi,i got a question,i want to set siege every week saturday and sunday, I set one time already,but after the siege,the siege date go back to 02/09... So someone could help me to be at every week without change every time?
  6. Hi,i got a question,i want to set siege every week saturday and sunday, I set one time already,but after the siege,the siege date go back to 02/09... So someone could help me to be at every week without change every time?
  7. Fixed.ty.btw i add few lines in buffer script but ty vm for help
  8. Fixed.ty.btw i add few lines in buffer script but ty vm for help
  9. Hi,i want something like a protection that when u are registered at oly,u can't talk to buffer,i know that i should add lines in my buffer script.but idk what lines...couls someone help me? I got rinia scheme buffer.
  10. When u take pvp point,u take a reward too.like adena or smthing
  11. Hi.i got a freya server l2jofficial and i want to add a vote reward system for hop/topzone..someone got 1 that work?
  12. Hi,i got a freya pvp server.L2JOfficial.last rev I want to add a pvp reward system.someone could share me one that work?
  13. Still nothing...no one?? Please someone can help me?:(
  14. I got this error when i open the server Jul 20, 2012 5:40:13 PM com.l2jserver.gameserver.model.olympiad.Olympiad load WARNING: Olympiad System: Error loading olympiad data from database: java.lang.NullPointerException at com.l2jserver.gameserver.model.olympiad.Olympiad.load(Olympiad.java:197) at com.l2jserver.gameserver.model.olympiad.Olympiad.<init>(Olympiad.java:158) at com.l2jserver.gameserver.model.olympiad.Olympiad.<init>(Olympiad.java:54) at com.l2jserver.gameserver.model.olympiad.Olympiad$SingletonHolder.<clinit>(Olympiad.java:1207) at com.l2jserver.gameserver.model.olympiad.Olympiad.getInstance(Olympiad.java:153) at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:294) at com.l2jserver.gameserver.GameServer.main(GameServer.java:500)
  15. Setted and nothing..i enter in match and i cant activate zealot or frenzy... Even at 1k hp cant activate them...look like are unavailable
  16. I can put this? <cond msgId="1509"> <player olympiad="false" /> </cond> With val "true"?
  17. Zealot: /skill> <skill id="420" levels="3" name="Zealot" enchantGroup1="1" enchantGroup2="1"> <table name="#hpConsume"> 159 183 204 </table> <table name="#mpConsume"> 106 122 136 </table> <table name="#ench1hpConsume"> 200 197 193 190 187 183 180 176 173 170 166 163 159 156 153 149 146 142 139 136 132 129 125 122 119 115 112 108 105 102 </table> <table name="#ench1mpConsume"> 133 131 129 126 124 122 120 117 115 113 111 108 106 104 102 99 97 95 92 90 88 86 83 81 79 77 74 72 70 68 </table> <table name="#ench2Time"> 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 </table> <table name="#runSpd"> 10 20 30 </table> <table name="#pAtkSpd"> 1.1 1.2 1.3 </table> <table name="#rCrit"> 33 66 100 </table> <table name="#cAtk"> 1.33 1.66 2 </table> <table name="#abnormalLvl"> 1 2 3 </table> <set name="hpConsume" val="#hpConsume" /> <set name="mpConsume" val="#mpConsume" /> <set name="reuseDelay" val="300000" /> <set name="hitTime" val="2000" /> <set name="target" val="TARGET_SELF" /> <set name="skillType" val="BUFF" /> <set name="operateType" val="OP_ACTIVE" /> <enchant1 name="hpConsume" val="#ench1hpConsume" /> <enchant1 name="mpConsume" val="#ench1mpConsume" /> <cond msgId="113" addName="1"> <player hp="30" /> </cond> <for> <effect name="Buff" abnormalTime="60" val="0" abnormalLvl="#abnormalLvl" abnormalType="pd_up_special"> <sub order="0x40" stat="debuffVuln" val="80" /> <sub order="0x40" stat="cancelVuln" val="40" /> <add order="0x40" stat="runSpd" val="#runSpd" /> <add order="0x40" stat="accCombat" val="6"> <using kind="Sword,Big Sword,Blunt,Big Blunt,Pole,Dual Fist" /> </add> <mul order="0x30" stat="pAtkSpd" val="#pAtkSpd"> <using kind="Sword,Big Sword,Blunt,Big Blunt,Pole,Dual Fist" /> </mul> <add order="0x40" stat="rCrit" val="#rCrit"> <using kind="Sword,Big Sword,Pole" /> </add> <mul order="0x30" stat="cAtk" val="#cAtk"> <using kind="Blunt,Big Blunt,Dual Fist" /> </mul> <mul order="0x30" stat="PhysicalMpConsumeRate" val="0.5" /> <mul order="0x30" stat="gainHp" val="0.5" /> </effect> </for> <enchant2for> <effect name="Buff" abnormalTime="#ench2Time" val="0" abnormalLvl="3" abnormalType="pd_up_special"> <sub order="0x40" stat="debuffVuln" val="80" /> <sub order="0x40" stat="cancelVuln" val="40" /> <add order="0x40" stat="runSpd" val="30" /> <add order="0x40" stat="accCombat" val="6"> <using kind="Sword,Big Sword,Blunt,Big Blunt,Pole,Dual Fist" /> </add> <mul order="0x30" stat="pAtkSpd" val="1.3"> <using kind="Sword,Big Sword,Blunt,Big Blunt,Pole,Dual Fist" /> </mul> <add order="0x40" stat="rCrit" val="100"> <using kind="Sword,Big Sword,Pole" /> </add> <mul order="0x30" stat="cAtk" val="2"> <using kind="Blunt,Big Blunt,Dual Fist" /> </mul> <mul order="0x30" stat="PhysicalMpConsumeRate" val="0.5" /> <mul order="0x30" stat="gainHp" val="0.5" /> </effect> </enchant2for> And Frenzy : <skill id="176" levels="3" name="Frenzy"> <!-- Confirmed CT2.5 --> <table name="#magicLvl"> 32 46 55 </table> <table name="#swordblunt"> 1.54 1.92 2.31 </table> <table name="#twohand"> 1.25 1.2 1.16 </table> <table name="#all"> 1.3 1.3 1.5 </table> <table name="#accCombat"> 2 4 6 </table> <table name="#mpConsume"> 14 21 25 </table> <table name="#abnormalLvl"> 1 2 3 </table> <table name="#aggro"> 303 438 523 </table> <set name="aggroPoints" val="#aggro" /> <set name="hitTime" val="1500" /> <set name="magicLvl" val="#magicLvl" /> <set name="mpConsume" val="#mpConsume" /> <set name="operateType" val="OP_ACTIVE" /> <set name="reuseDelay" val="600000" /> <set name="skillType" val="BUFF" /> <set name="target" val="TARGET_SELF" /> <cond msgId="113" addName="1"> <player hp="30" /> </cond> <for> <effect name="Buff" abnormalTime="90" val="0" abnormalLvl="#abnormalLvl" abnormalType="pinch"> <mul order="0x30" stat="pAtk" val="#all" /> <mul order="0x30" stat="pAtk" val="#swordblunt"> <and> <player hp="30" /> <using kind="Sword,Big Sword,Blunt,Big Blunt" /> </and> </mul> <mul order="0x30" stat="pAtk" val="#twohand"> <and> <player hp="30" /> <using kind="Big Sword,Big Blunt" /> </and> </mul> <add order="0x40" stat="accCombat" val="#accCombat"> <and> <player hp="30" /> <using kind="Big Sword,Big Blunt" /> </and> </add> </effect> </for> </skill>
  18. Hi,i got a server and in olly,titans and tyrants cant use zealot or frenzy,could someone say to me how to allow them to use skills in olly?
  19. They are default...i dont change anything..
  20. /* * 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 ai.individual; import java.util.List; import javolution.util.FastList; import ai.group_template.L2AttackableAIScript; import com.l2jserver.Config; import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.actor.L2Attackable; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2GrandBossInstance; import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.zone.type.L2BossZone; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; import com.l2jserver.gameserver.network.serverpackets.PlaySound; import com.l2jserver.gameserver.network.serverpackets.SocialAction; import com.l2jserver.gameserver.skills.SkillHolder; import com.l2jserver.gameserver.templates.StatsSet; import com.l2jserver.util.Rnd; /** * Queen Ant AI * * @author Emperorc * */ public class QueenAnt extends L2AttackableAIScript { private static final int QUEEN = 29001; private static final int LARVA = 29002; private static final int NURSE = 29003; private static final int GUARD = 29004; private static final int ROYAL = 29005; private static final int[] MOBS = { QUEEN, LARVA, NURSE, GUARD, ROYAL }; private static final int QUEEN_X = -21610; private static final int QUEEN_Y = 181594; private static final int QUEEN_Z = -5734; //QUEEN Status Tracking : private static final byte ALIVE = 0; //Queen Ant is spawned. private static final byte DEAD = 1; //Queen Ant has been killed. private static L2BossZone _zone; private static SkillHolder HEAL1 = new SkillHolder(4020, 1); private static SkillHolder HEAL2 = new SkillHolder(4024, 1); private L2MonsterInstance _queen = null; private L2MonsterInstance _larva = null; private List<L2MonsterInstance> _nurses = new FastList<L2MonsterInstance>(5); public QueenAnt(int questId, String name, String descr) { super(questId, name, descr); registerMobs(MOBS, QuestEventType.ON_SPAWN, QuestEventType.ON_KILL, QuestEventType.ON_AGGRO_RANGE_ENTER); addFactionCallId(NURSE); _zone = GrandBossManager.getInstance().getZone(QUEEN_X, QUEEN_Y, QUEEN_Z); StatsSet info = GrandBossManager.getInstance().getStatsSet(QUEEN); int status = GrandBossManager.getInstance().getBossStatus(QUEEN); if (status == DEAD) { // load the unlock date and time for queen ant from DB long temp = info.getLong("respawn_time") - System.currentTimeMillis(); // if queen ant is locked until a certain time, mark it so and start the unlock timer // the unlock time has not yet expired. if (temp > 0) startQuestTimer("queen_unlock", temp, null, null); else { // the time has already expired while the server was offline. Immediately spawn queen ant. L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_X, QUEEN_Y, QUEEN_Z, 0, false, 0); GrandBossManager.getInstance().setBossStatus(QUEEN, ALIVE); spawnBoss(queen); } } else { int loc_x = info.getInteger("loc_x"); int loc_y = info.getInteger("loc_y"); int loc_z = info.getInteger("loc_z"); int heading = info.getInteger("heading"); int hp = info.getInteger("currentHP"); int mp = info.getInteger("currentMP"); if (!_zone.isInsideZone(loc_x, loc_y, loc_z)) { loc_x = QUEEN_X; loc_y = QUEEN_Y; loc_z = QUEEN_Z; } L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, loc_x, loc_y, loc_z, heading, false, 0); queen.setCurrentHpMp(hp, mp); spawnBoss(queen); } } private void spawnBoss(L2GrandBossInstance npc) { GrandBossManager.getInstance().addBoss(npc); if (Rnd.get(100) < 33) _zone.movePlayersTo(-19480, 187344, -5600); else if (Rnd.get(100) < 50) _zone.movePlayersTo(-17928, 180912, -5520); else _zone.movePlayersTo(-23808, 182368, -5600); GrandBossManager.getInstance().addBoss(npc); startQuestTimer("action", 10000, npc, null, true); startQuestTimer("heal", 1000, null, null, true); npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); _queen = npc; _larva = (L2MonsterInstance)addSpawn(LARVA, -21600, 179482, -5846, Rnd.get(360), false, 0); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { if (event.equalsIgnoreCase("heal")) { boolean notCasting; final boolean larvaNeedHeal = _larva != null && _larva.getCurrentHp() < _larva.getMaxHp(); final boolean queenNeedHeal = _queen != null && _queen.getCurrentHp() < _queen.getMaxHp(); for (L2MonsterInstance nurse : _nurses) { if (nurse == null || nurse.isDead() || nurse.isCastingNow()) continue; notCasting = nurse.getAI().getIntention() != CtrlIntention.AI_INTENTION_CAST; if (larvaNeedHeal) { if (nurse.getTarget() != _larva || notCasting) { nurse.setTarget(_larva); nurse.useMagic(Rnd.nextBoolean() ? HEAL1.getSkill() : HEAL2.getSkill()); } continue; } if (queenNeedHeal) { if (nurse.getLeader() == _larva) // skip larva's minions continue; if (nurse.getTarget() != _queen || notCasting) { nurse.setTarget(_queen); nurse.useMagic(HEAL1.getSkill()); } continue; } // if nurse not casting - remove target if (notCasting && nurse.getTarget() != null) nurse.setTarget(null); } } else if (event.equalsIgnoreCase("action") && npc != null) { if (Rnd.get(3) == 0) { if (Rnd.get(2) == 0) { npc.broadcastPacket(new SocialAction(npc, 3)); } else { npc.broadcastPacket(new SocialAction(npc, 4)); } } } else if (event.equalsIgnoreCase("queen_unlock")) { L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_X, QUEEN_Y, QUEEN_Z, 0, false, 0); GrandBossManager.getInstance().setBossStatus(QUEEN, ALIVE); spawnBoss(queen); } return super.onAdvEvent(event, npc, player); } @Override public String onSpawn(L2Npc npc) { final L2MonsterInstance mob = (L2MonsterInstance)npc; switch (npc.getNpcId()) { case LARVA: mob.setIsImmobilized(true); mob.setIsMortal(false); mob.setIsRaidMinion(true); break; case NURSE: mob.disableCoreAI(true); mob.setIsRaidMinion(true); _nurses.add(mob); break; case ROYAL: case GUARD: mob.setIsRaidMinion(true); break; } return super.onSpawn(npc); } @Override public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attacker, boolean isPet) { if (caller == null || npc == null) return super.onFactionCall(npc, caller, attacker, isPet); if (!npc.isCastingNow() && npc.getAI().getIntention() != CtrlIntention.AI_INTENTION_CAST) { if (caller.getCurrentHp() < caller.getMaxHp()) { npc.setTarget(caller); ((L2Attackable)npc).useMagic(HEAL1.getSkill()); } } return null; } @Override public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean isPet) { if (npc == null) return null; final boolean isMage; final L2Playable character; if (isPet) { isMage = false; character = player.getPet(); } else { isMage = player.isMageClass(); character = player; } if (character == null) return null; if (!Config.RAID_DISABLE_CURSE && character.getLevel() - npc.getLevel() > 8) { L2Skill curse = null; if (isMage) { if (!character.isMuted() && Rnd.get(4) == 0) curse = SkillTable.FrequentSkill.RAID_CURSE.getSkill(); } else { if (!character.isParalyzed() && Rnd.get(4) == 0) curse = SkillTable.FrequentSkill.RAID_CURSE2.getSkill(); } if (curse != null) { npc.broadcastPacket(new MagicSkillUse(npc, character, curse.getId(), curse.getLevel(), 300, 0)); curse.getEffects(npc, character); } ((L2Attackable) npc).stopHating(character); // for calling again return null; } return super.onAggroRangeEnter(npc, player, isPet); } @Override public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet) { int npcId = npc.getNpcId(); if (npcId == QUEEN) { npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ())); GrandBossManager.getInstance().setBossStatus(QUEEN, DEAD); //time is 36hour +/- 17hour long respawnTime = (long) Config.Interval_Of_QueenAnt_Spawn + Rnd.get(Config.Random_Of_QueenAnt_Spawn); startQuestTimer("queen_unlock", respawnTime, null, null); cancelQuestTimer("action", npc, null); cancelQuestTimer("heal", null, null); // also save the respawn time so that the info is maintained past reboots StatsSet info = GrandBossManager.getInstance().getStatsSet(QUEEN); info.set("respawn_time", System.currentTimeMillis() + respawnTime); GrandBossManager.getInstance().setStatsSet(QUEEN, info); _nurses.clear(); _larva.deleteMe(); _larva = null; _queen = null; } else if (_queen != null && !_queen.isAlikeDead()) { if (npcId == ROYAL) { L2MonsterInstance mob = (L2MonsterInstance)npc; if (mob.getLeader() != null) mob.getLeader().getMinionList().onMinionDie(mob, (280 + Rnd.get(40)) * 1000); } else if (npcId == NURSE) { L2MonsterInstance mob = (L2MonsterInstance)npc; _nurses.remove(mob); if (mob.getLeader() != null) mob.getLeader().getMinionList().onMinionDie(mob, 10000); } } return super.onKill(npc, killer, isPet); } public static void main(String[] args) { // now call the constructor (starts up the ai) new QueenAnt(-1, "queen_ant", "ai"); } }
  21. Hi someone got a RaidBoss status npc ? I want for a l2j freya I search but i don't find something about one for freya...only for ct 2.4
  22. java.lang.NullPointerException at ai.individual.QueenAnt.onKill(QueenAnt.java:312) at com.l2jserver.gameserver.model.quest.Quest.notifyKill(Quest.java:476) at com.l2jserver.gameserver.model.actor.L2Attackable$OnKillNotifyTask.ru n(L2Attackable.java:572) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread PoolManager.java:86) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$201(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) That is the error
×
×
  • 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