Thread: A simple problem

Results 1 to 3 of 3
  1. #1 A simple problem 
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    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?
    ©®
    Reply With Quote  
     

  2. #2  
    Member A simple problem Market Banned

    Join Date
    May 2011
    Age
    29
    Posts
    414
    Thanks given
    16
    Thanks received
    44
    Rep Power
    56
    Add me on msn > [email protected]

    I teamviewer you.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    invited.
    ©®
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI]Simple Problem
    By xxd1v1negodxx in forum Help
    Replies: 10
    Last Post: 06-16-2011, 08:58 PM
  2. [PI]simple problem:S
    By xxd1v1negodxx in forum Help
    Replies: 6
    Last Post: 06-15-2011, 12:49 PM
  3. Simple Problem
    By SilentZPrO in forum Help
    Replies: 5
    Last Post: 12-30-2010, 12:44 AM
  4. 614 Simple Problem?
    By AceKingSuited in forum Help
    Replies: 0
    Last Post: 10-06-2010, 04:52 PM
  5. [PI] Quite A Simple Problem
    By Hustle in forum Help
    Replies: 2
    Last Post: 09-20-2010, 07:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •