Jump to content

martuxas1

Members
  • Posts

    114
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by martuxas1

  1. i try it and try =! always error Error: incomparable types: ClassId and int [javac] if (player.getClassId() == 83) [javac] ^ [javac] 1 error
  2. Hey what i do wrong? all import good need get classid and if match then teleport to town. @Override protected void onEnter(Creature Creature) { Creature.setInsideZone(ZoneId.FLAG, true); if (Creature instanceof Player) { Player player = Creature.getActingPlayer(); PvpFlagTaskManager.getInstance().remove(player); noblesse.getEffects(player, player); player.updatePvPFlag(1); ((Player) Creature).sendMessage("AUTO NOBLESS ON"); Creature.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true); // THIS ZONE WRONG if (player.getClassId() && 83) player.teleToLocation(Rnd.get(82833, 83000),Rnd.get(148605, 148800),-3472, 0); player.sendMessage("Your class is not allowed in the PvP zone."); return; } } error: Bad operand types for binary operator '&&' [javac] if (player.getClassId() && 83) [javac] first type: ClassId
  3. When char die and press to village he respawn nearest town i need respawn char to custom locations on custom zone if valakas zone custom respawns on valakas zone if antharas zone custom respawns on antharas zone. please help.
  4. how to do random? chose of this code? 50/50% s grade armor a grade armor itemIds = Arrays.asList(6379, 6380, 6381, 6382, 858, 858, 889, 889, 920); itemIds = Arrays.asList(547, 2382, 5768, 5780, 858, 858, 889, 889, 920);
  5. Any help? CODE: activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true); ERROR: [javac] aCis_gameserver\java\net\sf\l2j\gameserver\handler\itemhandlers\SoulShots.java:118: error: cannot find symbol [javac] activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true); [javac] ^ [javac] symbol: method getInstance() [javac] location: class ThreadPool
  6. where get the tutorial quest? and currect implant?
  7. Hey when i create charecter i don't get tutorial quest. Source l2jacis latest rev scripts.xml - <!-- <script path="quests.Tutorial"/> --> + <script path="quests.Tutorial"/> server.properties # Disable tutorial on new player game entrance. Default: False. DisableTutorial = False and where tutorial quest file? net.sf.l2j.gameserver.scripting.quests.Tutorial.java don't have
  8. Hey how do infinity mana, healing potions and scroll of escape Source l2jacis latest version
  9. Hello maybe who have ALT+B Community board in board players can use GM SHOP /// then buffer(buff sets 1. mage 2. figther 3. tank) and scheme /// etc warehouse /// etc symbol maker /// etc augument add/remove /// etc if can subclass add/change and other script if have will be great When a char is created and the first time joins to game get window and has a choice what armor(set) to choose then weapon to choose and then 1st 2nd 3rd choose proffesion Server files: acis
  10. Maybe would like to join the team? I have finances and everything else but I don't know how care L2 servers and update. for more information and discussion or i can buy server skype: kecupas2
  11. Hello looking for this script
  12. Maybe possible to do EnchnatGlow.enchantglow17 glow from +0 to +29 and from 30 glowing EnchnatGlow.enchantglow10
  13. PLS HELP :)
  14. Thanks you like always best :)
  15. when kill the boss all works and all get item, but don't show in systemsg and i wanna create the send massage but i get error [javac] activeChar.sendMessage("You get all raidboss coin [Event Ended]"); [javac] ^ [javac] symbol: variable activeChar [javac] location: class L2GrandBossInstance [javac] 1 error @Override public boolean doDie(final L2Character killer) { if (getNpcId() == 25158) { getKnownList().getKnownPlayersInRadius(3500).forEach(pl -> pl.getInventory().addItem("reward", 3481, 2, pl, null)); activeChar.sendMessage("You get all raidboss coin [Event Ended]"); }
  16. yea thanks for location where, i added this for events what can be wrong? When siege off then all working. all code die.java https://pastebin.com/QGJj2hEz Event code -> --- head-src/com/l2jfrozen/gameserver/network/serverpackets/Die.java (revision 936) +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/Die.java (working copy) @@ -18,6 +18,7 @@ */ package com.l2jfrozen.gameserver.network.serverpackets; +import com.l2jfrozen.gameserver.event.EventManager; import com.l2jfrozen.gameserver.datatables.AccessLevel; import com.l2jfrozen.gameserver.datatables.sql.AccessLevels; import com.l2jfrozen.gameserver.managers.CastleManager; @@ -46,6 +47,7 @@ private boolean _sweepable; private boolean _canTeleport; private AccessLevel _access = AccessLevels.getInstance()._userAccessLevel; + private boolean _event; private com.l2jfrozen.gameserver.model.L2Clan _clan; L2Character _activeChar; @@ -60,6 +62,7 @@ L2PcInstance player = (L2PcInstance) cha; _access = player.getAccessLevel(); _clan = player.getClan(); + _event = EventManager.getInstance().isRegistered((L2PcInstance)cha); _canTeleport = !((TvT.is_started() && player._inEventTvT) || (DM.is_started() && player._inEventDM) || (CTF.is_started() && player._inEventCTF) @@ -91,45 +94,55 @@ // 6d 03 00 00 00 - to siege HQ // sweepable // 6d 04 00 00 00 - FIXED - - writeD(_canTeleport ? 0x01 : 0); // 6d 00 00 00 00 - to nearest village - - if(_canTeleport && _clan != null) - { - L2SiegeClan siegeClan = null; - Boolean isInDefense = false; - Castle castle = CastleManager.getInstance().getCastle(_activeChar); - Fort fort = FortManager.getInstance().getFort(_activeChar); - - if(castle != null && castle.getSiege().getIsInProgress()) + + if(_event) + { + writeD(0x00); + writeD(0x00); // 6d 01 00 00 00 - to hide away + writeD(0x00); // 6d 02 00 00 00 - to castle + writeD(0x00); + } + else + { + writeD(_canTeleport ? 0x01 : 0); // 6d 00 00 00 00 - to nearest village + + if(_canTeleport && _clan != null) { - //siege in progress - siegeClan = castle.getSiege().getAttackerClan(_clan); - if(siegeClan == null && castle.getSiege().checkIsDefender(_clan)) + L2SiegeClan siegeClan = null; + Boolean isInDefense = false; + Castle castle = CastleManager.getInstance().getCastle(_activeChar); + Fort fort = FortManager.getInstance().getFort(_activeChar); + + if(castle != null && castle.getSiege().getIsInProgress()) { - isInDefense = true; + //siege in progress + siegeClan = castle.getSiege().getAttackerClan(_clan); + if(siegeClan == null && castle.getSiege().checkIsDefender(_clan)) + { + isInDefense = true; + } } - } - else if(fort != null && fort.getSiege().getIsInProgress()) - { - //siege in progress - siegeClan = fort.getSiege().getAttackerClan(_clan); - if(siegeClan == null && fort.getSiege().checkIsDefender(_clan)) + else if(fort != null && fort.getSiege().getIsInProgress()) { - isInDefense = true; + //siege in progress + siegeClan = fort.getSiege().getAttackerClan(_clan); + if(siegeClan == null && fort.getSiege().checkIsDefender(_clan)) + { + isInDefense = true; + } } + + writeD(_clan.getHasHideout() > 0 ? 0x01 : 0x00); // 6d 01 00 00 00 - to hide away + writeD(_clan.getHasCastle() > 0 || _clan.getHasFort() > 0 || isInDefense ? 0x01 : 0x00); // 6d 02 00 00 00 - to castle + writeD(siegeClan != null && !isInDefense && siegeClan.getFlag().size() > 0 ? 0x01 : 0x00); // 6d 03 00 00 00 - to siege HQ } - - writeD(_clan.getHasHideout() > 0 ? 0x01 : 0x00); // 6d 01 00 00 00 - to hide away - writeD(_clan.getHasCastle() > 0 || _clan.getHasFort() > 0 || isInDefense ? 0x01 : 0x00); // 6d 02 00 00 00 - to castle - writeD(siegeClan != null && !isInDefense && siegeClan.getFlag().size() > 0 ? 0x01 : 0x00); // 6d 03 00 00 00 - to siege HQ - } - else - { - writeD(0x00); // 6d 01 00 00 00 - to hide away - writeD(0x00); // 6d 02 00 00 00 - to castle - writeD(0x00); // 6d 03 00 00 00 - to siege HQ - } + else + { + writeD(0x00); // 6d 01 00 00 00 - to hide away + writeD(0x00); // 6d 02 00 00 00 - to castle + writeD(0x00); // 6d 03 00 00 00 - to siege HQ + } + } writeD(_sweepable ? 0x01 : 0x00); // sweepable (blue glow) writeD(_access.allowFixedRes() ? 0x01 : 0x00); // 6d 04 00 00 00 - to FIXED
  17. Hello, what can be bad? no button to village ?
  18. If i wanna do on another npc? like gremlin?
  19. Hello, i wanna do if killed like baium, give for all online players item, or for all players who do damage to npc. pack l2jfrozen
  20. [javac] D:\workspaceECLIPSE\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\Info.java:26: error: ';' expected [javac] If(command.startsWith("exit")) [javac] ^ [javac] D:\workspaceECLIPSE\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\Info.java:30: error: ';' expected [javac] If(player.isInsideZone(ZoneId.multi)) [javac] ^ [javac] D:\workspaceECLIPSE\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\Info.java:38: error: 'else' without 'if' [javac] else [javac] ^ [javac] 3 errors [javac] 1 warning package com.l2jfrozen.gameserver.handler.voicedcommandhandlers; import java.io.File; import java.io.FileInputStream; import java.util.ArrayList; import java.util.List; import java.util.Properties; import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; public class Exit implements IVoicedCommandHandler { private static String[] _voicedCommands = { "exit" }; @Override public boolean useVoicedCommand(final String command, final L2PcInstance activeChar, final String target) { If(command.startsWith("exit")) { If(player.isInsideZone(ZoneId.multi)) { Player.teleTolocation(x,y,z,offset); } else player.sendMessage("you can use this command only in multifunction zone!"); } } @Override public String[] getVoicedCommandList() { return _voicedCommands; } }
  21. Thanks, and how about 2nd zone? i have 2 zones and one locations, i need for 2nd zone respawn locations.
  22. Only when player on multifunction zones.
  23. Hello i use this mode multi function zone -> https://pastebin.com/7kf9eYTD And i need 2 things 1. when ONLY in multi function zone works command .exit and teleport to town or custom location (better custom location) when player not in multi function zone this command don't works. 2. i need multi one more location pvp, when i add one more location on zone.xml it's all works, but respawning at first one zone, SpawnLoc = 47422,185880,-3512;47706,185782,-3512 I need spawnloctwo = loc.
  24. Hello i have interlude l2jfrozen, i need script code. Register on olympiad only can players who have 30 pvp or more.
×
×
  • 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