Author Topic: IgnoreItem Issue  (Read 94 times)

0 Members and 1 Guest are viewing this topic.

Offline Burnhazel88Topic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    1.8%
  • Reputation Power: 1
  • Burnhazel88 has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
IgnoreItem Issue
« on: October 06, 2017, 12:07:11 PM »
0
I'm having an issue with ignoreitem
 
Code: [Select]
   finditem %item_list c_ #BACKPACKID
  while #FINDCNT > 0
  {
    exevent drag #FINDID
    wait 10
    exevent dropc %dropbag
    wait 10
    ignoreitem #FINDID 4
  }
%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.

Offline BobOzarius

  • Jr. Member
  • **
  • Posts: 96
  • Activity:
    1.6%
  • Reputation Power: 1
  • BobOzarius has no influence.
  • Respect: +6
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #1 on: October 06, 2017, 12:50:21 PM »
0
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.
« Last Edit: October 06, 2017, 12:53:26 PM by BobOzarius »

Offline Burnhazel88Topic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    1.8%
  • Reputation Power: 1
  • Burnhazel88 has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #2 on: October 06, 2017, 01:04:13 PM »
0
ok then tried basic goto loop with success but really hate using them .
Code: [Select]
loop1:
 finditem %item_list c_ #BACKPACKID
  if #FINDCNT > 0
  {
    exevent drag #FINDID
    wait 10
    exevent dropc %dropbag
    wait 10
    ignoreitem #FINDID 4
goto loop1
  }

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1512
  • Activity:
    12.4%
  • Reputation Power: 19
  • The Ghost is working their way up.The Ghost is working their way up.The Ghost is working their way up.
  • Respect: +11
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #3 on: October 06, 2017, 02:10:46 PM »
0

   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.   

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2511
  • Activity:
    2.2%
  • Reputation Power: 31
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +4
  • Referrals: 1
    • View Profile
Re: IgnoreItem Issue
« Reply #4 on: October 06, 2017, 02:22:00 PM »
0
The problem is you aren't doing another finditem after you ignore the item to find another one.

Code: [Select]
   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
  }

Personally i would be using a repeat though to skip that initial finditem before you enter the while.

Code: [Select]
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
« Last Edit: October 06, 2017, 02:23:59 PM by manwinc »
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1512
  • Activity:
    12.4%
  • Reputation Power: 19
  • The Ghost is working their way up.The Ghost is working their way up.The Ghost is working their way up.
  • Respect: +11
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #5 on: October 06, 2017, 02:23:57 PM »
0
I love it when Manwinc talk :)   So do we need the 4 in their

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2511
  • Activity:
    2.2%
  • Reputation Power: 31
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +4
  • Referrals: 1
    • View Profile
Re: IgnoreItem Issue
« Reply #6 on: October 06, 2017, 02:27:21 PM »
0
The 4 Specifies the Index for the Ignored items. This is useful later on when you want to use Ignoreitem Reset to clear out your ignoreitem filter.

Ignoreitem #Findid 4

Ignoreitem Reset 4 <- Unignores all items that were ignored using 4.

This is only really necessary when dealing in things in mass quantity like Looting Corpses.

Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2511
  • Activity:
    2.2%
  • Reputation Power: 31
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +4
  • Referrals: 1
    • View Profile
Re: IgnoreItem Issue
« Reply #7 on: October 06, 2017, 02:29:43 PM »
0
And really what you are doing is no different than doing a for command using #Findindex.


Code: [Select]
   finditem %item_list c_ #BACKPACKID
if #Findcnt > 0
{
  For #Findindex 1 #Findcnt
  {
    exevent drag #FINDID
    wait 10
    exevent dropc %dropbag
    wait 10 
  }
}
« Last Edit: October 06, 2017, 02:34:08 PM by manwinc »
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1512
  • Activity:
    12.4%
  • Reputation Power: 19
  • The Ghost is working their way up.The Ghost is working their way up.The Ghost is working their way up.
  • Respect: +11
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #8 on: October 06, 2017, 02:33:31 PM »
0
And really what you are doing is no different than doing a for command using #Findindex.


   finditem %item_list c_ #BACKPACKID
if #Findcnt > 0
{
  For #Findindex 1 #Findcnt
  {
    exevent drag #FINDID
    wait 10
    exevent dropc %dropbag
    wait 10 
}

Thx that explain alot.    I  use this type lot of mining and ofter drag sub.  I now learn a new way.

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2511
  • Activity:
    2.2%
  • Reputation Power: 31
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +4
  • Referrals: 1
    • View Profile
Re: IgnoreItem Issue
« Reply #9 on: October 06, 2017, 02:34:31 PM »
0
I somehow tabbed out and it posted too fast, proper number of brackets now :P
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline BobOzarius

  • Jr. Member
  • **
  • Posts: 96
  • Activity:
    1.6%
  • Reputation Power: 1
  • BobOzarius has no influence.
  • Respect: +6
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #10 on: October 07, 2017, 07:52:08 AM »
0
I see how it is. I give the answer and manw gets the credit.  Damn you manw! haha

Offline Burnhazel88Topic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    1.8%
  • Reputation Power: 1
  • Burnhazel88 has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: IgnoreItem Issue
« Reply #11 on: October 09, 2017, 04:15:01 AM »
0
The problem is you aren't doing another finditem after you ignore the item to

Yeah I saw that later on. I think I just had too many hours in front of the screen. Start over later and it all became clear.

Post Merge: October 09, 2017, 07:29:17 AM
I indexed the items cause later in my script I need to grab them id's again for another task
« Last Edit: October 09, 2017, 07:29:17 AM by Burnhazel88 »

Tags: