Morrff
09-09-2007, 02:08 AM
This is not the way I wanted to do this script when I started but I ended up this way. I'm going to post both ways and see what the scripting wizards here think. I played with this for hours and hours trying to fix it anyway I could.
The reason I'm not using the User variables is because it's going to be different containers each time.
Making it for Alchemy ingredients and Bounty gems.
I'm hopen to take what I learn from this to make a dropping, getting, and a selling script. My fingers are going to mush!
ANYWAY here's the way I ENDED my attempts as I was not getting any further in my efforts
#TRANSFER
echo USAGE: .scriptname container1 container2 item1 item2 item3 item4 item5 item6 item7
Save %1
Save %2
Getting:
put get %3 from my %1
put put my %3 in my %2
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting1 Get what?
matchwait
Getting1:
put get %4 from my %1
put put my %4 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting2 Get what?
matchwait
Getting2:
put get %5 from my %1
put put my %5 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting3 Get what?
matchwait
Getting3:
put get %6 from my %1
put put my %6 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting4 Get what?
matchwait
Getting4:
put get %7 from my %1
put put my %7 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting5 Get what?
matchwait
Getting5:
put get %8 from my %1
put put my %8 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting6 Get what?
matchwait
Getting6:
put get %9 from my %1
put put my %9 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting7 Get what?
matchwait
Getting7:
put get %10 from my %1
put put my %10 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting8 Get what?
matchwait
Getting8:
echo
echo -- You're all done, I bet that was ALOT easier --
echo -- Transfering script, I hope it came in handy! --
echo
goto end
Noroom:
echo
echo -- No room in the container, Please empty and restart --
echo -- Directions .swap %1(from) %2(to) %3-%10(items)
echo
goto end
end:
exit
^^^^That's what I ended up trying in the end, but I wanted to make the script this way(Below)
The one below worked great for %3(items) until the %1(container) was empty then it hangs on "Get what?"
I put the "Waitfor You" because without it, it scrolled the screen, even with the matchwait(which didn't seem to do anything)
#TRANSFER
echo USAGE: .scriptname container1 container2 item1 item2 item3 item4 item5 item6 item7
Save %1
Save %2
Main:
if_1 goto Getting
Getting:
put get %3 from my %1
waitfor You remove
put put my %3 in my %2
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Main Get what?
matchwait
Noroom:
echo
echo -- No room in the container, Please empty and restart --
echo -- Directions .swap %1(from) %2(to) %3-%10(items)
echo
pause 1
exit
I'm mostly looking to learn FINALLY how to script myself. I'd like to tackle Ruby for Lich scripts but if I can't figure out this lowly Wizard code. I doubt I'll be able to even remotely understand Ruby!
Thanks to everyone in advance for the help
The reason I'm not using the User variables is because it's going to be different containers each time.
Making it for Alchemy ingredients and Bounty gems.
I'm hopen to take what I learn from this to make a dropping, getting, and a selling script. My fingers are going to mush!
ANYWAY here's the way I ENDED my attempts as I was not getting any further in my efforts
#TRANSFER
echo USAGE: .scriptname container1 container2 item1 item2 item3 item4 item5 item6 item7
Save %1
Save %2
Getting:
put get %3 from my %1
put put my %3 in my %2
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting1 Get what?
matchwait
Getting1:
put get %4 from my %1
put put my %4 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting2 Get what?
matchwait
Getting2:
put get %5 from my %1
put put my %5 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting3 Get what?
matchwait
Getting3:
put get %6 from my %1
put put my %6 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting4 Get what?
matchwait
Getting4:
put get %7 from my %1
put put my %7 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting5 Get what?
matchwait
Getting5:
put get %8 from my %1
put put my %8 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting6 Get what?
matchwait
Getting6:
put get %9 from my %1
put put my %9 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting7 Get what?
matchwait
Getting7:
put get %10 from my %1
put put my %10 in my %2
waitfor You put
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Getting8 Get what?
matchwait
Getting8:
echo
echo -- You're all done, I bet that was ALOT easier --
echo -- Transfering script, I hope it came in handy! --
echo
goto end
Noroom:
echo
echo -- No room in the container, Please empty and restart --
echo -- Directions .swap %1(from) %2(to) %3-%10(items)
echo
goto end
end:
exit
^^^^That's what I ended up trying in the end, but I wanted to make the script this way(Below)
The one below worked great for %3(items) until the %1(container) was empty then it hangs on "Get what?"
I put the "Waitfor You" because without it, it scrolled the screen, even with the matchwait(which didn't seem to do anything)
#TRANSFER
echo USAGE: .scriptname container1 container2 item1 item2 item3 item4 item5 item6 item7
Save %1
Save %2
Main:
if_1 goto Getting
Getting:
put get %3 from my %1
waitfor You remove
put put my %3 in my %2
match Getting You put
match Noroom The compartments in the
match Noroom won't fit in the
match Main Get what?
matchwait
Noroom:
echo
echo -- No room in the container, Please empty and restart --
echo -- Directions .swap %1(from) %2(to) %3-%10(items)
echo
pause 1
exit
I'm mostly looking to learn FINALLY how to script myself. I'd like to tackle Ruby for Lich scripts but if I can't figure out this lowly Wizard code. I doubt I'll be able to even remotely understand Ruby!
Thanks to everyone in advance for the help