Sign in to follow this  
Followers 0
bleakraven

[SKY] Removing an item belonging to a keyword

Hey there!

 

I have a house that requires furs in order to be fully furnished (comfy rugs, beds...). How can I remove an item from the player that is considered a fur item? Trying to removeItem using VendorItemAnimalHide didn't work... Is there a way to check if the player has 1 item of this kind and remove it, or do I have to make a huge IF list for every item that has this keyword?

 

Cheers

0

Share this post


Link to post
Share on other sites

You could create a new formlist with all the fur items in it. Then you can use the formlist like any object, get counts, remove items, etc..

0

Share this post


Link to post
Share on other sites

If I do that, and then call RemoveItem(myformlist, 1) will it then pick 1 object at random that belongs to that list and remove it?

0

Share this post


Link to post
Share on other sites

Not sure... it might, or it might remove one of each. :shrug: Give it a try and see.

0

Share this post


Link to post
Share on other sites

According to CK Wiki, it will remove one of each items, if the player has one of it.

 

 

If you pass in a form list, it will remove aiCount of each item in the form list from the container

 

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0