Thread: 667 - Change how long floor/ground/dropped items stay for

Results 1 to 9 of 9
  1. #1 667 - Change how long floor/ground/dropped items stay for 
    Registered Member
    Join Date
    Feb 2015
    Posts
    60
    Thanks given
    20
    Thanks received
    2
    Rep Power
    11
    so im hoping someone can help me and just explain where to change how long items on the ground, i.e after kills stay for
    im trying, to make them go faster than they already do. im learning to code on 667 so any help would be amazing
    (still kind of noob im at the stage where i can make my own item upgrade system and so on so still new to it all

    thanks in advance
    Reply With Quote  
     

  2. #2  
    Owner of Zerion
    robstever's Avatar
    Join Date
    Jun 2013
    Posts
    139
    Thanks given
    44
    Thanks received
    18
    Rep Power
    58
    in World.Java, there should be an INT that represents "publicTime"

    that can be changed and will effect how long the item is on the ground for.

    Something to keep in mine,,, items are "invisible" to the world, other than the owner, for three minutes, by default, which is a Long, in World.Java.

    Hopefully this points you in the right direction!
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Feb 2015
    Posts
    60
    Thanks given
    20
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by robstever View Post
    in World.Java, there should be an INT that represents "publicTime"

    that can be changed and will effect how long the item is on the ground for.

    Something to keep in mine,,, items are "invisible" to the world, other than the owner, for three minutes, by default, which is a Long, in World.Java.

    Hopefully this points you in the right direction!

    thank you for your message, i just timed the drops on the ground for a normal account and a they stay for around 4 mins 30.

    Edit ive had a look at where you said but i cant seem to find where to change it

    Posted the code i see here..
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #4  
    Owner of Zerion
    robstever's Avatar
    Join Date
    Jun 2013
    Posts
    139
    Thanks given
    44
    Thanks received
    18
    Rep Power
    58
    Code:
    public static final FloorItem addGroundItem(final Item item, final WorldTile tile,
    			final Player owner/*
    								 * null for default
    								 */, boolean invisible,
    			long hiddenTime/*
    							 * default 3 minutes
    							 */, int type) {
    		return addGroundItem(item, tile, owner, invisible, hiddenTime, type, 150);
    the end line, vith the value of 150. that is where you can change the public time of the item.

    hiddenTime can be changed in several ways as well, to change how long the item stays HIDDEN to the public (other players) as well. you could do something like:

    Code:
    	return addGroundItem(item, tile, owner, invisible, hiddenTime-60, type, 90);

    which would reduce the hiddenTime by 60 seconds, and do the same for 90 (publicTime)

    Quote Originally Posted by wayo View Post
    thank you for your message, i just timed the drops on the ground for a normal account and a they stay for around 4 mins 30.

    Edit ive had a look at where you said but i cant seem to find where to change it

    Posted the code i see here..
    [Only registered and activated users can see links. ]
    i've given you a break down =]
    EDIT: this is still in World.java
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Feb 2015
    Posts
    60
    Thanks given
    20
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by robstever View Post
    Code:
    public static final FloorItem addGroundItem(final Item item, final WorldTile tile,
    			final Player owner/*
    								 * null for default
    								 */, boolean invisible,
    			long hiddenTime/*
    							 * default 3 minutes
    							 */, int type) {
    		return addGroundItem(item, tile, owner, invisible, hiddenTime, type, 150);
    the end line, vith the value of 150. that is where you can change the public time of the item.

    hiddenTime can be changed in several ways as well, to change how long the item stays HIDDEN to the public (other players) as well. you could do something like:

    Code:
    	return addGroundItem(item, tile, owner, invisible, hiddenTime-60, type, 90);

    which would reduce the hiddenTime by 60 seconds, and do the same for 90 (publicTime)



    i've given you a break down =]
    EDIT: this is still in World.java

    are we speaking about the same thing here, will this change how long NPC drops (items dropped after NPC is killed) will stay on the floor before been removed?

    i dont mean like if a player drops a item, how long it will stay and then others can see it

    sorry, im just not getting it with looking at the code i have to the one you have put
    Reply With Quote  
     

  8. #6  
    Owner of Zerion
    robstever's Avatar
    Join Date
    Jun 2013
    Posts
    139
    Thanks given
    44
    Thanks received
    18
    Rep Power
    58
    Quote Originally Posted by wayo View Post
    are we speaking about the same thing here, will this change how long NPC drops (items dropped after NPC is killed) will stay on the floor before been removed?

    i dont mean like if a player drops a item, how long it will stay and then others can see it

    sorry, im just not getting it with looking at the code i have to the one you have put
    this will effect both of those things. When an NPC drops an item, the PUBLICTIME is how long it will last TOTAL. HIDDENTIME, is how long it will last HIDDEN to the public (allplayers), while being visible to the OWNER (is applicable). once the HIDDENTIME is over, it is visible to the world, for the amount of time PUBLICTIME decides..

    Code:
    return addGroundItem(item, tile, owner, invisible, hiddenTime-60, type, 90);
    the YELLOW is how long the item will be invisible IF IT HAS AN OWNER, before becoming visible to every player.
    the RED number, is how long the item will STAY ON THE FLOOR BEFORE IT GOES AWAY

    Quote Originally Posted by wayo
    sorry, im just not getting it with looking at the code i have to the one you have put
    search for:

    Code:
    public static final FloorItem addGroundItem(final Item item, final WorldTile tile,
    			final Player owner/*
    								 * null for default
    								 */, boolean invisible,
    			long hiddenTime/*
    							 * default 3 minutes
    							 */, int type) {
    		return addGroundItem(item, tile, owner, invisible, hiddenTime, type, 150);
    and edit the blue line
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    Registered Member
    Join Date
    Feb 2015
    Posts
    60
    Thanks given
    20
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by robstever View Post
    this will effect both of those things. When an NPC drops an item, the PUBLICTIME is how long it will last TOTAL. HIDDENTIME, is how long it will last HIDDEN to the public (allplayers), while being visible to the OWNER (is applicable). once the HIDDENTIME is over, it is visible to the world, for the amount of time PUBLICTIME decides..

    Code:
    return addGroundItem(item, tile, owner, invisible, hiddenTime-60, type, 90);
    the YELLOW is how long the item will be invisible IF IT HAS AN OWNER, before becoming visible to every player.
    the RED number, is how long the item will STAY ON THE FLOOR BEFORE IT GOES AWAY



    search for:

    Code:
    public static final FloorItem addGroundItem(final Item item, final WorldTile tile,
    			final Player owner/*
    								 * null for default
    								 */, boolean invisible,
    			long hiddenTime/*
    							 * default 3 minutes
    							 */, int type) {
    		return addGroundItem(item, tile, owner, invisible, hiddenTime, type, 150);
    and edit the blue line

    This is what i mean, i have tried look for it but for some reason that isnt there the closest i have is something like ...[Only registered and activated users can see links. ] this is before the code i sent before
    Reply With Quote  
     

  11. #8  
    Owner of Zerion
    robstever's Avatar
    Join Date
    Jun 2013
    Posts
    139
    Thanks given
    44
    Thanks received
    18
    Rep Power
    58
    Quote Originally Posted by wayo View Post
    This is what i mean, i have tried look for it but for some reason that isnt there the closest i have is something like ...[Only registered and activated users can see links. ] this is before the code i sent before
    on line 65 of the snip you just sent... i find

    Code:
      World.removeGroundItem(floorItem, hiddenTime);
    are you not searching in world.java?

    i'm a bit confused.
    Reply With Quote  
     

  12. Thankful user:


  13. #9  
    Registered Member
    Join Date
    Feb 2015
    Posts
    60
    Thanks given
    20
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by robstever View Post
    on line 65 of the snip you just sent... i find

    Code:
      World.removeGroundItem(floorItem, hiddenTime);
    are you not searching in world.java?

    i'm a bit confused.

    Yeah buddy, im looking in world.java - this is the full file [Only registered and activated users can see links. ]

    add me to discord if that would be better wayo0o#3064
    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. Replies: 4
    Last Post: 02-15-2010, 10:41 PM
  2. Replies: 0
    Last Post: 11-29-2009, 03:36 AM
  3. Replies: 8
    Last Post: 08-23-2009, 05:30 AM
  4. How long do these spells freeze you for?
    By Ecstasy in forum Help
    Replies: 3
    Last Post: 08-14-2009, 06:07 AM
  5. How to make npcs drop items
    By wowfreakjoking in forum Tutorials
    Replies: 5
    Last Post: 03-26-2008, 06:46 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
  •