What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Alternative Ways of Selling Items to an NPC

AltanaFFXI

New Member
Joined
Jan 25, 2016
Messages
11
I apologize if this isn't the place for questions like these, but I've hit a snag trying to work something into the profiles I'm writing. Everything in the forums I found via search just seems to say "just use CommonTasks.SellItem(bagslot,delay) or write a codechunk." I'm not super great with code since I have minimal/no coding background, but I pick up fast so if it's easier to point me to an example I may be able to figure out writing a CodeChunk.

I understand there's the CommonTasks.SellItem(bagslot,delay) function; however, is there a way to sell by item ID (i.e. how you can set item desynthesis by ID?) or even a "sell everything except" function? I'm trying to incorporate selling indicated drop/loot items during mendor visits.

My ultimate goal is to specifically sell the following items to the vendor in Idyllshire while keeping everything else (i.e. bait, collectables, etc.):
(1) various dye pigments, (2) allagan pieces, (3) HQ/NQ fine sand, (4) clear prisms. (Junk in general.)

Thank you, and again I apologize if this request for guidance does not belong here. I appreciate any guidance you are able to give me.
 
This should work.

Code:
var itemList = InventoryManager.FilledSlots;
var items = itemList.Where(r=>r.Item.RawItemId == 12312415);
if (items  != null)
{
	foreach(var item in items)
	{
		await CommonTasks.SellItem(item);
	}
}
 
This should work.

Code:
var itemList = InventoryManager.FilledSlots;
var items = itemList.Where(r=>r.Item.RawItemId == 12312415);
if (items  != null)
{
	foreach(var item in items)
	{
		await CommonTasks.SellItem(item);
	}
}

Wonderful! Thank you very much, mastahg!
 
Back
Top