Jump to content

North

Premium
  • Posts

    465
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    0%

Everything posted by North

  1. You have all you need into your uiscript for the board. self.Button.SetEvent(ui.__mem_func__(self.Doit)) #give the child a function def Doit(self): import blabla
  2. you have minmax for that, you can just: i didnt dig into the problem tho, so this is to intent as a correction to him and not to a fix for the bug you have. Btw what you did is checking if getmaxhp its minor or equal to 0, then assign 0 again so the = statement even lose his effectivness. If you want to have something more than 0 on p.bHPPercent as min you have to do: p.bHPPercent = MINMAX(1, (GetHP() * 100 / GetMaxHP(), 100); And since you doing the same thing on both checks, you can also if (IsPC() || GetMaxHP() < 0) p.bHPPercent = 0;
  3. I must agree in some part with Tasho, this kind of relase do help us to understand development of the concept in this system, but it could be 100 times more readable and shorter, im referring to the big 40kb file that comunicates via quest in a really superheavy way imo, don't get me wrong, this is super useful for the 90% of this forum so they can just have another function on their personal pservers but when it comes to actually teach something to the others (That's why someone shares something for free in most cases) you should comment it better and use a friendlier code for the user. And trust me, tasho is just trying to help, it doesn't matter if he's rude, we are not child anymore These are my 2 cents, thanks tho for the relase
  4. It`s about client-server packet, you have to optmize it but it`s not something you can do without a solid understanding
  5. I dont know what you have added to your window source but this can be the solution in most cases: This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. You can even return the string of the error by using FormatMessage into the GetLastError func that is triggering that 10054 code you have a code sample in the ms documentation [Hidden Content](v=vs.85).aspx
  6. [Hidden Content](v=vs.85).aspx WSAECONNRESET 10054 Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.
  7. Dude you should go into the Offline shop creation and put there the check for the channel changer event, if someone uses the channel changer with the shop open return and print the error. Same thing for the channel changer but you already have all the things you need in the source, just search for them
  8. if (ertek < 0) ertek = 0; Thanks for the addon!
  9. This is like the party teleport, why they have that for... So many things they could do if to make the game better and they just care about making the itemshop deals
  10. M2 Download Center Download Here ( Internal ) Hello Metin2dev users, I want to relase this because it can be useful for someone who's starting to understand what kind of logic there is behind the ui managment This is a really simple thing, but it can be optimized to get you the idea of what you can do with small parts of code. As exercise do the followings: + Add the metin2 official effect for the brave cape + Add a keyboard shortcut to the button + Set a time of 4s in the c++ function for anti command spam + Enhance the overall looking? + What ever you'd like to add Link DL: [Hidden Content] If i missed something in the file just tell me, ill adjust the file. I don't know and i don't care if this is already relased, it's so simple that no one is gonna be offended. Let me know your feedback for this kind of exercise-typeof-relases
  11. download the whole folder and search for it? i don't have the answer but you, with a bit of will can obtain it
  12. This is great! Good job, hope one day someone will open some git repos for these things, the point is now everyone wants to farm money with this game
  13. guessing is not a valid answer. reward_index = number(0, end_index); reward_index = number(0, end_index-1); //line 247 This makes no sence in my prespective, but if you want to keep them, your choice
  14. Check if he spotted some quest reward bug (biolog) or shit like that
  15. first [reward_index = number(0, end_index);] argument (up there is bigger than second argument 0 -> -1, reward_index = number(0, end_index-1); //line 24 First is end_index, second is end_index-1. First > Second And i dont think it has any use doing the same thing, so choose one by using comment
×
×
  • 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.