Jump to content

[C++] Fix Core Downer Using Negative Number in GM Codes


Recommended Posts

  • Active+ Member
Posted (edited)

INTRODUCTION & PROBLEM

Hello, today we will fix a few errors, especially the error that caused the core down by giving an unexpected negative (-) arg (number) in the commands (Example; /mob 101 -1), and we will also regulate the use of "ChatPacket" in this functions.

WHY ?

GMs are already part of the team, you may ask why we need this, you are right, but do not forget that a GM who does not have coding knowledge may accidentally trigger this, let's not leave it to chance.

SOLUTION

The process we will do is simple, it will be enough to make sure that the given arg value is within the range we want, let's get started.

This is the hidden content, please

Edited by MT2Dev
  • Metin2 Dev 48
  • Lmao 1
  • Good 6
  • muscle 1
  • Love 7

spacer.png

 

MT2Dev ©

Link to comment
Share on other sites

Announcements



×
×
  • 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.