Jump to content

Recommended Posts

Have some problem to complete a quest that I first need an item then use it on an object.

I want to end part one with the "Is complete condition".

What code should I use?

Would really appreciate some assistance here.

Quote

return ItemsManager.XXXXXXXX

 

Link to comment
https://wrobot.eu/forums/topic/4618-is-complete-condition-get-item/
Share on other sites

Hello,

If you want complete quest when you don't have item in bag (1234 is item id): 

return wManager.Wow.Helpers.ItemsManager.GetItemCountByIdLUA(1234) <= 0;

Or if you want complete quest when you have item in bag (1234 is item id): 

return wManager.Wow.Helpers.ItemsManager.GetItemCountByIdLUA(1234) >= 3;

(replace 3 by minimun item count)

 

  • 7 months later...

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
×
×
  • Create New...