Jump to content

Recommended Posts

I'm trying to write a quest/source so that when player has 10x of an item,  the item gets removed and replaced by another item. Can someone help

I've tried many things, didn't work as intended because quest has only when login to check for the amount of item.. I want it to be rather dynamic.

Edited by covfefe
clarification
Link to comment
https://metin2.dev/topic/28539-automatically-transform-to-another-item/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

quest change_items begin
    state start begin
		when kill or login or logout or levelup begin
			if pc.count_item(30132) >= 10 then
				pc.remove_item(30132, 10)
				pc.give_item2(30013)
			end -- if 

		end -- when
	end -- state
end -- quest

 

47 minutes ago, FALLEN1 said:
quest change_items begin
    state start begin
		when kill or login or logout or levelup begin
			if pc.count_item(30132) >= 10 then
				pc.remove_item(30132, 10)
				pc.give_item2(30013)
			end -- if 

		end -- when
	end -- state
end -- quest

 

I  appreciate this bro its not working like i want, i want item automatically transformed without logn or kill lvl up trigger, for example, if traded or bought and u now have 10 of it

Edited by covfefe

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.