i recently tried do simple macros, but i am not successful in doing so..
Is there a way that macro will skip spell that is not available - for example Hammer of Wrath?
Also is there a possibility to make macro without making sequence?
I mean it would choose on its own by priority which spell is available and use it?
No, that sort of macro behavior is blocked by design, you can't make a magic macro to basically play for you. The only exception to this is if you have some no gcd spells, you can put the /cast for each one after the other and it'll work (e.g. mage's Icy Veins + Combustion). You can also combine gcd spells here, but the whole thing breaks if any spell is on cd.