zourass Posted April 9, 2012 Posted April 9, 2012 + + setIsParalyzed(false); + stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1); + sendMessage("You are unparalized."); i have an error ABNORMAL_EFFECT_HOLD_1);cannot be resolved or is not at field Quote
0 Zoey76 Posted April 9, 2012 Posted April 9, 2012 stopAbnormalEffect(AbnormalEffect.HOLD_1); // Add import if its missing. Quote
0 zourass Posted April 9, 2012 Author Posted April 9, 2012 Hey Zoey76 as you see iam realy newbiew What you mean add import? Quote
0 Zoey76 Posted April 10, 2012 Posted April 10, 2012 If the line: import com.l2jserver.gameserver.model.effects.AbnormalEffect; is missing you will get an error, "adding the missing import" means copy/paste that line into import definition area, between pakage declaration and class declaration. If it's already there you won't get an error and you may ignore the comment. Quote
0 zourass Posted April 10, 2012 Author Posted April 10, 2012 ok thnx for your help and your time ;) Quote
0 zourass Posted April 10, 2012 Author Posted April 10, 2012 pakage declaration and class declaration. where exactly ? Description Resource Path Location Type ABNORMAL_EFFECT_HOLD_1 cannot be resolved or is not a field L2PcInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 10619 Java Problem Description Resource Path Location Type ABNORMAL_EFFECT_HOLD_1 cannot be resolved or is not a field L2PcInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 10690 Java Problem if (getSubClasses().containsKey(classIndex)) return false; startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1); <<ERROR>> setIsParalyzed(true); sendMessage("You are paralized untill your subclass load."); if (Config.DEBUG) _log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class."); setIsParalyzed(false); stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1); <<ERROR>> sendMessage("You are unparalized."); return true; Quote
0 zourass Posted April 10, 2012 Author Posted April 10, 2012 On 4/10/2012 at 3:44 AM, Zoey76 said: If the line: import com.l2jserver.gameserver.model.effects.AbnormalEffect; is missing you will get an error, "adding the missing import" means copy/paste that line into import definition area, between pakage declaration and class declaration. If it's already there you won't get an error and you may ignore the comment. where i must put the imports wich line ? Quote
0 bullseye92 Posted April 11, 2012 Posted April 11, 2012 its the same in all programming.U define imports or libraries at the start of a code.such us #include <stdio.h> which stands for C or #include <iostream.h> for C++.Java u just import the "libraries"so you dont have to write the whole code again and again.Its like calling a code from somewhere as u do with desktop shortcuts.Example: import net.sf.l2j.gameserver.instancemanager.RaidBossPointsManager; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.actor.L2Summon; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.Earthquake; import net.sf.l2j.gameserver.network.serverpackets.ExRedSky; import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; import net.sf.l2j.gameserver.util.Broadcast; import net.sf.l2j.util.Rnd; // RedSky and Earthquake and Announcement ExRedSky packet = new ExRedSky(10); Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3); Broadcast.toAllOnlinePlayers(packet); Broadcast.toAllOnlinePlayers(eq); Broadcast.announceToOnlinePlayers(super.getName()+ " has been killed."); This code doesnt work but just to give u to understand where the imports are.Always look at the start of every java.If u dont see the imports press the + which is included in a circle button to actualy access more code which is compressed inside that "+".If u still got problem getting the imports tell me what i said wrong Quote
0 zourass Posted April 11, 2012 Author Posted April 11, 2012 import net.sf.l2j.gameserver.instancemanager.RaidBossPointsManager; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.actor.L2Summon; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.Earthquake; import net.sf.l2j.gameserver.network.serverpackets.ExRedSky; import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; import net.sf.l2j.gameserver.util.Broadcast; import net.sf.l2j.util.Rnd; If i understood correctly i must put here the imports right? if missing Quote
0 bullseye92 Posted April 11, 2012 Posted April 11, 2012 Yeah u have insert at that point any import that may miss from the code u have.What i gave up was a total random code.If u want me me the code so i can understand better. Quote
0 zourass Posted April 11, 2012 Author Posted April 11, 2012 Nothing i add Imports same error :/ Quote
0 xdem Posted April 15, 2012 Posted April 15, 2012 Show as the full code pls, its not imports problem, tell us witch file it is. And what you want to make Quote
0 zourass Posted April 15, 2012 Author Posted April 15, 2012 mate now i have big problem i cant compile :/ Quote
0 Tryskell Posted April 15, 2012 Posted April 15, 2012 ctrl+shift+O to correct imports... Btw verify where are stored effects (you try to read from L2Character...) and if effect named ABNORMAL_EFFECT_HOLD_1 simply exists... Quote
Question
zourass
+
+ setIsParalyzed(false);
+ stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+ sendMessage("You are unparalized.");
i have an error ABNORMAL_EFFECT_HOLD_1);cannot be resolved or is not at field
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.