Thread: Nooby error while trying to add Snowglobe

Results 1 to 8 of 8
  1. #1 Nooby error while trying to add Snowglobe 
    Unstoppable
    Guest
    Code:
    Compiling palidino76.rs2.util
    Compiling palidino76.rs2.world.mapdata
    Compiling palidino76.rs2.world.items
    .\palidino76\rs2\io\packets\ActionButtons.java:80: cannot find symbol
    symbol  : method createGlobalObject(int,int,int,int,int,int)
    location: class palidino76.rs2.io.Frames
    p.frames.createGlobalObject(28297, p.heightLevel, p.absX, p.absY, 0, 10);
            ^
    .\palidino76\rs2\io\packets\ActionButtons.java:81: cannot find symbol
    symbol  : method createGlobalObject(int,int,int,int,int,int)
    location: class palidino76.rs2.io.Frames
    p.frames.createGlobalObject(28297, p.heightLevel, p.absX - 1, p.absY + 2, 0, 10)
    ;
            ^
    .\palidino76\rs2\io\packets\ActionButtons.java:82: cannot find symbol
    symbol  : method createGlobalObject(int,int,int,int,int,int)
    location: class palidino76.rs2.io.Frames
    p.frames.createGlobalObject(28297, p.heightLevel, p.absX + 2, p.absY - 1, 0, 10)
    ;
            ^
    3 errors
    Press any key to continue . . .
    errr....plz help?
    Reply With Quote  
     

  2. #2  
    Meh. I can't code.

    Soulevoker's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    1,198
    Thanks given
    5
    Thanks received
    6
    Rep Power
    137
    Did you import frames?

    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2009
    Posts
    554
    Thanks given
    7
    Thanks received
    19
    Rep Power
    340
    Replace
    Code:
    p.frames.createGlobalObject(28297, p.heightLevel, p.absX, p.absY, 0, 10);
    With
    Code:
    p.frames.addStaticObject(28297, p.heightLevel, p.absX, p.absY, 0, 10);
    Enjoy,
    ~Abyssal
    Reply With Quote  
     

  4. #4  
    Registered Member
    ~Josh's Avatar
    Join Date
    Mar 2008
    Age
    28
    Posts
    542
    Thanks given
    0
    Thanks received
    16
    Rep Power
    278
    He doesn't need to, because the p. leads it to frames from the player class

    is that method in frames?

    Is player.java imported?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2009
    Posts
    554
    Thanks given
    7
    Thanks received
    19
    Rep Power
    340
    Exactly what I'm saying, The frames class uses addStaticObject... not addGlobalObject.

    ~Abyssal
    Reply With Quote  
     

  6. #6  
    Meh. I can't code.

    Soulevoker's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    1,198
    Thanks given
    5
    Thanks received
    6
    Rep Power
    137
    Actually change add to create.
    Code:
    
    /**
    * Creates a GlobalObject.
    * @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 createGlobalObject(int objectId, int height, int objectX, int objectY, int face, int type) {
    for (Player p : Engine.players) {
    if (p == null) {
    continue;
    }
    createObject(p, objectId, height, objectX, objectY, face, type);
    }
    }

    Reply With Quote  
     

  7. #7  
    Unstoppable
    Guest
    Quote Originally Posted by 'Abyssal View Post
    Replace
    Code:
    p.frames.createGlobalObject(28297, p.heightLevel, p.absX, p.absY, 0, 10);
    With
    Code:
    p.frames.addStaticObject(28297, p.heightLevel, p.absX, p.absY, 0, 10);
    Enjoy,
    ~Abyssal
    added this,outcome: no errors,i can shake the snowglobe but i dont get snow in inventory,i spawned a snowball and saw i cant throw it at players

    EDIT:added what Goodoo Dolls said and i get same error
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2009
    Posts
    554
    Thanks given
    7
    Thanks received
    19
    Rep Power
    340
    Quote Originally Posted by Unstoppable View Post
    added this,outcome: no errors,i can shake the snowglobe but i dont get snow in inventory,i spawned a snowball and saw i cant throw it at players
    You never said anything about snow appearing in inventory, or throwing it at players.

    You asked about spawning an object. They are all very different things.

    ~Abyssal
    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
  •