martuxas1
Members-
Posts
114 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by martuxas1
-
Help ClassId not allowed
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
i try it and try =! always error Error: incomparable types: ClassId and int [javac] if (player.getClassId() == 83) [javac] ^ [javac] 1 error -
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
-
Code Automatic Random Zone Changer
martuxas1 replied to StinkyMadness's topic in Server Shares & Files [L2J]
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. -
Source L2jRoboto - A Fake Player Engine
martuxas1 replied to Elfo's topic in Server Shares & Files [L2J]
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); -
Code Automatic Potions Free Code For All L2J Packs!
martuxas1 replied to numl0ckas's topic in Server Shares & Files [L2J]
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 -
Help L2jAcis tutorial quest don't show
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
where get the tutorial quest? and currect implant? -
Help L2jAcis tutorial quest don't show
martuxas1 posted a question in Request Server Development Help [L2J]
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 -
Help INFINITY POTIONS/SCROOLS POTION ACIS LATEST
martuxas1 posted a question in Request Server Development Help [L2J]
Hey how do infinity mana, healing potions and scroll of escape Source l2jacis latest version -
Request Community Board and Starting items/class
martuxas1 posted a question in Request Server Development Help [L2J]
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 -
Share New Effects for C4 and Interlude
martuxas1 replied to SGER@fjs's topic in Client Development Discussion
Maybe possible to do EnchnatGlow.enchantglow17 glow from +0 to +29 and from 30 glowing EnchnatGlow.enchantglow10 -
Request Killed mob give all players item
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
like always thanks :) -
Request Olympiad need pvps
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
Thanks you like always best :) -
Request Killed mob give all players item
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
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]"); } -
Help Siege respawn
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
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 -
Hello, what can be bad? no button to village ?
-
Request Killed mob give all players item
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
If i wanna do on another npc? like gremlin? -
Request Killed mob give all players item
martuxas1 posted a question in Request Server Development Help [L2J]
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 -
Request Multifunction zone
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
[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; } } -
Request Multifunction zone
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
Thanks, and how about 2nd zone? i have 2 zones and one locations, i need for 2nd zone respawn locations. -
Request Multifunction zone
martuxas1 replied to martuxas1's question in Request Server Development Help [L2J]
Only when player on multifunction zones. -
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.
-
Hello i have interlude l2jfrozen, i need script code. Register on olympiad only can players who have 30 pvp or more.
