It was the standard level 5 Command spell I used earlier. But just now, I tried it again with Command of the Third Corner, which affects a random level from 5 to 25. I tried it twice, so it almost certainly should have affected Ranas at least one of those times. But no, he still just stood there when I walked away.
Still better to use a custom spell to be sure. You could try the console command
tl_ranas->aifollow player 0 0 0 0If that doesn't work, then yes, there probably is a script interfering. It looks like it would be the script on Zeerul Dai, the argonian slave on the shore outside the ship. When you got out of the ship, there was supposed to be a fight or something with the slaves there, and the journal should have been advanced past 45. That's why it's important to know what the GetJournalIndex returned. It looks like the quest can go a couple ways, the slaves can kill Ranas, or you take Ranas to Ebonheart. I think you can just end the quest by killing Ranas yourself, taking the key, and freeing Zeerul Dai.
Or you could just use the console to teleport Ranas to Ebonheart. Find a nice spot in the exterior cell "Ebonheart", then get your X, Y, Z from the console
Player->GetPos X ... etc.
then you can teleport Ranas to that position:
[b]tl_ranas->positioncell X,Y,Z,0,"Ebonheart"
Get up close to him, he should forcegreet you and give you the slave key.