I thinking about contabo vps, for first edition (something like beta edition)
They have spec:
6 vCPU Cores
16 GB RAM
100 GB NVMeor 400 GB SSD (first option)
2 Snapshots
32 TB TrafficUnlimited Incoming
I think you can run it every 10 seconds and add regen/stats as...Ok, but when i check "if player has item in backpack", hmm in every 1 min, it can laging server? if i got more than ~100 players
You make a loop to check if ur backpack contains the item then add the regeneration etc.
Maybe onThink event could help at that point
Ok, but when i check "if player has item in backpack", hmm in every 1 min, it can laging server? if i got more than ~100 players
it will depend on your machine stats, but probably, not going to lag.
I thinking about contabo vps, for first edition (something like beta edition)
They have spec:
6 vCPU Cores
16 GB RAM
100 GB NVMeor 400 GB SSD (first option)
2 Snapshots
32 TB TrafficUnlimited Incoming
I think you can run it every 10 seconds and add regen/stats as Condition with customOk, but when i check "if player has item in backpack", hmm in every 1 min, it can laging server? if i got more than ~100 players
subId
(to make it easy to remove it by subId).player:getItemCount(xxx)
I think you can run it every 10 seconds and add regen/stats as Condition with customsubId
(to make it easy to remove it by subId).
From some server experience: running 'search for item' 97 times per second for every player (200 online) is not at problem at server start, but when players collect more items, it may consume 100% CPU.
So problem is not only how often you will run that onThink script, but also how many different items will give boost = how many times you will runplayer:getItemCount(xxx)