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
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:
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:
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
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..
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
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);
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..
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
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