dumb question, have you double check to ensure your server does loaded this script ?
anyway, judging from your current script shown in above ...
the header is wrong. it should be
moc_ruins,130,185,4 script refinemain 100,{
missing a curley at the end of the script.
getequipisequiped are no longer usable in latest rathena. remove it.
Fixed version :
https://pastebin.com/70k4rbrd