Thread: PI - Map/area help - PI

Results 1 to 4 of 4
  1. #1 PI - Map/area help - PI 
    Registered Member
    Join Date
    Jul 2010
    Posts
    41
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey guys,

    Im doing a very basic construction system on my PI source just for some fun...

    I want it NOT to display other players on the map region you are at, Ideally being specific coords of a certain area (I hope I have explained this okay ). I know this is possible, but due to me be fairly new to this I have no idea how easy/difficult it is.

    I appreciate all helpful comments.

    THANKS
     

  2. #2  
    Registered Member
    Join Date
    Jul 2010
    Posts
    41
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    bump - Please help, very much appreciated THANKS
     

  3. #3  
    arrowzftw
    Guest
    Add this method:

    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));
    		}
    	}
    Instead of create object use this....

    Usage:

    ReplaceObject(X coord, Y coord, ObjectID, What way is it facing (0 for default), 10);
     

  4. #4  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
     


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. Pvp area [pi]
    By Mark in forum Help
    Replies: 22
    Last Post: 12-07-2015, 12:11 AM
  2. Replies: 5
    Last Post: 05-01-2011, 08:25 AM
  3. PI pvp area
    By iamproto in forum Help
    Replies: 0
    Last Post: 10-29-2010, 02:30 PM
  4. Sin/Cos/Tan Area
    By O____O in forum Homework
    Replies: 1
    Last Post: 05-12-2010, 07:15 AM
  5. New PK area
    By Eternal Darknes in forum Tutorials
    Replies: 13
    Last Post: 05-30-2008, 09:54 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
  •