Jump to content

help erro quest


Recommended Posts

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
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • 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
Share on other sites

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