Thread: Delta newobjects void

Results 1 to 2 of 2
  1. #1 Delta newobjects void 
    Registered Member
    Join Date
    Nov 2008
    Posts
    127
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Code:
    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 void NewObjects() {
    	       makeGlobalObject(3212, 3422, 6552, 0, 10);
    
    	}

    No errors or anything. I copyed the newobjects void off deltascape but still no altar at the coords. Devolution 9.3 base.
     

  2. #2  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    search for case 121, add under it NewObjects(); ?

    btw change public void NewObjects() {
    to newObjects() {

    because methods should start with a klowercase
    not to flame you or something just, i want people learn something
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •