Keselth 0 Posted October 25, 2014 Share Posted October 25, 2014 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 More sharing options...
ekoo 8 Posted October 25, 2014 Share Posted October 25, 2014 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 More sharing options...
Keselth 0 Posted October 25, 2014 Author Share Posted October 25, 2014 Did work! Now it dont update! Link to comment Share on other sites More sharing options...
ekoo 8 Posted October 25, 2014 Share Posted October 25, 2014 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 Link to comment Share on other sites More sharing options...
Keselth 0 Posted October 25, 2014 Author Share Posted October 25, 2014 I don't have acess to the game source.. I'm using 34083 Game Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now