Thread: Object spawning

Results 1 to 6 of 6
  1. #1 Object spawning 
    Registered Member
    Join Date
    Nov 2011
    Posts
    53
    Thanks given
    16
    Thanks received
    2
    Rep Power
    11
    I tried to change a few things in npcspawning.java (some objects like altars) and I came up with these 4 errors:
    src\com\rs\utils\NPCSpawning.java:567: error: ')' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: ';' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: not a statement
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: ';' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    4 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Age Of Chaos Developer
    GreekO's Avatar
    Join Date
    Nov 2012
    Posts
    336
    Thanks given
    133
    Thanks received
    22
    Rep Power
    14
    use eclipse that will fix your errors for you.
    Reply With Quote  
     

  3. #3  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    Quote Originally Posted by Nerditupbro View Post
    I tried to change a few things in npcspawning.java (some objects like altars) and I came up with these 4 errors:
    src\com\rs\utils\NPCSpawning.java:567: error: ')' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: ';' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: not a statement
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    src\com\rs\utils\NPCSpawning.java:567: error: ';' expected
    World.spawnObject(new WorldObject(6552, 10, 2, 3083 3496, 4714,
    0), true);
    ^
    4 errors
    Press any key to continue . . .
    You have an extra set of numbers in there. 3083, 3496 and 4714 (Only two of them are suppose to be there and those two you pick are suppose to be coords and separated with a comma.)
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Age Of Chaos Developer
    GreekO's Avatar
    Join Date
    Nov 2012
    Posts
    336
    Thanks given
    133
    Thanks received
    22
    Rep Power
    14
    just like Bandoswhips said,that line of code should look like this with your correct coords and object id.

    World.spawnObject(new WorldObject(409, 10, 0, 2988, 4371, 0), true);
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    (Example out of yours Nerditupbro):
    Code:
    World.spawnObject(new WorldObject(6552, 10, 2, 3496, 3083, 0), true);
    Code:
    World.spawnObject(new WorldObject(6552, 10, 2, 3496, 4714, 0), true);
    Code:
    World.spawnObject(new WorldObject(6552, 10, 2, 3083, 4714, 0), true);
    Not sure which coords are the ones you are looking for but these are examples of what it should look like based off yours and yes, Rhys's is another correct example.
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member
    Join Date
    Nov 2011
    Posts
    53
    Thanks given
    16
    Thanks received
    2
    Rep Power
    11
    Thank's guys, I fixed this along time ago, but I'll bumb it for anybody else needing it.
    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. Object Spawning
    By nathanrr44 in forum Help
    Replies: 4
    Last Post: 03-18-2012, 04:02 PM
  2. Object spawning
    By God in forum Help
    Replies: 2
    Last Post: 07-13-2011, 12:38 AM
  3. Object spawning.
    By Logisti-X in forum Help
    Replies: 5
    Last Post: 12-15-2009, 05:05 PM
  4. Object spawning...
    By Pronyma in forum Help
    Replies: 4
    Last Post: 08-07-2009, 08:59 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •