Author Topic: Need a GetIsItemInBag  (Read 486 times)

Legacy_PhantomSkyfire

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Need a GetIsItemInBag
« Reply #15 on: March 13, 2011, 12:48:03 pm »


               

Lightfoot8 wrote...

PhantomSkyfire wrote...

To everyone else: I am a competant scripter and can write simple loops like this on my own, but I apperciate everyone taking their time to help me. Double-checking your code will save me some time from writing my own from scratch, at least.


If you do not want code and a function, you realy should not request a function or code.

PhantomSkyfire wrote...

I require a simple function that can determine whether an inputted item is in an inventory container such as a Bag of Holding. I remember having a working function at one point but I seem to have misplaced it and this one always seems to return FALSE:

.....

Any suggestions, fixes, or code snippits?

Well, "to everyone who offered up a code snippit involving a loop" is what I meant when I was refering to simple loops. However, now that you mention it, I suppose I did ask for code snippits so I guess I kinda deserved that.':crying:'
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need a GetIsItemInBag
« Reply #16 on: March 13, 2011, 02:28:16 pm »


               

PhantomSkyfire wrote...

Well, "to everyone who offered up a code snippit involving a loop" is what I meant when I was refering to simple loops. However, now that you mention it, I suppose I did ask for code snippits so I guess I kinda deserved that.':crying:'


Well Im Still confused,  Only two people have given code in this thread. Bragg and Me.  So the only Everyone else that I see is ME.  My code was not by any means a snippit.  It is a working function that returns the bag that the item is in.  True it does not return a TRUE/FALSE as requested, it returns a valid/invalid object.  I just thought that having the bag returned would be more usefull then a TRUE/FALSE.   You can always use GetIsObjectValid to return your true false.    
               
               

               
            

Legacy_PhantomSkyfire

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Need a GetIsItemInBag
« Reply #17 on: March 14, 2011, 05:22:49 am »


               

Lightfoot8 wrote...

PhantomSkyfire wrote...

Well, "to everyone who offered up a code snippit involving a loop" is what I meant when I was refering to simple loops. However, now that you mention it, I suppose I did ask for code snippits so I guess I kinda deserved that.':crying:'


Well Im Still confused,  Only two people have given code in this thread. Bragg and Me.  So the only Everyone else that I see is ME.  My code was not by any means a snippit.  It is a working function that returns the bag that the item is in.  True it does not return a TRUE/FALSE as requested, it returns a valid/invalid object.  I just thought that having the bag returned would be more usefull then a TRUE/FALSE.   You can always use GetIsObjectValid to return your true false.    


I'm confused now too! I think I'll just give you a hug as thanks for your work and we can get on our way. ':wub:'
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need a GetIsItemInBag
« Reply #18 on: March 14, 2011, 08:30:51 pm »


               Lightfoot8, -1 rep.  

Sounds good.  Guess I am jumping to the wrong conclusions again.  

Have you gotten everything working the way you need it to?