Thread: WhiteScape Global Objects

Results 1 to 3 of 3
  1. #1 WhiteScape Global Objects 
    Registered Member Santa Noobie's Avatar
    Join Date
    Jan 2007
    Posts
    481
    Thanks given
    0
    Thanks received
    0
    Rep Power
    26
    O.o

    Purpose: For Adding Objects To WhiteScape

    Hardness!?: 2-10 Adding Void'z O.o

    Server Base: WhiteScape

    Alrighty.. O.o

    I am Making a Server and i Wannted to add Objects and I Just Hadded to Add Some Voids.. And Here You go WhiteScape Fans.. I Was Bored.. Okay!?!?

    First Add These Void'z..

    Void'z:


    Code:
    //Object'z By hi123
    public void makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType){ //Makes Global objects
    		for (Player p : server.playerHandler.players){
    			if(p != null){
    				client person = (client)p;
    			if((person.playerName != null || person.playerName != "null")){
    				if(person.distanceToPoint(x, y) <= 60){
    					person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
    				}
    			}
    		}
    	}
    	}
    	public int distanceTo(Player other) {
            return (int) Math.sqrt(Math.pow(absX - other.absX, 2) + Math.pow(absY - other.absY, 2));
        }public int distanceToPoint(int pointX,int pointY) {
            return (int) Math.sqrt(Math.pow(absX - pointX, 2) + Math.pow(absY - pointY, 2));
        }
    
          
    	public void createNewTileObject(int x, int y, int typeID, int orientation, int tileObjectType)
    	{
    		outStream.createFrame(85);
                    outStream.writeByteC(y - (mapRegionY * 8)); 
                    outStream.writeByteC(x - (mapRegionX * 8)); 
    
    		outStream.createFrame(151);
    		//outStream.writeByteA(((x&7) << 4) + (y&7));
                    outStream.writeByteA(0);
    		outStream.writeWordBigEndian(typeID);
    		outStream.writeByteS((tileObjectType<<2) +(orientation&3));
    	}
    Then.. Add

    Code:
    public void NewObjects() }
    	       makeGlobalObject(XCOORD, YCOORD, OBJID , 1, 10);
    }
    Add The Objects you Want and Shearch

    Case 121:

    and Above break;

    Add

    Code:
    NewObjects();
    Credit'z : Me and Fedexer For Global Object'z

    Oh Yeah.. Post Any Error'z..

    Remeber This is For WhiteSCAPE

    Did anyone else think this is a Cig or J
    <-- Rep If you support!
     

  2. #2  
    Banned
    Join Date
    Jul 2006
    Age
    30
    Posts
    281
    Thanks given
    2
    Thanks received
    2
    Rep Power
    0
    Im sure you can just add any other global object tut to whitescape... , uve pretty much just leached this man...?
     

  3. #3  
    Member
    Boomer's Avatar
    Join Date
    Sep 2006
    Posts
    1,282
    Thanks given
    309
    Thanks received
    795
    Rep Power
    1111
    Nothing new..


    [Only registered and activated users can see links. ] ||| FightScape | InnerFantasy | PkIsle | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]
     


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. 562 global objects
    By lt gangster in forum Help
    Replies: 1
    Last Post: 10-12-2010, 01:42 AM
  2. [PI] Global Objects
    By Mrthunder23 in forum Help
    Replies: 5
    Last Post: 06-27-2010, 01:21 AM
  3. Global objects...
    By beta_ in forum Help
    Replies: 19
    Last Post: 07-25-2009, 06:29 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
  •