Jump to content
  • 0

Real time item counting quest function


ToroRosso

Question

2 answers to this question

Recommended Posts

  • 0
1 minute ago, caanmasu said:
define SOURCE_VNUM_ITEM 30006
define SOURCE_COUNT_ITEM 10
define TARGET_VNUM_ITEM 30007

quest pick_item begin
	state start begin
		when SOURCE_ITEM.pick with pc.count_item(SOURCE_ITEM) >= SOURCE_COUNT_ITEM begin
			pc.remove_item(SOURCE_VNUM_ITEM, SOURCE_COUNT_ITEM)
			pc.give_item2(TARGET_VNUM_ITEM)
		end
	end
end

 

Yeah, thanks, i just realised an hour ago, the pick function is already exist. 😄

Link to comment
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


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.