Posts: 47
Threads: 12
Joined: Jun 2014
Reputation:
0
Hi I did a drop system that works perfectly... I want that when you reach the maximum number of drop, if it is still-dropped another item the older one disappears. A sort of infinite loop. Can you give me some idea how to make this? Or you can give me a link FilterScript that does this, so reading the code, I understand how to do it.
Posts: 47
Threads: 12
Joined: Jun 2014
Reputation:
0
I have thought about this, only that others must climb. Then the second drop becomes the third, the third drop becomes the fourth, etc ..
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Why is there a drop limit, though?
Posts: 47
Threads: 12
Joined: Jun 2014
Reputation:
0
Because I don't want 500000 drop on my server. Too lag...
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
10.09.2016, 17:09
(
Last edited by SickAttack; 10/09/2016 at 05:46 PM.
)
Edit: Nevermind, I thought it was going to be for per player. But it's global.
What you can do is add a count, when it reaches the last ID, put all the items one index down and at the last index add the new item.
Posts: 96
Threads: 25
Joined: Jan 2013
Reputation:
0
for(new i = E_MAX_DROPS; i > 0; i--) {
E_DROPPED_ITEM[i+1] = E_DROPPED_ITEM[i];
}
E_DROPPED_ITEM[0] = droppeditem;