Honorable Member Mali 42209 Posted July 12, 2017 Honorable Member Share Posted July 12, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) 40 1 3 1 14 2 13 Link to comment Share on other sites More sharing options...
Premium finaltorment 53 Posted July 12, 2017 Premium Share Posted July 12, 2017 nice! ty bro Link to comment Share on other sites More sharing options...
Honorable Member Mali 42209 Posted July 12, 2017 Author Honorable Member Share Posted July 12, 2017 57 minutes ago, finaltorment said: nice! ty bro Link to comment Share on other sites More sharing options...
Denis 1474 Posted July 12, 2017 Share Posted July 12, 2017 Wouldn't it be better to store the "Guests" inside a vector and then check if the guest already exists in it, if yes don't add the guest to vector, if no add it to vector then send to client? I'm just narrow-minded when it comes to quest flags haha Link to comment Share on other sites More sharing options...
Honorable Member Mali 42209 Posted April 28, 2018 Author Honorable Member Share Posted April 28, 2018 On 13.07.2017 at 1:42 AM, Denis said: Wouldn't it be better to store the "Guests" inside a vector and then check if the guest already exists in it, if yes don't add the guest to vector, if no add it to vector then send to client? I'm just narrow-minded when it comes to quest flags haha You're right.I updated topic. Link to comment Share on other sites More sharing options...
DeadSkull7 159 Posted April 28, 2018 Share Posted April 28, 2018 Good job but i think if same player open shop don't increment seens counter will be better.Also, why you use vector ? And push every time ? in you case you don't want to chack if player opened shop or no to increment counter ! You can use single counter not vector. int counter = 0; Link to comment Share on other sites More sharing options...
Honorable Member Mali 42209 Posted April 29, 2018 Author Honorable Member Share Posted April 29, 2018 18 hours ago, DeadSkull7 said: Good job but i think if same player open shop don't increment seens counter will be better.Also, why you use vector ? And push every time ? in you case you don't want to chack if player opened shop or no to increment counter ! You can use single counter not vector. int counter = 0; -And push every time ? Wrong! Not every time if ch isn't exist in vector control: find(looked.begin(), looked.end(), ch) == looked.end() Link to comment Share on other sites More sharing options...
DeadSkull7 159 Posted April 29, 2018 Share Posted April 29, 2018 2 hours ago, Mali61 said: -And push every time ? Wrong! Not every time if ch isn't exist in vector control: find(looked.begin(), looked.end(), ch) == looked.end() So if player open shop in first time you push him in vector, if open again ? He will be existed so vector size don't change .. ? Link to comment Share on other sites More sharing options...
Honorable Member Mali 42209 Posted April 29, 2018 Author Honorable Member Share Posted April 29, 2018 4 minutes ago, DeadSkull7 said: So if player open shop in first time you push him in vector, if open again ? He will be existed so vector size don't change .. ? Yes, size only change for 1 character. Link to comment Share on other sites More sharing options...
DeadSkull7 159 Posted April 29, 2018 Share Posted April 29, 2018 2 hours ago, Mali61 said: Yes, size only change for 1 character. Yeeeah.Sorry I don't see the video correctly.Btw you can use set it's will be better.Thank u again Link to comment Share on other sites More sharing options...
Honorable Member Mali 42209 Posted April 29, 2018 Author Honorable Member Share Posted April 29, 2018 13 minutes ago, DeadSkull7 said: Yeeeah.Sorry I don't see the video correctly.Btw you can use set it's will be better.Thank u again Video is from old version :j Link to comment Share on other sites More sharing options...
DeadSkull7 159 Posted April 29, 2018 Share Posted April 29, 2018 15 minutes ago, Mali61 said: Video is from old version :j Ahaa So I'm right Link to comment Share on other sites More sharing options...
Active+ Member blaxis 279 Posted May 7, 2021 Active+ Member Share Posted May 7, 2021 System is not working. Normal Shop or Great Offline Shop... I added everything successfully, but the counter is always 0. It doesn't increase at all. No syserr. Link to comment Share on other sites More sharing options...
Mafia83 3 Posted November 3, 2021 Share Posted November 3, 2021 (edited) I did everything exactly as you said and my visitors don’t show up... Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Filachilla 29 Posted January 4 Share Posted January 4 Pretty nice idea, but counter doesnt work properly.. Sometimes dont count up, any idea? Link to comment Share on other sites More sharing options...
Recommended Posts