Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

help erro quest


MORTE

Question

quest dropitem begin

state start begin

when 731.kill or 1332.kill or 2158.kill or 2036.kill or 1004.kill or 2133.kill or 2065.kill or 1105.kill or
        2304.kill or 1402.kill or 2313.kill or 2204.kill or 1137.kill or 2403.kill or 2412.kill begin
        if    game.get_event_flag("event_pepita") == 1 then
        local evpepita = number(1,30)
            if evpepita == 1 then
                game.drop_item_with_ownership(80008, 1)
        end
        end
    end

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
  • Former Staff

i'm not very good with questing but try this

quest dropitem begin
	state start begin
		when 731.kill or 1332.kill or 2158.kill or 2036.kill or 1004.kill or 2133.kill or 2065.kill or 1105.kill or
			2304.kill or 1402.kill or 2313.kill or 2204.kill or 1137.kill or 2403.kill or 2412.kill begin
        if game.get_event_flag("event_pepita") == 1 then
			local evpepita = number(1,30)
			if evpepita == 1 then
                game.drop_item_with_ownership(80008, 1)
			end
        end
    end
end
Link to comment
  • 0
  • Premium

Maybe?

quest dropitem begin
	state start begin
		when letter with pc.is_gm() begin
			send_letter("Dropitem event flag")
		end -- 1st when end

		when button or info begin
			say("Turn on the event?")
			say("")
			local s = select("Yes", "No")

			if s == 1 then
				game.set_event_flag("event_pepita", 1)
			else
				game.set_event_flag("event_pepita", 0)
			end -- 1st if statement end
		end --2nd when end

		when 731.kill or 1332.kill or 2158.kill or 2036.kill or 1004.kill or 2133.kill or 2065.kill or 1105.kill or 2304.kill or 1402.kill or 2313.kill or 2204.kill or 1137.kill or 2403.kill or 2412.kill begin

			if game.get_event_flag("event_pepita") == 1 then
				local evpepita = number(1,30)
				if evpepita == 1 then
					game.drop_item_with_ownership(80008, 1)
				end -- 3rd if statement end
			end -- 2nd if statement end
		end --3rd when end
	end -- state end
end -- quest end
Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 1

      Halloween 2021 Ninja M V2

    2. 0

      Visual Studio 2010 Ultimate

    3. 1

      Reduce server memory usage

  • Recently Browsing

    • No registered users viewing this page.

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.