Jump to content

drop event level limit problem


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
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

 

Link to comment
Share on other sites

  • 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

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



  • Similar Content

  • Activity

    1. 1

      Auto Bravery Cape

    2. 18

      Metin2 Closed Beta Content (2003-2004)

    3. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 25

      Experimental Renderer

    5. 1

      Auto Bravery Cape

    6. 0

      Very strange bug, when creating new char

    7. 5

      Horus Maps & Design

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.