wait wait wait this is MY script... https://annieruru.blogspot.com/2019/01/another-approach-to-write-pvp-ladder.html
for some reason you are using TXT style pvp ladder, which is .... well its plug and play, but its actually difficult to modify a value or reset the ladder later on
that's why most server use SQL pvp ladder, not only because its easy to modify a value, but also can output the result onto the website
you are requesting to reset the ladder on a TXT style ladder, you have to set another server variable and compare with another player variable for this to work
I already did this before on hercules forum though https://upaste.me/c8d12185033897498 -> topic
Download: https://gist.github.com/AnnieRuru/2b21eccc7e04a4bd6fb39a42c612a511
btw, you are using hercules ? why you didn't change getcharid(CHAR_ID_ACCOUNT) into getcharid(3) and so on ?
Google translate (from Portugese): This I added more correctly when I talk to the npc nothing happens, Remembering that this script is TXT it does not contain sql.
Exactly !!