Well, I took this diff from this post ( https://rathena.org/board/topic/104860-extended-vending-system-august-2016-renewal-pre-renewal/ )that is newer, but it had some errors, and I managed to correct it, no more errors appeared in the compile program ... the system opens right, opens the normal store for zeny or cash ... but it is giving error when a player buys something in the store, the map-server of the crash and closes the server, without appearing any error in the emulator. Sorry