I know the solution to this is extremely simple. Yet i am kinda slow..
So i have a class. Let's call it Nex.java and in that class i have this import which is to add a method.
Code:
int gfx = spell.getEndGfx();
Yep that simple enough. Now in spell.java in another directory i have....
Code:
ublic class Spell {
public int autocastConfig;
public int castAnim;
public int castGfx;
public int castHeight;
public boolean drainsAtt;
public boolean drainsHP;
public int endGfx;
public int endHeight;
public int freezeTime;
public int interfaceId;
public int maxHit;
public int maxPoison;
public boolean multi;
public int projectileId;
public int reqLvl;
public Item[] requiredRunes;
public int spellId;
public String spellName;
public int staffId;
public double xp;
public boolean drainsHP() {
return drainsHP;
}
public int getAutocastConfig() {
return autocastConfig;
}
public int getCastAnim() {
return castAnim;
}
public int getCastGfx() {
return castGfx;
}
public int getCastHeight() {
return castHeight;
}
public int getEndGfx() {
return endGfx;
}
Atm I am focusing on the one in red.
now i add the import in nex.java
Code:
import org.ruqiem.content.skills.magic.Spell;
yep.
now compiling i get this
Code:
Compiling RS2Server...
Compiling World...
Compiling handlers......
Compiling io
Compiling Player
Compiling Packetz
Compiling Content.Misc
Compiling Gwds
src\org\ruqiem\model\npc\impl\godwars\Nex.java:71: cannot find symbol
symbol : variable spell
location: class org.ruqiem.model.npc.impl.godwars.Nex.NexCombatAction
int gfx = spell.getEndGfx();
^
1 error
Complete
Press any key to continue . . .
any ideas?