Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 12:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Game multiply npc.is_pc()

Discussion on Game multiply npc.is_pc() within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 11
Received Thanks: 4
Game multiply npc.is_pc()

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


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

Can someone help us?
Kind regards.
Attached Images
File Type: jpg killtest.jpg (42.3 KB, 59 views)
pepineitor is offline  
Old 11/24/2013, 06:10   #2
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Known bug in 34083.

There is a dif here to fix it 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
.Shōgun is offline  
Thanks
1 User
Old 11/24/2013, 16:48   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 11
Received Thanks: 4
Quote:
Originally Posted by .Shōgun View Post
Known bug in 34083.

There is a dif here to fix it 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 .
pepineitor is offline  
Reply


Similar Threads Similar Threads
[rev34083]npc.is_pc() - broken function
11/22/2013 - Metin2 Private Server - 2 Replies
Hello community! I have a big problem with game rev34083. I tried to make a kill counter on my pserver from this thread: http://www.elitepvpers.com/forum/metin2-pserver-g uides-strategies/2291470-release-kill-gui-per-hotk ey-ffnen-4.html#post25991841 Everything was good until I killed a player. The counter increased not by one but by two kills... (the mob counter works good) I repeated this action on game rev2089 and it was alright, so I tried to rewrite the quest but unsuccessfully......
KOCounter multiply the value by 2
02/05/2013 - CO2 Private Server - 1 Replies
KOCounter multiply the value by 2 , I have no clue what am doing wrong here public void KOCounter(IBattleEntity target) { MagicAttackPacket m = new MagicAttackPacket(hero.IndexId); TargetPacket attack = new TargetPacket(m.Buffer); attack.TargetId = target.IndexId; attack.X = target.Location.X; attack.Y = target.Location.Y; attack.KOCount = hero.KOCounter; attack.TargetType = TargetType.Kill;
is_pc fehler
05/06/2011 - Metin2 Private Server - 2 Replies
Die quest guild_manage gibt mir immer diesen fehler: :1: attempt to call field `is_pc' (a nil value) Und das problem ist noch das gilde verlassen usw nicht angezeigt wird. Quest: quest guild_manage begin state start begin
[WPE] Talent multiply
03/12/2010 - WoW PServer Exploits, Hacks & Tools - 115 Replies
English Ok, at first, this guide is by myself, you may have seen guides for this in other forums, but this one is made by me. ATTENTION!!! THIS IS PATCHED ON ASCENT REV. 3.6 OR HIGHER!!!!!!!!!! Requirements: - WoW - YOU MUST HAVE LEARNED THE TALENT!! - WPE Pro modified (Download)(Credits to Deathsoft) 1.
Multiply bot question
06/23/2009 - Silkroad Online - 12 Replies
Hey guys i was wondering how can i use stealthex and agbot in the same time.. I tried it with like : Start stealthex with nuconnector and then i opened srproxy and i setted it up then i pressed start then i got a error, i ignorerd it and i started agbot + sro but then my other client dc'd and the agbot client didn,t want to start... Need sum help



All times are GMT +1. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.