Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

[QUEST]Metin2 Mysql_Query Duplicate


Keselth

Question

Hi guys! So I'm trying to create a pvp system with quests, but everytime a player kills another if gives 2 points instead of 1! Anyone can help me with this?

quest kryzek_pvp begin 
    state start begin 
        when kill begin  
            if npc.is_pc() then 
pc.give_exp2(21000000) 
mysql_query("UPDATE player.player SET prestige=prestige+1 WHERE name='"..pc.get_name().."' LIMIT 1") 
            end 
        end 
    end 
end
Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

 

Hi guys! So I'm trying to create a pvp system with quests, but everytime a player kills another if gives 2 points instead of 1! Anyone can help me with this?

quest kryzek_pvp begin 
    state start begin 
        when kill begin  
            if npc.is_pc() then 
pc.give_exp2(21000000) 
mysql_query("UPDATE player.player SET prestige=prestige+1 WHERE name='"..pc.get_name().."' LIMIT 1") 
            end 
        end 
    end 
end

 

 

quest kryzek_pvp begin 
    state start begin 
    	when kill with npc.is_pc() begin
			pc.give_exp2(21000000) 
			mysql_query("UPDATE player.player SET `prestige`=prestige+1 WHERE `name`='"..pc.get_name().."' LIMIT 1") 
		end 
	end 
end
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.