Jump to content

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
https://metin2.dev/topic/3567-questmetin2-mysql_query-duplicate/
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

follow this

 

http://metin2dev.org/board/topic/344-kills-are-counted-twice/#entry2665

 

#4

 

and

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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.