Jump to content

party.setqf increases multiple if two partying killing 1 mob


Recommended Posts

A flaw here, in this dungeon when you're in a party if you and your party member are hitting the same mob it'll add two to the 'totalkill' quest flag, what other ways are there of getting around this ?

 

the solo version works perfectly, just this left after you kill X amount it spawns the next set of mobs depending on the QF value.

		when 6001.kill or 6002.kill or 6003.kill or 6004.kill or 6005.kill or 6006.kill or 6007.kill or 6008.kill or 6009.kill or 8052.kill with pc.get_map_index() >= 2160000 and pc.get_map_index() <= 2165000 begin
			local killcount = pc.getqf("totalkill")
				if party.is_party() then
					party.setqf("totalkill", killcount + 1)
					chat(pc.getqf("totalkill"))
				else
					pc.setqf("totalkill", killcount +1)
					chat("solo")
				end
			--syschat(pc.getqf("totalkill"))
			if pc.getqf("totalkill") == 21 then
				d.regen_file("data/dungeon/solo_purgatory/regen2.txt")
			elseif pc.getqf("totalkill") == 38 then
				d.regen_file("data/dungeon/solo_purgatory/regen3.txt")
			elseif pc.getqf("totalkill") == 43 then
				d.regen_file("data/dungeon/solo_purgatory/regen4.txt")
			end			
		end
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium

Before --syschat("totallkill") check if its in a party and if it is just decrease flag with 1. If it's decreasing with 2 too then add two points at solo kill and decrease with one without check.

If its still not working then use 40k and compile it yourself. Don't trust any core :)

If you're not smart enough to do it then close your server. Easy.

Greetings from Romania.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.