• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

PAID SUPPORT - Avesta

Eldora

Banned User
Joined
Oct 19, 2009
Messages
604
Reaction score
26
Hi,

First of all, i would like to mention that i pay for help in this case.

I have a Task System on my Avesta server.

I would like to add so that if players are in party, they will all get one kill each.
Basicly they will share kills to complete the tasks together if they are in a party.


Thank you in advance!
 
I will assume you're using storage to count kills, maybe you can do something like this:
LUA:
for _, pid in ipairs(getPartyMembers(cid)) do
    local kills = getPlayerStorageValue(pid, STORAGE_KILLS)
    setPlayerStorageValue(pid, math.max(1, kills + 1))
end
 
Last edited:
Back
Top