Jump to content

V0iĐ

Premium
  • Posts

    154
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Posts posted by V0iĐ

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