Jump to content

Real time item counting quest function


Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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