I just tried your script on a fresh rom and it works fine. In the header tab in advance map, got the script type under 02, the flag set to 5001 and the value at 4000. Make sure you click save map scripts and save the rom too.
If it still doesn't work, try it on a fresh rom.