Thread: [PI] Help with removing objects

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [PI] Help with removing objects 
    Donator
    Will_'s Avatar
    Join Date
    Oct 2013
    Age
    26
    Posts
    153
    Thanks given
    14
    Thanks received
    8
    Rep Power
    11
    What I'm trying to do is remove objects from this room to clear it out for use as a home area. I ran into trouble with this table and the chairs surrounding it.

    Code:
    c.getPA().checkObjectSpawn(-1, 2848, 5100, 0, 2);//Table
    		
    c.getPA().checkObjectSpawn(-1, 2850, 5100, 0, 2);//Chair
    Spoiler for Picture:


    Please, take any hateful comments about how 'easy' this is away from this thread. Everyone starts somewhere, people.
    Reply With Quote  
     

  2. #2  
    Kanketsu
    JacobiYounger's Avatar
    Join Date
    Aug 2009
    Posts
    723
    Thanks given
    49
    Thanks received
    31
    Rep Power
    31
    public void removeObjects() {
    objectToRemove(2638, 4688);
    objectToRemove2(2635, 4693);
    objectToRemove2(2634, 4693);
    objectToRemove2(3215, 3211);
    objectToRemove2(3215, 3225);
    }

    This is what mine looks like in my PlayerAssistant.java
    Reply With Quote  
     

  3. #3  
    Donator
    Will_'s Avatar
    Join Date
    Oct 2013
    Age
    26
    Posts
    153
    Thanks given
    14
    Thanks received
    8
    Rep Power
    11
    Quote Originally Posted by kingsnake190 View Post
    public void removeObjects() {
    objectToRemove(2638, 4688);
    objectToRemove2(2635, 4693);
    objectToRemove2(2634, 4693);
    objectToRemove2(3215, 3211);
    objectToRemove2(3215, 3225);
    }

    This is what mine looks like in my PlayerAssistant.java
    This was in ObjectManager.java, and I don't have that method in PlayerAssistant.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    just add // infront of it?
    Reply With Quote  
     

  5. #5  
    Registered Member iLearnJava's Avatar
    Join Date
    Jul 2013
    Posts
    61
    Thanks given
    17
    Thanks received
    5
    Rep Power
    11
    change " 2 " to "10"

    Code:
    PlayerAssistant.checkObjectSpawn(c, 10517, 3437, 3553, 1, 10);

    You cannot learn without to try...
    Reply With Quote  
     

  6. #6  
    Donator
    Will_'s Avatar
    Join Date
    Oct 2013
    Age
    26
    Posts
    153
    Thanks given
    14
    Thanks received
    8
    Rep Power
    11
    Quote Originally Posted by ipkmills View Post
    just add // infront of it?
    And a comment is going to help me remove an object, how...?

    Quote Originally Posted by Willixel View Post
    This was in ObjectManager.java, and I don't have that method in PlayerAssistant.
    EDIT: Notepad++ was just being stupid. As it turns out, the method is there. Going to attempt it. BRB
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2013
    Posts
    880
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Gotta find the correct coordinates for it. Just because you're on top of it doesn't mean that's the coordinates
    Reply With Quote  
     

  8. #8  
    Registered Member Bowtie's Avatar
    Join Date
    Apr 2012
    Age
    4
    Posts
    284
    Thanks given
    145
    Thanks received
    44
    Rep Power
    25
    Usually, you gotta do the whole table. Like,

    [coords] [coords]
    [coords] [coords]
    [coords] [coords]
    "Resolve never to quit, never to give up, no matter what the situation." - Jack Nicklaus

    Reply With Quote  
     

  9. #9  
    Donator
    Will_'s Avatar
    Join Date
    Oct 2013
    Age
    26
    Posts
    153
    Thanks given
    14
    Thanks received
    8
    Rep Power
    11
    Quote Originally Posted by iLearnJava View Post
    change " 2 " to "10"

    Code:
    PlayerAssistant.checkObjectSpawn(c, 10517, 3437, 3553, 1, 10);
    This worked for the chairs, but not the table. Can you tell me what that is changing? It's like the facetype, right?
    Reply With Quote  
     

  10. #10  
    Donator
    Will_'s Avatar
    Join Date
    Oct 2013
    Age
    26
    Posts
    153
    Thanks given
    14
    Thanks received
    8
    Rep Power
    11
    Quote Originally Posted by Frans View Post
    Usually, you gotta do the whole table. Like,

    [coords] [coords]
    [coords] [coords]
    [coords] [coords]
    You were right. I think I might have lost a few brain cells because I'm so mad I didn't figure that out myself.
    Thanks though.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. need help with removing objects
    By nonononooooooo in forum Help
    Replies: 10
    Last Post: 01-23-2013, 03:44 PM
  2. Replies: 1
    Last Post: 01-08-2013, 05:19 AM
  3. [PI] help with npc detecting and removing an item
    By xdragonlordx in forum Requests
    Replies: 1
    Last Post: 07-25-2012, 05:48 PM
  4. [PI] help with items on object?
    By Frochio in forum Help
    Replies: 4
    Last Post: 06-16-2012, 07:16 AM
  5. [PI/DSPK] need help with adding objects
    By rocky2k10 in forum Help
    Replies: 2
    Last Post: 07-29-2011, 01:25 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
  •