Okay, I did forget to say that it is not dropping them in and I forgot to save it with set %mage_book MPF at the top of the script so it finds the spellbook.
I do have a couple of questions, first about the dragspells sub
sub DragToSpellbook
;set %1 %ScrollSecure
;set %2 %spellbook
;set %3 %scroll . %N
finditem %1 G_2
if #FINDKIND = -1
return N/A
finditem %3 C_ , %1
if #FINDKIND <> -1
{
exevent drag #FINDID 1
wait 10
exevent dropc %2
wait 10
}
return
%1 is the ScrollSecure and %3 is the scrolls so I am confused that about you saying that it is looking for scrolls on the floor so set %1 ScrollSecure, I was under the impression that finditem %1 G_2
if #FINDKIND = -1
return N/A
is saying that if the secure is not on the floor and g_2 means within two tiles right? I am hoping that I am reading it right, it is saying to check for the secure within 2 tiles of me, then move scrolls to the spellbook and the %1 %2 %3 is the order in which you make the gosub statement
I hope I am not coming off rude by asking, I am just really trying to understand the code and what it means. I have no true coding experience other than learning EUO and playing around with RUO scripts a few years back.
Anyways, with that line out, it still does not drop the scrolls into the spellbook.
Did I make a mistake with a return? I do understand that they are needed and that it stops reading there but I don't know much more about them then that. I quickly put this together to test out the dropping scrolls onto the spellbook when it wasn't working. I know I should never be in a hurry with a cut and paste but it is murphy's law lol.