Official ScriptUO EasyUO Scripts > Script Debug
IgnoreItem Issue
Burnhazel88:
I'm having an issue with ignoreitem
--- Code: --- finditem %item_list c_ #BACKPACKID
while #FINDCNT > 0
{
exevent drag #FINDID
wait 10
exevent dropc %dropbag
wait 10
ignoreitem #FINDID 4
}
--- End code ---
%dropbag is inside backpack and open grabs first item from backpack drops in bag the keeps pulling and dropping same item to and from %dropbag.
what am i missing here. other than caffeine in my veins.
BobOzarius:
You can only ignore the item once. If you ignore it twice, you basically unignore it. ;) Plus while you're doing your while statement, and ignoring your items, #findcnt isn't changing, because it only changes when you do a finditem... doing a for #findindex 1 #findcnt might be a better solution to your problem.
Burnhazel88:
ok then tried basic goto loop with success but really hate using them .
--- Code: ---loop1:
finditem %item_list c_ #BACKPACKID
if #FINDCNT > 0
{
exevent drag #FINDID
wait 10
exevent dropc %dropbag
wait 10
ignoreitem #FINDID 4
goto loop1
}
--- End code ---
The Ghost:
ignoreitem #FINDID 4 : the 4 mean that you are going to execute the next 4 line. Not sure why you have it their. To ignore snake I only do ignoreitem %snake.
manwinc:
The problem is you aren't doing another finditem after you ignore the item to find another one.
--- Code: --- finditem %item_list c_ #BACKPACKID
while #FINDCNT > 0
{
finditem %item_list c_ #BACKPACKID
exevent drag #FINDID
wait 10
exevent dropc %dropbag
wait 10
ignoreitem #FINDID 4
}
--- End code ---
Personally i would be using a repeat though to skip that initial finditem before you enter the while.
--- Code: ---Repeat
Finditem %item_list C_ , #Backpackid
if #Findcnt > 0
{
exevent drag #FINDID
wait 10
exevent dropc %dropbag
wait 10
ignoreitem #FINDID 4
}
Until #Findcnt <= 0
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version