Karasu Posted September 2, 2013 Posted September 2, 2013 [td]case 5: ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 kills in a row", 10000); sendPacket(case5); Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started!"); MagicSkillUse MS5 = new MagicSkillUse (this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!"); sendPacket(MS5); break; this is from 1 topic with quake system ;p ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 kills in a row", 10000);[/code] it says multiple markers at the same ExShowScreenMessage cannot be resolved to a type whats that suppose to mean? and on compile it gives C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5723: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5724: error: class, interface, or enum expected [javac] case 15: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5726: error: class, interface, or enum expected [javac] sendPacket(case15); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5727: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]");
0 Tryskell Posted September 2, 2013 Posted September 2, 2013 This stuff is part of a switch, you probably failed the implementation (missing bracket, etc). switch (blabla) { case x: // blabla break; case y: // blabla break; } About ExShowScreenMessage, you can either replace it with sendMessage( - which is, by the way, less buggy - or implement the packet if it misses (that packet exists since IL). If it doesn't miss, then import it.
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 the switch part its implemented ,let me try what u said
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 multiple markers at the same *its same* i just started eclipse yesterday so i barely know to open and do this for now :-X im wondering where is a guide with importing etc xD
0 ^Wyatt Posted September 2, 2013 Posted September 2, 2013 multiple markers at the same *its same* i just started eclipse yesterday so i barely know to open and do this for now :-X im wondering where is a guide with importing etc xD Could u just C/P the L2PcInstance part, where your code is? Then we'll be able to help you.
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 /* * 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.actor.instance; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Arrays; import java.util.Calendar; import java.util.Collection; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Future; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import javolution.util.FastList; import javolution.util.FastMap; import javolution.util.FastSet; import com.l2jserver.Config; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.Announcements; import com.l2jserver.gameserver.GameTimeController; import com.l2jserver.gameserver.GeoData; import com.l2jserver.gameserver.GmListTable; import com.l2jserver.gameserver.ItemsAutoDestroy; import com.l2jserver.gameserver.LoginServerThread; import com.l2jserver.gameserver.RecipeController; import com.l2jserver.gameserver.SevenSigns; import com.l2jserver.gameserver.SevenSignsFestival; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.ai.L2CharacterAI; import com.l2jserver.gameserver.ai.L2PlayerAI; import com.l2jserver.gameserver.ai.L2SummonAI; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.cache.WarehouseCacheManager; import com.l2jserver.gameserver.communitybbs.BB.Forum; import com.l2jserver.gameserver.communitybbs.Manager.ForumsBBSManager; import com.l2jserver.gameserver.communitybbs.Manager.RegionBBSManager; import com.l2jserver.gameserver.datatables.AccessLevels; import com.l2jserver.gameserver.datatables.AdminCommandAccessRights; import com.l2jserver.gameserver.datatables.CharNameTable; import com.l2jserver.gameserver.datatables.CharTemplateTable; import com.l2jserver.gameserver.datatables.ClanTable; import com.l2jserver.gameserver.datatables.EnchantGroupsTable; import com.l2jserver.gameserver.datatables.FishTable; import com.l2jserver.gameserver.datatables.HennaTable; import com.l2jserver.gameserver.datatables.HeroSkillTable; import com.l2jserver.gameserver.datatables.ItemTable; import com.l2jserver.gameserver.datatables.MapRegionTable; import com.l2jserver.gameserver.datatables.NobleSkillTable; import com.l2jserver.gameserver.datatables.NpcTable; import com.l2jserver.gameserver.datatables.PetDataTable; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.datatables.SkillTreesData; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.handler.ItemHandler; import com.l2jserver.gameserver.instancemanager.AntiFeedManager; import com.l2jserver.gameserver.instancemanager.CastleManager; import com.l2jserver.gameserver.instancemanager.CoupleManager; import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager; import com.l2jserver.gameserver.instancemanager.DimensionalRiftManager; import com.l2jserver.gameserver.instancemanager.DuelManager; import com.l2jserver.gameserver.instancemanager.FortManager; import com.l2jserver.gameserver.instancemanager.FortSiegeManager; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.instancemanager.HandysBlockCheckerManager; import com.l2jserver.gameserver.instancemanager.InstanceManager; import com.l2jserver.gameserver.instancemanager.ItemsOnGroundManager; import com.l2jserver.gameserver.instancemanager.QuestManager; import com.l2jserver.gameserver.instancemanager.SiegeManager; import com.l2jserver.gameserver.instancemanager.TerritoryWarManager; import com.l2jserver.gameserver.model.BlockList; import com.l2jserver.gameserver.model.CharEffectList; import com.l2jserver.gameserver.model.Elementals; import com.l2jserver.gameserver.model.FishData; import com.l2jserver.gameserver.model.L2AccessLevel; import com.l2jserver.gameserver.model.L2Clan; import com.l2jserver.gameserver.model.L2ClanMember; import com.l2jserver.gameserver.model.L2Effect; import com.l2jserver.gameserver.model.L2EnchantSkillLearn; import com.l2jserver.gameserver.model.L2Fishing; import com.l2jserver.gameserver.model.L2HennaInstance; import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.L2Macro; import com.l2jserver.gameserver.model.L2ManufactureItem; import com.l2jserver.gameserver.model.L2ManufactureList; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.L2Party; import com.l2jserver.gameserver.model.L2PetData; import com.l2jserver.gameserver.model.L2PetLevelData; import com.l2jserver.gameserver.model.L2PremiumItem; import com.l2jserver.gameserver.model.L2Radar; import com.l2jserver.gameserver.model.L2RecipeList; import com.l2jserver.gameserver.model.L2Request; import com.l2jserver.gameserver.model.L2ShortCut; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.L2Skill.SkillTargetType; import com.l2jserver.gameserver.model.L2SkillLearn; import com.l2jserver.gameserver.model.L2Transformation; import com.l2jserver.gameserver.model.L2UIKeysSettings; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.L2WorldRegion; import com.l2jserver.gameserver.model.Location; import com.l2jserver.gameserver.model.MacroList; import com.l2jserver.gameserver.model.PartyMatchRoom; import com.l2jserver.gameserver.model.PartyMatchRoomList; import com.l2jserver.gameserver.model.PartyMatchWaitingList; import com.l2jserver.gameserver.model.ShortCuts; import com.l2jserver.gameserver.model.TerritoryWard; import com.l2jserver.gameserver.model.TradeList; import com.l2jserver.gameserver.model.actor.L2Attackable; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Decoy; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.L2Summon; import com.l2jserver.gameserver.model.actor.L2Trap; import com.l2jserver.gameserver.model.actor.L2Vehicle; import com.l2jserver.gameserver.model.actor.appearance.PcAppearance; import com.l2jserver.gameserver.model.actor.knownlist.PcKnownList; import com.l2jserver.gameserver.model.actor.position.PcPosition; import com.l2jserver.gameserver.model.actor.stat.PcStat; import com.l2jserver.gameserver.model.actor.status.PcStatus; import com.l2jserver.gameserver.model.base.ClassId; import com.l2jserver.gameserver.model.base.ClassLevel; import com.l2jserver.gameserver.model.base.Experience; import com.l2jserver.gameserver.model.base.PlayerClass; import com.l2jserver.gameserver.model.base.Race; import com.l2jserver.gameserver.model.base.SubClass; import com.l2jserver.gameserver.model.entity.Castle; import com.l2jserver.gameserver.model.entity.Duel; import com.l2jserver.gameserver.model.entity.Fort; import com.l2jserver.gameserver.model.entity.Hero; import com.l2jserver.gameserver.model.entity.Instance; import com.l2jserver.gameserver.model.entity.L2Event; import com.l2jserver.gameserver.model.entity.Siege; import com.l2jserver.gameserver.model.entity.TvTEvent; import com.l2jserver.gameserver.model.itemcontainer.Inventory; import com.l2jserver.gameserver.model.itemcontainer.ItemContainer; import com.l2jserver.gameserver.model.itemcontainer.PcInventory; import com.l2jserver.gameserver.model.itemcontainer.PcRefund; import com.l2jserver.gameserver.model.itemcontainer.PcWarehouse; import com.l2jserver.gameserver.model.itemcontainer.PetInventory; import com.l2jserver.gameserver.model.multisell.PreparedListContainer; import com.l2jserver.gameserver.model.olympiad.OlympiadGameManager; import com.l2jserver.gameserver.model.olympiad.OlympiadGameTask; import com.l2jserver.gameserver.model.olympiad.OlympiadManager; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.gameserver.model.quest.State; import com.l2jserver.gameserver.model.zone.type.L2BossZone; import com.l2jserver.gameserver.network.L2GameClient; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.communityserver.CommunityServerThread; import com.l2jserver.gameserver.network.communityserver.writepackets.WorldInfo; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; import com.l2jserver.gameserver.network.serverpackets.ChangeWaitType; import com.l2jserver.gameserver.network.serverpackets.CharInfo; import com.l2jserver.gameserver.network.serverpackets.ConfirmDlg; import com.l2jserver.gameserver.network.serverpackets.EtcStatusUpdate; import com.l2jserver.gameserver.network.serverpackets.ExAutoSoulShot; import com.l2jserver.gameserver.network.serverpackets.ExBasicActionList; import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo; import com.l2jserver.gameserver.network.serverpackets.ExDominionWarStart; import com.l2jserver.gameserver.network.serverpackets.ExDuelUpdateUserInfo; import com.l2jserver.gameserver.network.serverpackets.ExFishingEnd; import com.l2jserver.gameserver.network.serverpackets.ExFishingStart; import com.l2jserver.gameserver.network.serverpackets.ExGetBookMarkInfoPacket; import com.l2jserver.gameserver.network.serverpackets.ExGetOnAirShip; import com.l2jserver.gameserver.network.serverpackets.ExOlympiadMode; import com.l2jserver.gameserver.network.serverpackets.ExPrivateStoreSetWholeMsg; import com.l2jserver.gameserver.network.serverpackets.ExSetCompassZoneCode; import com.l2jserver.gameserver.network.serverpackets.ExSpawnEmitter; import com.l2jserver.gameserver.network.serverpackets.ExStartScenePlayer; import com.l2jserver.gameserver.network.serverpackets.ExStorageMaxCount; import com.l2jserver.gameserver.network.serverpackets.ExVitalityPointInfo; import com.l2jserver.gameserver.network.serverpackets.ExVoteSystemInfo; import com.l2jserver.gameserver.network.serverpackets.FriendStatusPacket; import com.l2jserver.gameserver.network.serverpackets.GameGuardQuery; import com.l2jserver.gameserver.network.serverpackets.GetOnVehicle; import com.l2jserver.gameserver.network.serverpackets.HennaInfo; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.network.serverpackets.ItemList; import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket; import com.l2jserver.gameserver.network.serverpackets.LeaveWorld; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; import com.l2jserver.gameserver.network.serverpackets.NicknameChanged; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.network.serverpackets.ObservationMode; import com.l2jserver.gameserver.network.serverpackets.ObservationReturn; import com.l2jserver.gameserver.network.serverpackets.PartySmallWindowUpdate; import com.l2jserver.gameserver.network.serverpackets.PetInventoryUpdate; import com.l2jserver.gameserver.network.serverpackets.PlaySound; import com.l2jserver.gameserver.network.serverpackets.PledgeShowMemberListDelete; import com.l2jserver.gameserver.network.serverpackets.PledgeShowMemberListUpdate; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreListBuy; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreListSell; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreManageListBuy; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreManageListSell; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreMsgBuy; import com.l2jserver.gameserver.network.serverpackets.PrivateStoreMsgSell; import com.l2jserver.gameserver.network.serverpackets.RecipeShopMsg; import com.l2jserver.gameserver.network.serverpackets.RecipeShopSellList; import com.l2jserver.gameserver.network.serverpackets.RelationChanged; import com.l2jserver.gameserver.network.serverpackets.Ride; import com.l2jserver.gameserver.network.serverpackets.ServerClose; import com.l2jserver.gameserver.network.serverpackets.SetupGauge; import com.l2jserver.gameserver.network.serverpackets.ShortBuffStatusUpdate; import com.l2jserver.gameserver.network.serverpackets.ShortCutInit; import com.l2jserver.gameserver.network.serverpackets.SkillCoolTime; import com.l2jserver.gameserver.network.serverpackets.SkillList; import com.l2jserver.gameserver.network.serverpackets.Snoop; import com.l2jserver.gameserver.network.serverpackets.SocialAction; import com.l2jserver.gameserver.network.serverpackets.StatusUpdate; import com.l2jserver.gameserver.network.serverpackets.StopMove; import com.l2jserver.gameserver.network.serverpackets.SystemMessage; import com.l2jserver.gameserver.network.serverpackets.TargetSelected; import com.l2jserver.gameserver.network.serverpackets.TargetUnselected; import com.l2jserver.gameserver.network.serverpackets.TradeDone; import com.l2jserver.gameserver.network.serverpackets.TradeOtherDone; import com.l2jserver.gameserver.network.serverpackets.TradeStart; import com.l2jserver.gameserver.network.serverpackets.UserInfo; import com.l2jserver.gameserver.skills.AbnormalEffect; import com.l2jserver.gameserver.skills.Env; import com.l2jserver.gameserver.skills.Formulas; import com.l2jserver.gameserver.skills.Stats; import com.l2jserver.gameserver.skills.l2skills.L2SkillSiegeFlag; import com.l2jserver.gameserver.skills.l2skills.L2SkillSummon; import com.l2jserver.gameserver.skills.l2skills.L2SkillTrap; import com.l2jserver.gameserver.taskmanager.AttackStanceTaskManager; import com.l2jserver.gameserver.templates.chars.L2PcTemplate; import com.l2jserver.gameserver.templates.effects.EffectTemplate; import com.l2jserver.gameserver.templates.item.L2Armor; import com.l2jserver.gameserver.templates.item.L2ArmorType; import com.l2jserver.gameserver.templates.item.L2EtcItemType; import com.l2jserver.gameserver.templates.item.L2Henna; import com.l2jserver.gameserver.templates.item.L2Item; import com.l2jserver.gameserver.templates.item.L2Weapon; import com.l2jserver.gameserver.templates.item.L2WeaponType; import com.l2jserver.gameserver.templates.skills.L2EffectType; import com.l2jserver.gameserver.templates.skills.L2SkillType; import com.l2jserver.gameserver.util.FloodProtectors; import com.l2jserver.gameserver.util.Util; import com.l2jserver.util.Point3D; import com.l2jserver.util.Rnd; OK, this is the importing ,i believe everything is fine on script Doesn't seem that hard o.o ,now what import should i add?
0 ^Wyatt Posted September 2, 2013 Posted September 2, 2013 ?? C/P where your code is, or the full L2PcInstance, not the imports...
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 http://www.speedyshare.com/CzPyj/l2pcinstance.txt i uploaded a txt here
0 ^Wyatt Posted September 2, 2013 Posted September 2, 2013 Find this: default: ; and change it for default: break;
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 i found it ,i did that ,it changed nothing Here is the compile error Buildfile: C:\workspace new\L2J_Server\build.xml clean: [delete] Deleting directory C:\workspace new\L2J_Server\build checkRequirements: getChangelogDateVersion: init: [mkdir] Created dir: C:\workspace new\L2J_Server\build [mkdir] Created dir: C:\workspace new\L2J_Server\build\classes compile: [javac] Compiling 1522 source files to C:\workspace new\L2J_Server\build\classes [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5490: error: <identifier> expected [javac] quakeSystem = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: illegal start of type [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: ';' expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: illegal start of type [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: <identifier> expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: ';' expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5495: error: illegal start of type [javac] return true; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5495: error: ';' expected [javac] return true; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5498: error: class, interface, or enum expected [javac] private void onDieDropItem(L2Character killer) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5503: error: class, interface, or enum expected [javac] L2PcInstance pk = killer.getActingPlayer(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5504: error: class, interface, or enum expected [javac] if (getKarma() <= 0 && pk != null [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5513: error: class, interface, or enum expected [javac] if ((!isInsideZone(ZONE_PVP) || pk == null) && (!isGM() || Config.KARMA_DROP_GM)) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5516: error: class, interface, or enum expected [javac] boolean isKillerNpc = (killer instanceof L2Npc); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5517: error: class, interface, or enum expected [javac] int pkLimit = Config.KARMA_PK_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5519: error: class, interface, or enum expected [javac] int dropEquip = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5520: error: class, interface, or enum expected [javac] int dropEquipWeapon = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5521: error: class, interface, or enum expected [javac] int dropItem = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5522: error: class, interface, or enum expected [javac] int dropLimit = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5523: error: class, interface, or enum expected [javac] int dropPercent = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5525: error: class, interface, or enum expected [javac] if (getKarma() > 0 && getPkKills() >= pkLimit) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5528: error: class, interface, or enum expected [javac] dropPercent = Config.KARMA_RATE_DROP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5529: error: class, interface, or enum expected [javac] dropEquip = Config.KARMA_RATE_DROP_EQUIP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5530: error: class, interface, or enum expected [javac] dropEquipWeapon = Config.KARMA_RATE_DROP_EQUIP_WEAPON; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5531: error: class, interface, or enum expected [javac] dropItem = Config.KARMA_RATE_DROP_ITEM; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5532: error: class, interface, or enum expected [javac] dropLimit = Config.KARMA_DROP_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5533: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5537: error: class, interface, or enum expected [javac] dropEquip = Config.PLAYER_RATE_DROP_EQUIP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5538: error: class, interface, or enum expected [javac] dropEquipWeapon = Config.PLAYER_RATE_DROP_EQUIP_WEAPON; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5539: error: class, interface, or enum expected [javac] dropItem = Config.PLAYER_RATE_DROP_ITEM; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5540: error: class, interface, or enum expected [javac] dropLimit = Config.PLAYER_DROP_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5541: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5547: error: class, interface, or enum expected [javac] int itemDropPercent = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5549: error: class, interface, or enum expected [javac] for (L2ItemInstance itemDrop : getInventory().getItems()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5563: error: class, interface, or enum expected [javac] if (itemDrop.isEquipped()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5567: error: class, interface, or enum expected [javac] getInventory().unEquipItemInSlot(itemDrop.getLocationSlot()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5568: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5572: error: class, interface, or enum expected [javac] if (Rnd.get(100) < itemDropPercent) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5576: error: class, interface, or enum expected [javac] if (isKarmaDrop) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5578: error: class, interface, or enum expected [javac] else [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5581: error: class, interface, or enum expected [javac] if (++dropCount >= dropLimit) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5583: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5598: error: class, interface, or enum expected [javac] karmaLost *= getLevel(); // multiply by char lvl [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5599: error: class, interface, or enum expected [javac] karmaLost *= (getLevel() / 100.0); // divide by 0.charLVL [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5600: error: class, interface, or enum expected [javac] karmaLost = Math.round(karmaLost); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5601: error: class, interface, or enum expected [javac] if ( karmaLost < 0 ) karmaLost = 1; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5604: error: class, interface, or enum expected [javac] setKarma(getKarma() - (int)karmaLost); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5605: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5608: error: class, interface, or enum expected [javac] public void onKillUpdatePvPKarma(L2Character target) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5611: error: class, interface, or enum expected [javac] if (!(target instanceof L2Playable)) return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5613: error: class, interface, or enum expected [javac] L2PcInstance targetPlayer = target.getActingPlayer(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5615: error: class, interface, or enum expected [javac] if (targetPlayer == null) return; // Target player is null [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5616: error: class, interface, or enum expected [javac] if (targetPlayer == this) return; // Target player is self [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5618: error: class, interface, or enum expected [javac] if (isCursedWeaponEquipped()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5628: error: class, interface, or enum expected [javac] return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5629: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5635: error: class, interface, or enum expected [javac] if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP)) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5639: error: class, interface, or enum expected [javac] if ( [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5650: error: class, interface, or enum expected [javac] else [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5662: error: class, interface, or enum expected [javac] return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5663: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5670: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5675: error: class, interface, or enum expected [javac] checkItemRestriction(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5676: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5684: error: class, interface, or enum expected [javac] public void increasePvpKills(L2Character target) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5691: error: class, interface, or enum expected [javac] quakeSystem++; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5693: error: class, interface, or enum expected [javac] switch(quakeSystem) { [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5696: error: class, interface, or enum expected [javac] sendPacket(case4); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5697: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5698: error: class, interface, or enum expected [javac] MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5699: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5700: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5701: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5702: error: class, interface, or enum expected [javac] sendPacket(MS4); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5703: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5704: error: class, interface, or enum expected [javac] case 7: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5706: error: class, interface, or enum expected [javac] sendPacket(case7); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5707: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5708: error: class, interface, or enum expected [javac] MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5709: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5710: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5711: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5712: error: class, interface, or enum expected [javac] sendPacket(MS7); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5713: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5714: error: class, interface, or enum expected [javac] case 10: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5716: error: class, interface, or enum expected [javac] sendPacket(case10); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5717: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage! [10]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5718: error: class, interface, or enum expected [javac] MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5719: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5720: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5721: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5722: error: class, interface, or enum expected [javac] sendPacket(MS10); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5723: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5724: error: class, interface, or enum expected [javac] case 15: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5726: error: class, interface, or enum expected [javac] sendPacket(case15); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5727: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5728: error: class, interface, or enum expected [javac] MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5729: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5730: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5731: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5732: error: class, interface, or enum expected [javac] sendPacket(MS15); [javac] ^ wait a bit ,im going to tell u something :D
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 Take a look at this switch(quakeSystem) { case 4: ExShowScreenMessage case4 = new ExShowScreenMessage("You reached 4 kills in a row!", 10000); sendPacket(case4); Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS4); break; case 7: ExShowScreenMessage case7 = new ExShowScreenMessage("You reached 7 kills in a row", 10000); sendPacket(case7); Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS7); break; but if i replace with this ,it will work just fine and no more multiple markers error ,compile will work just fine switch(quakeSystem) { case 4: Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!"); break; case 6: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage!"); break; case 8: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree!"); break; case 10: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill!"); break; case 12: Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable!"); break; case 14: Announcements.getInstance().announceToAll("" + this.getName()+ " is on an Ultra Kill!"); break; case 16: Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike"); break; case 18: Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick!"); break; case 20: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ludricrous Kill!"); break; case 24: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit!"); default: ; The problem is ExShowScreenMessage
0 ^Wyatt Posted September 2, 2013 Posted September 2, 2013 Just delete your switch, all. And use this switch(quakeSystem) { case 4: ExShowScreenMessage case4 = new ExShowScreenMessage("You reached 4 kills in a row!", 10000); sendPacket(case4); Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS4); break; case 7: ExShowScreenMessage case7 = new ExShowScreenMessage("You reached 7 kills in a row", 10000); sendPacket(case7); Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS7); break; case 10: ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 kills in a row", 10000); sendPacket(case10); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage! [10]"); MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS10); break; case 15: ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 kills in a row", 10000); sendPacket(case15); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]"); MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS15); break; case 20: ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 kills in a row", 10000); sendPacket(case20); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill! [20]"); MagicSkillUse MS20 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS20); break; case 25: ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 kills in a row", 10000); sendPacket(case25); Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable! [25]"); MagicSkillUse MS25 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS25); break; case 30: ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 kills in a row", 10000); sendPacket(case30); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ultra Kill! [30]"); MagicSkillUse MS30 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS30); break; case 35: ExShowScreenMessage case35 = new ExShowScreenMessage("You reached 35 kills in a row", 10000); sendPacket(case35); Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike! [35]"); MagicSkillUse MS35 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS35); break; case 40: ExShowScreenMessage case40 = new ExShowScreenMessage("You reached 40 kills in a row", 10000); sendPacket(case40); Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick! [40]"); MagicSkillUse MS40 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS40); break; case 50: ExShowScreenMessage case50 = new ExShowScreenMessage("You reached 50 kills in a row]", 10000); sendPacket(case50); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit! [50]"); MagicSkillUse MS50 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS50); break; case 60: ExShowScreenMessage case60 = new ExShowScreenMessage("You reached 60 kills in a row", 10000); sendPacket(case60); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a feeding spree (kidding) [60]!"); MagicSkillUse MS60 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS60); break; case 70: ExShowScreenMessage case70 = new ExShowScreenMessage("You reached 70 kills in a row", 10000); sendPacket(case70); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is really feeding ? Someone go get him! [70]"); MagicSkillUse MS70 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS70); break; case 80: ExShowScreenMessage case80 = new ExShowScreenMessage("You reached 80 kills in a row", 10000); sendPacket(case80); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy wasnt feeding! He's f**king pro gamer! [80]"); MagicSkillUse MS80 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS80); break; case 90: ExShowScreenMessage case90 = new ExShowScreenMessage("You reached 90 kills in a row", 10000); sendPacket(case90); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is becoming a legend! [90]"); MagicSkillUse MS90 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS90); break; case 100: ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row LOL?", 10000); sendPacket(case100); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy! [100]"); MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS100); break; default: ExShowScreenMessage case110 = new ExShowScreenMessage("You reached 110 kills in a row", 10000); sendPacket(case110); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy"); MagicSkillUse MS110 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!"); sendPacket(MS110); break; }
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 what you have showed me ,is the same bugged code ive used before btw the end is ,is similar to the working code except ExShowScreenMessage and *setcurrentcp blabla added* and ive told u compile error + about markers case 90: ExShowScreenMessage case90 = new ExShowScreenMessage("You reached 90 kills in a row", 10000); sendPacket(case90); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is becoming a legend! [90]"); MagicSkillUse MS90 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS90); break; case 100: ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row LOL?", 10000); sendPacket(case100); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy! [100]"); MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS100); default: ; }
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 Im going to repeat and make my self CLEAR this time because i think ive just complicated you ,now here to understand exactly whats going on Working code: switch(quakeSystem) { case 4: Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!"); break; case 6: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage!"); break; case 8: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree!"); break; case 10: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill!"); break; case 12: Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable!"); break; case 14: Announcements.getInstance().announceToAll("" + this.getName()+ " is on an Ultra Kill!"); break; case 16: Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike"); break; case 18: Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick!"); break; case 20: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ludricrous Kill!"); break; case 24: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit!"); default: ; Code that doesnt work: switch(quakeSystem) { case 4: ExShowScreenMessage case4 = new ExShowScreenMessage("You reached 4 kills in a row!", 10000); sendPacket(case4); Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS4); break; case 7: ExShowScreenMessage case7 = new ExShowScreenMessage("You reached 7 kills in a row", 10000); sendPacket(case7); Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS7); break; case 10: ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 kills in a row", 10000); sendPacket(case10); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage! [10]"); MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS10); break; case 15: ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 kills in a row", 10000); sendPacket(case15); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]"); MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS15); break; case 20: ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 kills in a row", 10000); sendPacket(case20); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill! [20]"); MagicSkillUse MS20 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS20); break; case 25: ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 kills in a row", 10000); sendPacket(case25); Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable! [25]"); MagicSkillUse MS25 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS25); break; case 30: ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 kills in a row", 10000); sendPacket(case30); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ultra Kill! [30]"); MagicSkillUse MS30 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS30); break; case 35: ExShowScreenMessage case35 = new ExShowScreenMessage("You reached 35 kills in a row", 10000); sendPacket(case35); Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike! [35]"); MagicSkillUse MS35 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS35); break; case 40: ExShowScreenMessage case40 = new ExShowScreenMessage("You reached 40 kills in a row", 10000); sendPacket(case40); Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick! [40]"); MagicSkillUse MS40 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS40); break; case 50: ExShowScreenMessage case50 = new ExShowScreenMessage("You reached 50 kills in a row]", 10000); sendPacket(case50); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit! [50]"); MagicSkillUse MS50 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS50); break; case 60: ExShowScreenMessage case60 = new ExShowScreenMessage("You reached 60 kills in a row", 10000); sendPacket(case60); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a feeding spree (kidding) [60]!"); MagicSkillUse MS60 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS60); break; case 70: ExShowScreenMessage case70 = new ExShowScreenMessage("You reached 70 kills in a row", 10000); sendPacket(case70); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is really feeding ? Someone go get him! [70]"); MagicSkillUse MS70 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS70); break; case 80: ExShowScreenMessage case80 = new ExShowScreenMessage("You reached 80 kills in a row", 10000); sendPacket(case80); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy wasnt feeding! He's f**king pro gamer! [80]"); MagicSkillUse MS80 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS80); break; case 90: ExShowScreenMessage case90 = new ExShowScreenMessage("You reached 90 kills in a row", 10000); sendPacket(case90); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is becoming a legend! [90]"); MagicSkillUse MS90 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS90); break; case 100: ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row LOL?", 10000); sendPacket(case100); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy! [100]"); MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS100); default: ; } OK OK OK WAIT ,THERE IS SOMETHING WRONG, ive just put the working code and now it wont work anymore lol
0 ^Wyatt Posted September 2, 2013 Posted September 2, 2013 Bro what i posted to you is working, I checked in my eclipse, please, is not the same. This Just delete your switch, all. And use this switch(quakeSystem) { case 4: ExShowScreenMessage case4 = new ExShowScreenMessage("You reached 4 kills in a row!", 10000); sendPacket(case4); Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS4); break; case 7: ExShowScreenMessage case7 = new ExShowScreenMessage("You reached 7 kills in a row", 10000); sendPacket(case7); Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS7); break; case 10: ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 kills in a row", 10000); sendPacket(case10); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage! [10]"); MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS10); break; case 15: ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 kills in a row", 10000); sendPacket(case15); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]"); MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS15); break; case 20: ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 kills in a row", 10000); sendPacket(case20); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill! [20]"); MagicSkillUse MS20 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS20); break; case 25: ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 kills in a row", 10000); sendPacket(case25); Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable! [25]"); MagicSkillUse MS25 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS25); break; case 30: ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 kills in a row", 10000); sendPacket(case30); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ultra Kill! [30]"); MagicSkillUse MS30 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS30); break; case 35: ExShowScreenMessage case35 = new ExShowScreenMessage("You reached 35 kills in a row", 10000); sendPacket(case35); Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike! [35]"); MagicSkillUse MS35 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS35); break; case 40: ExShowScreenMessage case40 = new ExShowScreenMessage("You reached 40 kills in a row", 10000); sendPacket(case40); Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick! [40]"); MagicSkillUse MS40 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS40); break; case 50: ExShowScreenMessage case50 = new ExShowScreenMessage("You reached 50 kills in a row]", 10000); sendPacket(case50); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit! [50]"); MagicSkillUse MS50 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS50); break; case 60: ExShowScreenMessage case60 = new ExShowScreenMessage("You reached 60 kills in a row", 10000); sendPacket(case60); Announcements.getInstance().announceToAll("" + this.getName()+ " is on a feeding spree (kidding) [60]!"); MagicSkillUse MS60 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS60); break; case 70: ExShowScreenMessage case70 = new ExShowScreenMessage("You reached 70 kills in a row", 10000); sendPacket(case70); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is really feeding ? Someone go get him! [70]"); MagicSkillUse MS70 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS70); break; case 80: ExShowScreenMessage case80 = new ExShowScreenMessage("You reached 80 kills in a row", 10000); sendPacket(case80); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy wasnt feeding! He's f**king pro gamer! [80]"); MagicSkillUse MS80 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS80); break; case 90: ExShowScreenMessage case90 = new ExShowScreenMessage("You reached 90 kills in a row", 10000); sendPacket(case90); Announcements.getInstance().announceToAll("" + this.getName()+ " This guy is becoming a legend! [90]"); MagicSkillUse MS90 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS90); break; case 100: ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row LOL?", 10000); sendPacket(case100); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy! [100]"); MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendPacket(MS100); break; default: ExShowScreenMessage case110 = new ExShowScreenMessage("You reached 110 kills in a row", 10000); sendPacket(case110); Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy"); MagicSkillUse MS110 = new MagicSkillUse (this, this, 721, 1, 5, 0); setCurrentCp(getMaxCp()); setCurrentHp(getMaxHp()); setCurrentMp(getMaxMp()); sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!"); sendPacket(MS110); break; }
0 Karasu Posted September 2, 2013 Author Posted September 2, 2013 and the error was Buildfile: C:\workspace new\L2J_Server\build.xml clean: [delete] Deleting directory C:\workspace new\L2J_Server\build checkRequirements: getChangelogDateVersion: init: [mkdir] Created dir: C:\workspace new\L2J_Server\build [mkdir] Created dir: C:\workspace new\L2J_Server\build\classes compile: [javac] Compiling 1522 source files to C:\workspace new\L2J_Server\build\classes [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5490: error: <identifier> expected [javac] quakeSystem = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: illegal start of type [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: ';' expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: illegal start of type [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: <identifier> expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5491: error: ';' expected [javac] else if (isAffected(CharEffectList.EFFECT_FLAG_CHARM_OF_COURAGE) && this.isInSiege()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5495: error: illegal start of type [javac] return true; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5495: error: ';' expected [javac] return true; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5498: error: class, interface, or enum expected [javac] private void onDieDropItem(L2Character killer) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5503: error: class, interface, or enum expected [javac] L2PcInstance pk = killer.getActingPlayer(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5504: error: class, interface, or enum expected [javac] if (getKarma() <= 0 && pk != null [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5513: error: class, interface, or enum expected [javac] if ((!isInsideZone(ZONE_PVP) || pk == null) && (!isGM() || Config.KARMA_DROP_GM)) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5516: error: class, interface, or enum expected [javac] boolean isKillerNpc = (killer instanceof L2Npc); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5517: error: class, interface, or enum expected [javac] int pkLimit = Config.KARMA_PK_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5519: error: class, interface, or enum expected [javac] int dropEquip = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5520: error: class, interface, or enum expected [javac] int dropEquipWeapon = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5521: error: class, interface, or enum expected [javac] int dropItem = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5522: error: class, interface, or enum expected [javac] int dropLimit = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5523: error: class, interface, or enum expected [javac] int dropPercent = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5525: error: class, interface, or enum expected [javac] if (getKarma() > 0 && getPkKills() >= pkLimit) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5528: error: class, interface, or enum expected [javac] dropPercent = Config.KARMA_RATE_DROP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5529: error: class, interface, or enum expected [javac] dropEquip = Config.KARMA_RATE_DROP_EQUIP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5530: error: class, interface, or enum expected [javac] dropEquipWeapon = Config.KARMA_RATE_DROP_EQUIP_WEAPON; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5531: error: class, interface, or enum expected [javac] dropItem = Config.KARMA_RATE_DROP_ITEM; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5532: error: class, interface, or enum expected [javac] dropLimit = Config.KARMA_DROP_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5533: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5537: error: class, interface, or enum expected [javac] dropEquip = Config.PLAYER_RATE_DROP_EQUIP; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5538: error: class, interface, or enum expected [javac] dropEquipWeapon = Config.PLAYER_RATE_DROP_EQUIP_WEAPON; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5539: error: class, interface, or enum expected [javac] dropItem = Config.PLAYER_RATE_DROP_ITEM; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5540: error: class, interface, or enum expected [javac] dropLimit = Config.PLAYER_DROP_LIMIT; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5541: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5547: error: class, interface, or enum expected [javac] int itemDropPercent = 0; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5549: error: class, interface, or enum expected [javac] for (L2ItemInstance itemDrop : getInventory().getItems()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5563: error: class, interface, or enum expected [javac] if (itemDrop.isEquipped()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5567: error: class, interface, or enum expected [javac] getInventory().unEquipItemInSlot(itemDrop.getLocationSlot()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5568: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5572: error: class, interface, or enum expected [javac] if (Rnd.get(100) < itemDropPercent) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5576: error: class, interface, or enum expected [javac] if (isKarmaDrop) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5578: error: class, interface, or enum expected [javac] else [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5581: error: class, interface, or enum expected [javac] if (++dropCount >= dropLimit) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5583: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5598: error: class, interface, or enum expected [javac] karmaLost *= getLevel(); // multiply by char lvl [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5599: error: class, interface, or enum expected [javac] karmaLost *= (getLevel() / 100.0); // divide by 0.charLVL [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5600: error: class, interface, or enum expected [javac] karmaLost = Math.round(karmaLost); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5601: error: class, interface, or enum expected [javac] if ( karmaLost < 0 ) karmaLost = 1; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5604: error: class, interface, or enum expected [javac] setKarma(getKarma() - (int)karmaLost); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5605: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5608: error: class, interface, or enum expected [javac] public void onKillUpdatePvPKarma(L2Character target) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5611: error: class, interface, or enum expected [javac] if (!(target instanceof L2Playable)) return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5613: error: class, interface, or enum expected [javac] L2PcInstance targetPlayer = target.getActingPlayer(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5615: error: class, interface, or enum expected [javac] if (targetPlayer == null) return; // Target player is null [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5616: error: class, interface, or enum expected [javac] if (targetPlayer == this) return; // Target player is self [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5618: error: class, interface, or enum expected [javac] if (isCursedWeaponEquipped()) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5628: error: class, interface, or enum expected [javac] return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5629: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5635: error: class, interface, or enum expected [javac] if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP)) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5639: error: class, interface, or enum expected [javac] if ( [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5650: error: class, interface, or enum expected [javac] else [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5662: error: class, interface, or enum expected [javac] return; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5663: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5670: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5675: error: class, interface, or enum expected [javac] checkItemRestriction(); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5676: error: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5684: error: class, interface, or enum expected [javac] public void increasePvpKills(L2Character target) [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5691: error: class, interface, or enum expected [javac] quakeSystem++; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5693: error: class, interface, or enum expected [javac] switch(quakeSystem) { [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5696: error: class, interface, or enum expected [javac] sendPacket(case4); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5697: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started! [4]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5698: error: class, interface, or enum expected [javac] MagicSkillUse MS4 = new MagicSkillUse (this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5699: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5700: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5701: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5702: error: class, interface, or enum expected [javac] sendPacket(MS4); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5703: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5704: error: class, interface, or enum expected [javac] case 7: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5706: error: class, interface, or enum expected [javac] sendPacket(case7); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5707: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating! [7]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5708: error: class, interface, or enum expected [javac] MagicSkillUse MS7 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5709: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5710: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5711: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5712: error: class, interface, or enum expected [javac] sendPacket(MS7); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5713: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5714: error: class, interface, or enum expected [javac] case 10: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5716: error: class, interface, or enum expected [javac] sendPacket(case10); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5717: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage! [10]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5718: error: class, interface, or enum expected [javac] MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5719: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5720: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5721: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5722: error: class, interface, or enum expected [javac] sendPacket(MS10); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5723: error: class, interface, or enum expected [javac] break; [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5724: error: class, interface, or enum expected [javac] case 15: [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5726: error: class, interface, or enum expected [javac] sendPacket(case15); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5727: error: class, interface, or enum expected [javac] Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree! [15]"); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5728: error: class, interface, or enum expected [javac] MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5729: error: class, interface, or enum expected [javac] setCurrentCp(getMaxCp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5730: error: class, interface, or enum expected [javac] setCurrentHp(getMaxHp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5731: error: class, interface, or enum expected [javac] setCurrentMp(getMaxMp()); [javac] ^ [javac] C:\workspace new\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5732: error: class, interface, or enum expected [javac] sendPacket(MS15); [javac] ^ [javac] 100 errors BUILD FAILED C:\workspace new\L2J_Server\build.xml:56: Compile failed; see the compiler error output for details. Total time: 16 seconds I am using freya pack btw OK WAIT WAIT ,ive used the working code and it doesnt work anymore, something bugged lol..., Il try to fix this my self first ,and after i implement ur code again il try and reply
Question
Karasu
this is from 1 topic with quake system ;p
ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 kills in a row", 10000);[/code]
it says multiple markers at the same
ExShowScreenMessage cannot be resolved to a type
whats that suppose to mean? and on compile it gives
21 answers to this question
Recommended Posts