Page 1 of 1

Deleting items not working?

Posted: Tue Jul 09, 2013 1:42 pm
by Cindy

Code: Select all

		local x = inventory:findItem("Fresh Egg")
        if x then 
			printf("DEBUG: Fresh Egg in bag")
			x:delete();  yrest(1789); 
		end	
		x = inventory:findItem("Sack of Feed")
		if x then 
			printf("DEBUG: Sack of Feed in bag")
			x:delete(); yrest(1789); 
		end	
I see my debug message, but the item isn't deleted at all. Any suggestions?

Re: Deleting items not working?

Posted: Tue Jul 09, 2013 2:01 pm
by rock5
Works for me so I don't know what's wrong. Does everything else work? Are there any conflicting files in your rom folder?

Re: Deleting items not working?

Posted: Tue Jul 09, 2013 5:45 pm
by Cindy
Yeah, it works fine, except for the items remaining. How would I check for conflicting files?

Re: Deleting items not working?

Posted: Tue Jul 09, 2013 7:00 pm
by lisa
if you try to delete the item yourself do you need to type DELETE in the text box, some items are like that and I don't know if the item:delete() would do that for you.

Re: Deleting items not working?

Posted: Sun Jul 14, 2013 1:19 am
by kenzu38
I don't know if the item:delete() would do that for you.
item:delete() works for those items. Tried before with quest items.

Re: Deleting items not working?

Posted: Sun Jul 14, 2013 4:21 pm
by Cindy
not sure what is going on still, but on one computer it worked, on the other it didn't. (Was different characters as well)