Game multiply npc.is_pc()

11/24/2013 05:51 pepineitor#1
Hi community.
Today when I am testing the
HTML Code:
npc.is_pc()
I found a bug, I test it in 3 differentes 34k games, but all have the bug, the kill multiply by two.

For example, I have this quest

HTML Code:
quest test begin
	state start begin
		when kill with npc.is_pc() begin
			local plus = pc.getqf("kill_test")+1
			pc.setqf("kill_test", plus)
			chat("Kill Test "..plus)
		end
	end
end
[Only registered and activated users can see links. Click Here To Register...]

When I kill one time a player, the game multiply the kill, I don't know the cause...

Can someone help us?
Kind regards.
11/24/2013 06:10 .Shōgun#2
Known bug in 34083.

There is a dif here to fix it [Only registered and activated users can see links. Click Here To Register...] but I had problems with it so I would recommend you another solution like count 0.5 for each kill and do a math.floor
11/24/2013 16:48 pepineitor#3
Quote:
Originally Posted by .Shōgun View Post
Known bug in 34083.

There is a dif here to fix it [Only registered and activated users can see links. Click Here To Register...] but I had problems with it so I would recommend you another solution like count 0.5 for each kill and do a math.floor
First, thanks for your time.
I had thought, but the problem persist, the message goes duplicate.
I will test that diff we will see what happens.

Kind regards.

Edit:

I put the diff and now works fine, for now.

However, could you tell me that failure was generated to you?

Thanks ;).