Converted code (needs unreleased library file - not finished)
dofile('ENs_EUOCommandLibrary.lua')
EUO_DisplayResult=EUO_Display("ok","please target your source container")
UO.TargCurs=1
while UO.TargCurs== 1 do
Wait(0 * 50) -- Converted to Milliseconds
end -- for while
g_source_bag=UO.LTargetID
EUO_DisplayResult=EUO_Display("ok","please target your bag to be karate chopped!")
UO.TargCurs=1
while UO.TargCurs== 1 do
Wait(0 * 50) -- Converted to Milliseconds
end -- for while
g_target_bag=UO.LTargetID
g_move='UVF_EWF_FWF_GWF'
EUO_FindItem(g_move,'c_,',g_source_bag)
for EUO_FindIndex=1,EUO_FindCnt do
UO.Drag(EUO_Find[EUO_FindIndex].ID)
Wait(10 * 50) -- Converted to Milliseconds
UO.Dropc(g_target_bag)
Wait(10 * 50) -- Converted to Milliseconds
end
EUO_DisplayResult=EUO_Display("ok","DONE!!!")
stop()
Thank you so much for the conversion! Since the Command Library is unfinished, I obviously can't actually test the script, but it does give me an idea of how this will work. And since it seems like you are probably going to have a lot of functions in your library, given the Wait/wait issue, you might just want to have a function called Wait, which I assume could be as simple as:
function Wait(a)
wait(a)
end
This way, if there is a missed 'Wait' rather than 'wait', or if there is a lot of extra coding necessary to make them all be lower case waits, I would think that it would let you use your time much more constructively?
Also, after seeing this line:
g_move='UVF_EWF_FWF_GWF'
and seeing the problems that it initially caused for SuperSlayer, perhaps a conversion from the EUO formatted lists would be beneficial? I don't know how oEUO handles these lists yet, but I am more than willing to learn (and will be looking this info up shortly tonight), so if I can be of any help in this possibility, please let me know and I will do waht I can to help (I know there are a TON of item id's to find and cross-reference, but it can be a somewhat on-going exercise).