Razor has a handy record button so you just start recording, do the actions you want in the macro, then stop recording and modify accordingly: you change item for item type, you add if conditions for when you are low on health, poisoned, fail at something ( razor can read the journal to look for a frase and do something if the frase is there after you fail ) add pauses and loop so you do it over and over.
Its really simple to figure out, you dont really need to learn anything about scripting, just try not to use any movement with razor cause the client usually gets out of synch and you cant get it back to normal, not even with [resynch so you need to close the client and razor and restart.