Haha, it can take a while to get used to its different function. And by the way, 6.2 is actually the Pewter City Gym, Viridian's Pokemon Centre is 5.4 :P
Based on the extract you quoted you need to have the following in a script somewhere:
Code:
setvar 0x405A 0x[COLOR="Red"]04[/COLOR][COLOR="Blue"]05[/COLOR] // 0x405A determines which map you'll respawn in. The second byte (blue) indicates the bank while the first (red) is the map number in that bank.
setvar 0x405B 0x7 // The X co-ordinate you will respawn at
setvar 0x405C 0x4 // The Y co-ordinate you will respawn at
sethealingplace 0x0 // Setting this to 0x0 will display the standard Nurse Joy respawn animation/ text
You will respawn right in front of Nurse Joy thanks to the co-ordinates which have been set in 0x405B and 0x405C. You could also put variations of this script in any Pokemon Centre and only change the bank/ map number variable to reflect which city's Centre you just entered.
Also, it goes without saying, but if you have any other scripts which rely on the three 0x40XX variables then you should change them to prevent any disastrous respawning problems.