MrKarpiuk 124 Posted June 12, 2014 Share Posted June 12, 2014 How make quest? When u have party, for one user more u get +10% exp 7player +70% etc. How? Link to comment Share on other sites More sharing options...
Developer PACI 924 Posted June 12, 2014 Developer Share Posted June 12, 2014 (edited) You mean like this? Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal 1 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
MrKarpiuk 124 Posted June 12, 2014 Author Share Posted June 12, 2014 No i dont try this but tomorow lock how work this Thx man Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1125 Posted June 12, 2014 Former Staff Share Posted June 12, 2014 #moved Link to comment Share on other sites More sharing options...
Frozen 189 Posted June 12, 2014 Share Posted June 12, 2014 Here it is i didnt test, but i think it works. quest party_bonus begin state start begin function party_member_counting() local pids = {party.get_member_pids()} for i, pid in pids do local player_count = player_count + 1 end return player_count end function party_give_bonus(count) local pids = {party.get_member_pids()} for i, pid in pids do q.begin_other_pc_block(pid) affect.add_collect(apply. ,count*10, 60*60*60*60*60) pc.setqf("party_bonus", 1) pc.setqf("party_members_last", party_bonus.party_member_counting()) q.end_other_pc_block(pid) end end function party_remove_bonus(count) local pids = {party.get_member_pids()} for i, pid in pids do q.begin_other_pc_block(pid) affect.remove_collect(apply. ,count*10, 60*60*60*60*60) pc.setqf("party_bonus", 0) pc.setqf("party_members_last", party_bonus.party_member_counting()) q.end_other_pc_block(pid) end end when kill with not npc.is_pc() and party.is_party() begin local party_member_count = party_bonus.party_member_counting() if pc.getqf("party_bonus") == 0 then party_bonus.party_give_bonus(party_member_count) else if party_member_count == pc.getqf("party_members_last") then return else party_bonus.party_remove_bonus(pc.getqf("party_members_last")) party_bonus.party_give_bonus(party_member_count) end end end when kill with not party.is_party() begin if pc.getqf("party_bonus") == 1 then party_bonus.party_remove_bonus() pc.delqf("party_bonus") pc.delqf("party_members_last") end end end end PS: add in affect.add_collect(apply. HEREADDTHEBONUS) and the same to addect.remove_colllect. Kind Regards, Frozen 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now