It's easier if you know PSCT.
Find something similar and copy it, but if you can't, find a condition similar to the one you need, then cost, then effect.
I won't do it for you, but I'll help you find stuff
For the cost "Send this card you control to the graveyard", you can copy any nekroz with a discard cost. In the LOCATION which you'll find in the script, change LOCATION_HAND to LOCATION_MZONE or LOCATION_ONFIELD if it's a monster that can be placed in the s/t zone. This way, it's just treated as being sent to the graveyard as a cost and not tributed or whatever it normally is.
The first effect you can copy cyber dragon core, he adds any "cyber" spell/trap card from the deck to the hand. Change the setcard to whatever the hex of madolches is, and take out trap as well since you're only searching spell cards.
As for "And if you do" effects, I don't really know how to differentiate that and "then" or "also" effects. I'm pretty sure everything I've ever scripted like that is an "also" effect. I do know it goes after the initial effect in the same function, so you can pretty much just copy the initial effect and paste it but change LOCATION_DECK to LOCATION_GRAVEYARD and type_spell to type_monster. But you should look at other cards with "and if you do" to see what's meant to go between effects.