Deleting items not working?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Deleting items not working?

#1 Post by Cindy » Tue Jul 09, 2013 1:42 pm

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?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Deleting items not working?

#2 Post by rock5 » Tue Jul 09, 2013 2:01 pm

Works for me so I don't know what's wrong. Does everything else work? Are there any conflicting files in your rom folder?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Deleting items not working?

#3 Post by Cindy » Tue Jul 09, 2013 5:45 pm

Yeah, it works fine, except for the items remaining. How would I check for conflicting files?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Deleting items not working?

#4 Post by lisa » Tue Jul 09, 2013 7:00 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Deleting items not working?

#5 Post by kenzu38 » Sun Jul 14, 2013 1:19 am

I don't know if the item:delete() would do that for you.
item:delete() works for those items. Tried before with quest items.

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Deleting items not working?

#6 Post by Cindy » Sun Jul 14, 2013 4:21 pm

not sure what is going on still, but on one computer it worked, on the other it didn't. (Was different characters as well)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 6 guests