Jump to content
×
×
  • Create New...
  • 0

Another npc dont open cube


MrKarpiuk

Question

Quest:

 

quest cube begin
	state start begin

		function cube_open(vnum)
			cube_results = {}
			cube_needs = {}

			cube_results[20018] = "50801,1/50802,1/50803,100/50804,100"
			cube_needs[20018] = "50721,[email protected],[email protected],[email protected],1"
			cube_results[20017] = "50801,1/50802,1/50803,100/50804,100/50813,1/50814,1/50815,100/50816,100"
			cube_needs[20017] = "50721,[email protected],[email protected],[email protected],[email protected],1&50725,[email protected],1&50725,[email protected],100&50726,[email protected],100&50726,1"
			cube_results[20022] = "50801,1/50802,1/50803,100/50804,100/50813,1/50814,1/50815,100/50816,100/50817,1/50818,1/50819,1/50820,1/50821,10/50822,10/50823,10/50824,10/50825,10/50826,10"
			cube_needs[20022] = "50721,[email protected],[email protected],[email protected],[email protected],1&50725,[email protected],1&50725,[email protected],100&50726,[email protected],100&50726,[email protected],1&50727,[email protected],1&50727,[email protected],100&50728,[email protected],100&50728,[email protected],10&50814,[email protected],10&50813,[email protected],10&50820,[email protected],10&50819,[email protected],10&50817,[email protected],10&50818,20"
			cube_results[20019] = "50801,1/50802,1/50803,100/50804,100"
			cube_needs[20019] = "50721,[email protected],[email protected],[email protected],1"
			cmdchat("cube_npc_id "..vnum.."")
			cmdchat("cs_result "..cube_results[vnum].."")
			cmdchat("cs_need "..cube_needs[vnum].."")
			command("cube open")

			return
		end

		when 20017.chat."Wytwarzanie Mikstur" with pc.level >= 30 begin
			setskin(NOWINDOW)
			cube.cube_open(20017)
		end

		when 20018.chat."Wytwarzanie Mikstur" with pc.level >= 15 begin
			setskin(NOWINDOW)
			cube.cube_open(20018)
		end

		when 20022.chat."Wytwarzanie Mikstur" with pc.level >=45 begin
			setskin(NOWINDOW)
			cube.cube_open(20022)
		end

		when 20019.chat."Wytwarzanie Mikstur" with pc.level >=1 begin
			setskin(NOWINDOW)
			cube.cube_open(20019)
		end
	end
end

Way npc 20019 dont open cube box only cane click to Wytwarzanie Mikstur.

Another npc open cube box

 

 

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Syser:

SYSERR: Oct 21 16:14:20 :: BuildStateIndexToName: QUEST wrong quest state file for quest new_cube
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 16:14:25 :: GetQuestStateIndex: QUEST wrong quest state file new_cube.start
SYSERR: Oct 21 17:42:23 :: BuildStateIndexToName: QUEST wrong quest state file for quest new_cube

 

 

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.