Thread: 718 object time

Results 1 to 9 of 9
  1. #1 718 object time 
    Registered Member alkharidrsps's Avatar
    Join Date
    Jun 2014
    Posts
    282
    Thanks given
    9
    Thanks received
    4
    Rep Power
    13
    I need to add to the player clicks from 10 to 10 minutes on an object, someone has the command line? By knows where?
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Mar 2009
    Posts
    1,461
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    wat?
    Attached image
    Quote Originally Posted by MaxXi View Post
    Your combat is so awsome that i almost forgot its the combat matrix coded.
    Quote Originally Posted by twobrosplay View Post
    Try allowing the batch file through your firewall?
    Quote Originally Posted by SS_Alophonse View Post
    i have no life u say ha anything u say kid.i doubt u can even get a girlfriend
    i bet u cant even code anything.
    Reply With Quote  
     

  3. #3  
    Hyperion
    Sammi's Avatar
    Join Date
    Jun 2014
    Posts
    601
    Thanks given
    173
    Thanks received
    259
    Rep Power
    8
    you mean you want a timer from 10 minutes when you click an object?
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jul 2013
    Posts
    1,233
    Thanks given
    1
    Thanks received
    493
    Rep Power
    0
    Quote Originally Posted by infernal7188 View Post
    I need to add to the player clicks from 10 to 10 minutes on an object, someone has the command line? By knows where?
    Man you should really think about hiring a developer. You can't make a help thread about every single thing you can't do
    Reply With Quote  
     

  5. #5  
    Registered Member alkharidrsps's Avatar
    Join Date
    Jun 2014
    Posts
    282
    Thanks given
    9
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by 423 Million View Post
    Man you should really think about hiring a developer. You can't make a help thread about every single thing you can't do

    Friend, I am wondering what ever asked.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Mar 2015
    Posts
    385
    Thanks given
    7
    Thanks received
    291
    Rep Power
    0
    Are you asking for help to put a 10 minute click delay on an object?
    So people can only click it every 10 minutes?
    Reply With Quote  
     

  7. #7  
    Registered Member alkharidrsps's Avatar
    Join Date
    Jun 2014
    Posts
    282
    Thanks given
    9
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by Trz97 View Post
    Are you asking for help to put a 10 minute click delay on an object?
    So people can only click it every 10 minutes?
    yeah
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Mar 2015
    Posts
    385
    Thanks given
    7
    Thanks received
    291
    Rep Power
    0
    Quote Originally Posted by infernal7188 View Post
    yeah
    Go into Player.Java and add the following:

    Code:
    private long objectCooldown;
    Code:
    public long getObjectCooldown() {
    		return objectCooldown;
    	}
    	public void setObjectCooldown(long objectCooldown) {
    		this.objectCooldown = objectCooldown;
    	}
    Now go into ObjectHandler.Java and find your object ID and use the following template as an example.

    Code:
    else if (id == your object id) {
    					if (player.getObjectCooldown() > Utils.currentTimeMillis()) {
    						player.getPackets().sendGameMessage("You can use this again in "
    					+(player.getObjectCooldown() - Utils.currentTimeMillis()) / 1000 +
    								" seconds.");
    						return;
    						}
    					else
    			 	player.setObjectCooldown(Utils.currentTimeMillis() + 600000);
                                    //do what your object does
    				}
    Any trouble add my skype: BLTBBH
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member alkharidrsps's Avatar
    Join Date
    Jun 2014
    Posts
    282
    Thanks given
    9
    Thanks received
    4
    Rep Power
    13
    Quote Originally Posted by Trz97 View Post
    Go into Player.Java and add the following:

    Code:
    private long objectCooldown;
    Code:
    public long getObjectCooldown() {
    		return objectCooldown;
    	}
    	public void setObjectCooldown(long objectCooldown) {
    		this.objectCooldown = objectCooldown;
    	}
    Now go into ObjectHandler.Java and find your object ID and use the following template as an example.

    Code:
    else if (id == your object id) {
    					if (player.getObjectCooldown() > Utils.currentTimeMillis()) {
    						player.getPackets().sendGameMessage("You can use this again in "
    					+(player.getObjectCooldown() - Utils.currentTimeMillis()) / 1000 +
    								" seconds.");
    						return;
    						}
    					else
    			 	player.setObjectCooldown(Utils.currentTimeMillis() + 600000);
                                    //do what your object does
    				}
    Any trouble add my skype: BLTBBH
    Thanks bro
    Reply With Quote  
     


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. [718] objects etc.
    By Experimental in forum Help
    Replies: 1
    Last Post: 03-26-2013, 02:43 PM
  2. Matrix [718] Objects And Names
    By Icantcode911 in forum Help
    Replies: 3
    Last Post: 12-07-2012, 12:29 AM
  3. Matrix 718 Objects.
    By simplelyons in forum Help
    Replies: 2
    Last Post: 10-21-2012, 07:28 PM
  4. 718 Object Help!
    By -Vex- in forum Help
    Replies: 3
    Last Post: 10-14-2012, 08:14 AM
  5. 718 Object Respawn :O
    By izaazkothawala in forum Requests
    Replies: 3
    Last Post: 07-30-2012, 10:12 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
  •