Jump to content
  • Create New...
  • 0

Searching for quest.



2 answers to this question

Recommended Posts

  • 0
  • Premium
quest event_drop begin
    state start begin
		local name_event = "name_of_event"
		local level_min = 75	-- level min for drop
		local level_max = 90	-- level max for drop
		local prob = 10			--	10% chance of drop
		local item_vnum = 50513	-- item that you want drop in event
		local item_quantity = 1 -- quantity of item that you want drop
		when kill with npc.is_pc() == false and game.event_flag(name_event) == 1 begin
			if pc.get_level() >= level_min and pc.get_level() <= level_max then	-- remove this line if you don't want level limit
				if number(1,100) <= prob then
					game.drop_item_with_ownership(item_vnum, item_quantity)
			end																	-- remove this line if you don't want level limit


  • Love 1
Link to comment
Share on other sites

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

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.