if UO.GetQuantity('lastcorpse') then UO.SetArm('temp') UO.WaitTargetObject('lastcorpse') UO.UseType('0x0F51') ;dagger wait(1000) UO.Arm('temp') wait(1000) endif
UO.SetReceivingContainer('loot') for i=0 to 93 repeat uo.findtype(fastloot[i],'-1','ground') if uo.findcount()>0 then CheckLag() uo.waittargetObject('finditem') uo.grab() wait(550) endif until uo.findcount()==0
next uo.print('===================================') uo.print('!!!!!!!LOOTING COMPLETED!!!!!!!!!') uo.print('===================================') UO.UnSetReceivingContainer() uo.exec("set finddistance 14") end sub
sub CheckLag() uo.DeleteJournal() uo.Click('backpack') repeat wait(500) until uo.InJournal('backpack') end sub
После разреза трупа, появляется таргет от команды ,grab, но почему скрипт не лутит те тайпы котоыре я прописал ему лутить ?
Версия инжы последняя, шард - дрв
MMmm...my english not very well... but i try tell to you my trable:
My script must carve & loot items from ground, but script don`t doit that...
it carve & give me a target (from command ,grab).
I need help. I whant when script carve corpse then looting items from ground...
My injection new version. My shard is Drw.
if UO.GetQuantity('lastcorpse') then UO.SetArm('temp') UO.WaitTargetObject('lastcorpse') UO.UseType('0x0F51') ;dagger wait(1000) UO.Arm('temp') wait(1000) endif
for i=0 to 93 repeat uo.findtype(fastloot[i],'-1','lastcorpse') if uo.findcount()>0 then CheckLag() uo.waittargetObject('finditem') uo.grab() wait(550) endif until uo.findcount()==0
next uo.print('===================================') uo.print('!!!!!!!LOOTING COMPLETED!!!!!!!!!') uo.print('===================================')
uo.exec("set finddistance 14") end sub
sub CheckLag() uo.DeleteJournal() uo.Click('backpack') repeat wait(500) until uo.InJournal('backpack') end sub