Hi community!
I decided to write this topic because a friend of mine contacted me a little while ago informing me of a recently discovered bug with won that affects several private servers
If you write "1.999" in the section "Won -> Yang" you will receive 199kk, about the double of its real value
On my server the problem would have been much bigger as the won is worth 1kkk
I'll post a hotfix that I did on the fly and it worked:
Go to the server, in the quest path, open the won.lua quest
Look for the following statement:
local amount = input()
is located in the first lines of the quest, under this instruction add the following:
if string.find(amount, ".") then
syschat("No punctuation marks allowed")
return
end
Code translation:
Check if there is a period in the string that the user entered (the player in our case)
If the dot is present, end the quest by printing the message "No punctuation marks allowed"
The bug could be fixed in many ways even more effective than this, but for something "on the fly" I give you this hotfix