Thread: need help

Results 1 to 5 of 5
  1. #1 need help 
    Registered Member
    Join Date
    Jul 2008
    Age
    30
    Posts
    201
    Thanks given
    0
    Thanks received
    1
    Rep Power
    23
    I have this error when I tried to add magic on npc

    Code:
    Compiling palidino76.rs2.io.packets
    .\palidino76\rs2\player\combat\MagicNPC.java:143: cannot find symbol
    symbol  : method createGlobalProjectile(int,int,int,int,int,int,int,int,int)
    location: class palidino76.rs2.io.Frames
                p.frames.createGlobalProjectile(
                        ^
    1 error
    Druk op een toets om door te gaan. . .
    please help
    Reply With Quote  
     

  2. #2  
    luke zwekii
    Guest
    Add this in your Frames.java:

    Code:
    /**
         * Creates a Global Projectiles.
         * @param Objectid The Id of the Object to spawn.
         * @param Heigh The Height to spawn the Object on.
         * @param ObjectX The AbsX to spawn the Object on.
         * @param ObjectY The AbsY to spawn the Object on.
         * @param Face The Position for the OBject to face 
         * @param Type Object Type
         * */
        public void createGlobalProjectile(int casterY, int casterX, int offsetY, int offsetX, int gfxMoving, int startHeight, int endHeight, int speed, int atkIndex) {
            for (Player p : Engine.players) {
                if (p == null || p.disconnected[0]) {
                    continue;
                }
                // createProjectile(p, casterY, casterX, offsetY, offsetX, angle, speed, gfxMoving, startHeight, endHeight, lockon)
                p.frames.createProjectile(p, casterY, casterX, offsetY, offsetX, 50,
                        speed, gfxMoving, startHeight, endHeight, atkIndex);
            }
        }
    Reply With Quote  
     

  3. #3  
    Registered Member Glabay's Avatar
    Join Date
    Jul 2008
    Age
    33
    Posts
    1,301
    Thanks given
    261
    Thanks received
    105
    Rep Power
    595
    looking at his error, he didn't finish his statement, its just left at

    p.frames.createGlobalProjectile(
    Reply With Quote  
     

  4. #4  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,466
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    hi glabay owned
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2008
    Age
    30
    Posts
    201
    Thanks given
    0
    Thanks received
    1
    Rep Power
    23
    dude... this is my code

    Code:
    public void createProjectile(int npcId, int spellId) {
            int offsetX = (p.absX - npcById(npcId).absX) * -1;
            int offsetY = (p.absY - npcById(npcId).absY) * -1;
    
            if (npcById(npcId) != null) {
                p.frames.createGlobalProjectile(
                        p.absY, p.absX, offsetY, offsetX,
                        getProjectile(spellId), 43, 31, 80, npcId);
            }
        }
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •