Traceur3RUN 75 Posted September 4, 2018 Share Posted September 4, 2018 Hello, i trying do quest where chat is showing your level. i try: when 1231.chat."..pc.get_level().." but when i click on npc i see this: ..pc.get_level().. any idea to solve this problem? thanks Link to comment Share on other sites More sharing options...
Mhyst. 2 Posted September 4, 2018 Share Posted September 4, 2018 Show us all the quest.. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4930 Posted September 4, 2018 Bot Share Posted September 4, 2018 Why? He just wants to put it's level into a button. Link to comment Share on other sites More sharing options...
Nirray 193 Posted September 5, 2018 Share Posted September 5, 2018 quest showlevel begin state start begin when 1231.chat."Show level" begin say(""..pc.get_level().."") end end end I completely abandoned working on the files for this game. I do not respond to private messages. Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted September 5, 2018 Author Share Posted September 5, 2018 5 minut temu, Nirray napisał: quest showlevel begin state start begin when 1231.chat."Show level" begin say(""..pc.get_level().."") end end end no, you wrong understand me i want when 1231."there show my level" begin not on say when i click 1 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4930 Posted September 5, 2018 Bot Share Posted September 5, 2018 For example, if you are level 24 and you click on NPC it gives you this output: l---------------------l l 24 l l---------------------l l---------------------l l Close l l---------------------l Am I right? Link to comment Share on other sites More sharing options...
Fire 23 Posted September 5, 2018 Share Posted September 5, 2018 // Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted September 5, 2018 Author Share Posted September 5, 2018 52 minuty temu, Chyu ^^ napisał: For example, if you are level 24 and you click on NPC it gives you this output: l---------------------l l 24 l l---------------------l l---------------------l l Close l l---------------------l Am I right? as button right, 40 minut temu, Fire napisał: quest levelQuest begin state start begin when 1231.chat."Show level" with pc.get_level() >= 21 begin say("Lv.: "..pc.get_level().."") end end end hahahaha, you are kidding me? check first post. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4930 Posted September 5, 2018 Bot Share Posted September 5, 2018 I'm not sure if it is possible without editing a system. I currently can't test it but have you tried to put it there without quotation marks? As I think it will return an error. I mean this: quest levelQuest begin state start begin when 1231.chat.(pc.get_level()) begin say_title("Test") end end end 1 Link to comment Share on other sites More sharing options...
Fire 23 Posted September 5, 2018 Share Posted September 5, 2018 13 minutes ago, Traceur3RUN said: as button right, hahahaha, you are kidding me? check first post. I am sorry for the mistake but I don't understand well your english. Link to comment Share on other sites More sharing options...
Nirray 193 Posted September 5, 2018 Share Posted September 5, 2018 (edited) 16 minutes ago, Traceur3RUN said: as button right, My solution: quest showlevel begin state start begin when 9010.chat."Your level: #PlayerGetLevel" begin say(""..pc.get_level().."") end end end Python client script:root->uiquest.py Search: def AppendQuestion(self, name, idx): and replace if not self.btnAnswer: return import player import string level = str(player.GetStatus(player.LEVEL)) new_name = string.replace(name, '#PlayerGetLevel', level) self.btnAnswer[idx].SetText(new_name) x, y= self.btnAnswer[idx].GetGlobalPosition() like that: Result: Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 3 I completely abandoned working on the files for this game. I do not respond to private messages. Link to comment Share on other sites More sharing options...
Forum Moderator Solution VegaS™ 10331 Posted September 5, 2018 Forum Moderator Solution Share Posted September 5, 2018 (edited) That's the single method which is correctly. quest test_quest begin state start begin when 20091.chat.string.format("DBG: name(%s), level(%d).", pc.get_name(), pc.get_level()) begin say_title("I'm a potato!") end end end New quest core: /src/share/locale/germany/quest < qc This is the hidden content, please Sign In or Sign Up Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 2 2 4 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON 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