Jump to content

[QUEST]Metin2 Mysql_Query Duplicate


Recommended Posts

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
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 

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
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.