Jump to content

Another npc dont open cube


Recommended Posts

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,1@50722,1@50723,1@50724,1"
			cube_results[20017] = "50801,1/50802,1/50803,100/50804,100/50813,1/50814,1/50815,100/50816,100"
			cube_needs[20017] = "50721,1@50722,1@50723,1@50724,1@50801,1&50725,1@50802,1&50725,1@50803,100&50726,1@50804,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,1@50722,1@50723,1@50724,1@50801,1&50725,1@50802,1&50725,1@50803,100&50726,1@50804,100&50726,1@50813,1&50727,1@50814,1&50727,1@50815,100&50728,1@50816,100&50728,1@50901,10&50814,20@50901,10&50813,20@50901,10&50820,20@50901,10&50819,20@50901,10&50817,20@50901,10&50818,20"
			cube_results[20019] = "50801,1/50802,1/50803,100/50804,100"
			cube_needs[20019] = "50721,1@50722,1@50723,1@50724,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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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.