wrong tile, wrong type of object, fucked up method..
I'm pretty sure it is one of those three...
|
|
I'm trying to delete the "gates" in front of Camelot Castle, and for some reason it's not working.
I'm not sure why, can anyone help me?Code:c.getPA().checkObjectSpawn(-1, 2758, 3482, 1, 10);
wrong tile, wrong type of object, fucked up method..
I'm pretty sure it is one of those three...
is the method your looking for not RemoveObject?![]()
Could I just make an if statement declaring that that certain gate ID get's converted to another ID?

i think the object type may be different
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 } }
| « My CLIENT compiler wont work | [PI] Object Dc/Freeze » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |