Jump to content

Recommended Posts

  • Premium

hey all

i have a problem

if moon drop event is on lvl 105 can have the box from wild dog

i had made a level_limit in the quest

but when i did it nothing is dropped from all monsters

here is my quest

quest etc_event begin
	state start begin
		when kill with game.get_event_flag("etc_event") == 1 begin
			local level = pc.get_level()
			local rate = pc.getqf("rate")
			local limit = tonumber(get_mob_level[npc.get_race()])
			local s = number(1, 100)
			if level < limit+11 then
				local drop = number(1,rate)
				if s <= 10 then
					game.drop_item(50011)
				elseif s <= 50 then
					game.drop_item(50011)
				end
			end
		end
	end
end

waiting for your help

kind regards

Link to comment
https://metin2.dev/topic/8287-drop-event-level-limit-problem/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try this:

quest etc_event begin
	state start begin
		when kill with game.get_event_flag("etc_event") == 1 begin
			local level = pc.get_level()
			local rate = pc.getqf("rate")
			local limit = get_mob_level(npc.get_race())
			local s = number(1, 100)
			if level < limit+11 then
				local drop = number(1,rate)
				if s <= 10 then
					game.drop_item(50011)
				elseif s <= 50 then
					game.drop_item(50011)
				end
			end
		end
	end
end

 

  • Premium

Try this:

quest etc_event begin
	state start begin
		when kill with game.get_event_flag("etc_event") == 1 begin
			local level = pc.get_level()
			local rate = pc.getqf("rate")
			local limit = get_mob_level(npc.get_race())
			local s = number(1, 100)
			if level < limit+11 then
				local drop = number(1,rate)
				if s <= 10 then
					game.drop_item(50011)
				elseif s <= 50 then
					game.drop_item(50011)
				end
			end
		end
	end
end

 

thanks but i had fixed it

  • Premium
quest mano_event begin
	state start begin
		when kill with game.get_event_flag("mano_drop") == 1 and not npc.is_pc() begin
			local s = number(1,250)
			if s == 1 then
				game.drop_item_with_ownership("50011",1)
			end
		end
	end
end

just use this it is simple than the first one

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.