Thread: [PI] Deleting an object WON'T DELETE!

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [PI] Deleting an object WON'T DELETE! 
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    I'm trying to delete the "gates" in front of Camelot Castle, and for some reason it's not working.

    Code:
    c.getPA().checkObjectSpawn(-1, 2758, 3482, 1, 10);
    I'm not sure why, can anyone help me?
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2008
    Posts
    384
    Thanks given
    30
    Thanks received
    26
    Rep Power
    0
    wrong tile, wrong type of object, fucked up method..

    I'm pretty sure it is one of those three...
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by billygotshot View Post
    wrong tile, wrong type of object, fucked up method..

    I'm pretty sure it is one of those three...
    I know for a fact it's not the wrong tile.

    I guess it's the method. o.O
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2010
    Posts
    102
    Thanks given
    4
    Thanks received
    1
    Rep Power
    1
    is the method your looking for not RemoveObject?
    Reply With Quote  
     

  5. #5  
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by NathanCoder View Post
    is the method your looking for not RemoveObject?
    Well, it works for every other object besides the gates.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Feb 2008
    Posts
    384
    Thanks given
    30
    Thanks received
    26
    Rep Power
    0
    Quote Originally Posted by Justin_ View Post
    Well, it works for every other object besides the gates.
    maybe its the type of object? doors are a different type then almost all the other objects I think. been a while since I looked into this stuff
    Reply With Quote  
     

  7. #7  
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Could I just make an if statement declaring that that certain gate ID get's converted to another ID?
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jun 2008
    Age
    24
    Posts
    2,313
    Thanks given
    485
    Thanks received
    231
    Rep Power
    0
    i think the object type may be different
    Reply With Quote  
     

  9. #9  
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Jinrake View Post
    i think the object type may be different
    So how would I go through with deleting this?

    Trying not to be spoon fed, but it's a bit hard.
    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    Jul 2010
    Posts
    78
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    I've found the if statement that replaces the object. Is there something like this in PI?

    Code:
    public void ReplaceObject(int objectX, int objectY, int NewObjectID,
                int Face, int ObjectType) {
            outStream.createFrame(85);
            outStream.writeByteC(objectY - (mapRegionY * 8));
            outStream.writeByteC(objectX - (mapRegionX * 8));
    
            outStream.createFrame(101);
            outStream.writeByteC((ObjectType << 2) + (Face & 3));
            outStream.writeByte(0);
    
            if (NewObjectID != -1) {
                outStream.createFrame(151);
                outStream.writeByteS(0);
                outStream.writeWordBigEndian(NewObjectID);
                outStream.writeByteS((ObjectType << 2) + (Face & 3));
                // FACE: 0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
                // ObjectType: 0-3 wall objects, 4-8 wall decoration, 9: diag.
                // walls, 10-11 world objects, 12-21: roofs, 22: floor decoration
            }
        }
    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. Replies: 176
    Last Post: 06-02-2011, 02:41 AM
  2. Deleting an object
    By mmaKush in forum Help
    Replies: 5
    Last Post: 04-09-2010, 08:48 AM
  3. Deleting an object [508]
    By FreekySteve69 in forum Help
    Replies: 4
    Last Post: 12-07-2009, 12:55 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
  •