• 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!

TFS 1.X+ task and daily system I want it to be counted for all players in the party

Madusa

Active Member
Joined
Sep 8, 2022
Messages
118
Reaction score
32
Location
Egypt
Hello, I use this system,tfs 1.5 and as stated in the title, I want all kills for players in the party to be counted
Thanks in advance
 
in function
Lua:
function creatureEvent.onKill(creature, target)

you are supposed to do a loop with a whole party like
Lua:
local members = party:getMembers()

then you can do simple loop like
Lua:
for _, member in pairs(members) do

and here you can add your code about task count, also remember that
in party members there is no included leader, to include leader you have to write other lines like

Lua:
leader = party:getLeader()
 
and here you can add your code about task count, also remember that
in party members there is no included leader, to include leader you have to write other lines like
It doesn't matter, what's important is that everyone who attacked the monster can get a kill task/daily
But brother, I won't be able to do that because I don't understand Lua 🥲
 
Back
Top