function caoyao(id,npcID)

	y=flag.GetValue(15093)		--获取小地图计数。
	global.Print(npcID)
	global.Print(id)
	pid=player.GetMainPlayer()	--获取当前玩家ID
	Exp=player.GetExp(pid)		--获取当前经验
	--npcID=npc.GetCurrentID()		--获取目标npcID编号
	px,py,pz=player.GetPos(pid)		--获取当前玩家位置
	ndid=npc.GetTemplateID(npcID)	--获取目标npc的数据ID
	--nx,ny,nz=npc.GetPos(npcID)		--获取目标NPC位置。	
-----输出信息-------------

	global.Print(ndid)
	
	player.Control(0)

---------江洋大盗称号获得-------------	
	jyd=flag.GetValue(15255)
	jyd=jyd+1
	flag.SetValue(15255,jyd)
	global.Print(jyd)
	global.AddTimer(0.5,13279)
-----------------------------------------
------------------------------拾取物计数----------------------------------

--[[	if npc.GetTemplateID(npcID)==4364	then		---如果是矿石，计数。
			k=flag.GetValue(15067)
			k=k+1
			flag.SetValue(15067,k)
			if k==1 and player.GetTitleStat(6073)==0 then	--第一次采矿
			player.AddTitleList(6073,0)		---称号“披沙拣金”提示
			ui.Message(72803)--开启新的称号提示
			elseif k==101 and player.GetTitleStat(6074)==0 then	--第101次采矿
			player.AddTitleList(6074,0)		---称号“慧眼识晶”提示
			ui.Message(72804)			--开启新的称号提示
			end
	elseif	npc.GetTemplateID(npcID)==94	then		--如果是草药，计数。
			c=flag.GetValue(15068)
			c=c+1
			flag.SetValue(15068,c)
			if c==1 and player.GetTitleStat(6071)==0 then	--第一次采药
				player.AddTitleList(6071,0)		---称号“百草慧心”提示
				ui.Message(72805)--开启新的称号提示
			elseif c==101 and player.GetTitleStat(6072)==0 then	--第101次采药
				player.AddTitleList(6072,0)		---称号“药海芝仙”提示
				ui.Message(72806)			--开启新的称号提示
			end
	end
]]--
	----------------------------

		--flag.SetValue(45000,0)

--------明州、夏侯家----------------------
	
    if id == 17001 then          --明州码头		--木桶
		player.SetAnim(pid,31)
		global.Wait(2) 
		npc.Destroy(npcID)
		global.PlaySound(4134,100)
		global.CreateSE(4843,7441,316,4276)
		player.AddItem(71,2,1)
		
	elseif id == 17002 then          --明州码头		--木桶
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,6823,228,5048)
			player.AddItem(105,1,1)
	elseif id == 17003 then          --明州码头		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,7645,228,5043)
			player.AddItem(106,1,1)	
	elseif id == 17004 then          --明州酒家
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(110,2,1)	
			ui.Popo(72807,2,0,0)--这是谁留下来的呢？
	elseif id == 17005 then          --貌似民居
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(125,3,1)	
	elseif id == 17006 then          --明州码头		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,7679,228,5038)
			player.AddItem(110,1,1)
	elseif id == 17007 then          --夏侯院内
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(125,5,1)			
	elseif id == 17008 then          --夏侯院内假山
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(110,1,1)		
	elseif id == 17009 then          --夏侯院内
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(1,1,1)	
	elseif id == 17010 then          --夏侯院内
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(1,1,1)	
	elseif id == 17011 then          --夏侯院内
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(1,1,1)	
	elseif id == 17012 then          --夏侯院内棋盘下
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(117,1,1)	
	elseif id == 17013 then          --明州民居～烤鸭
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(38,1,1)				
			
---------晴碧坡-------------------------------

--透明物类
	elseif id == 17021 then          --包子后面
			player.SetAnim(pid,203)
			global.Wait(2)
			npc.Destroy(npcID)
			player.AddItem(50,1,1)	
	elseif id == 17022 then          --竹筏前面
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(50,1,1)	
	elseif id == 17023 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(73,1,1)	
	elseif id == 17024 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(73,1,1)	
	elseif id == 17025 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(73,1,1)	
	elseif id == 17026 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(611,3,1)		--重楼
			player.AddExp(20)
	elseif id == 17027 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(611,5,1)		--重楼
			player.AddExp(20)
	elseif id == 17028 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(601,4,1)		--灯芯草
			player.AddExp(20)
	elseif id == 17029 then          
			player.SetAnim(pid,203)
			global.Wait(2) 
			npc.Destroy(npcID)
			player.AddItem(601,4,1)		--灯芯草
			player.AddExp(20)
--草药类			
	elseif id == 17030 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(21,1,1)
			player.AddExp(20)
	elseif id == 17031 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(1,2,1)
			player.AddExp(20)
	elseif id == 17032 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(121,1,1)
			player.AddExp(20)
	elseif id == 17033 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(8,1,1)
			player.AddExp(20)
	elseif id == 17034 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(121,1,1)
			player.AddExp(20)
	elseif id == 17037 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(603,4,1)	--曼陀罗
			player.AddExp(20)
	elseif id == 17040 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(603,3,1)	--曼陀罗
			player.AddExp(20)			

--细小闪光----
	elseif id == 17035 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(50,1,1)
			ui.Popo(72808,2,pid,0)--平原也有这种果子？搞不好是那包子带来的。
	elseif id == 17036 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(2,1,1)
	elseif id == 17038 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(72,1,1)

---------绿村-----------------------

------透明NPC类-----------

	elseif id == 17041 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(7,1,1)
			
	elseif id == 17042 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(23,1,1)
			
	elseif id == 17043 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(7,1,1)
			
	elseif id == 17044 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(23,1,1)
			
	elseif id == 17045 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			ui.Popo(72809,2,pid,0)		--客房的柜子里能有什么东西？
	elseif id == 17046 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddMoney(500,1)
			ui.Popo(72810,2,pid,0)					--谁这么粗心落这儿的？
	elseif id == 17049 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(38,1,1)
	elseif id == 17050 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(38,1,1)
	elseif id == 17051 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(125,1,1)
			
----------绿村瓦罐---------
	elseif id == 17052 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,2089,99,3229)
			player.AddItem(71,1,1)
	elseif id == 17053 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,2039,104,3256)
			player.AddItem(72,1,1)
	elseif id == 17054 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,3210,26,2280)
			player.AddItem(73,1,1)		
	elseif id == 17055 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,3196,26,2293)
			player.AddItem(74,1,1)	
			

			
			

---------石林-----------------------

--草药---------
	elseif id == 17056 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(605,1,1)		--丁香
			player.AddExp(50)
	elseif id == 17057 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(24,1,1)
			player.AddExp(50)
	elseif id == 17058 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(24,1,1)
			player.AddExp(50)
	elseif id == 17059 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(8,1,1)
			player.AddExp(50)
	elseif id == 17060 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(26,1,1)
			player.AddExp(50)
	elseif id == 17061 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(21,1,1)
			player.AddExp(50)
	elseif id == 17062 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(608,4,1)
			player.AddExp(50)
	elseif id == 17069 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(606,2,1)
			player.AddExp(50)	
	elseif id == 17070 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(602,4,1)		--龙骨
			player.AddExp(50)
	elseif id == 17071 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(602,6,1)		--龙骨
			player.AddExp(50)			
--细小闪光类
	elseif id == 17063 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(117,1,1)
	elseif id == 17064 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(106,2,1)
	elseif id == 17065 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddEquip(4023,1,1)		--土之宿石
			player.AddEquip(4017,1,1)		--风之宿石
			ui.Popo(72811,2,pid,0)--看来是那个魔族人丢下的。
			y=y+1
			flag.SetValue(15093,y)
			ui.Message(72812)--获得千峰岭地图
			flag.SetValue(16938,1)
			global.AddTimer(0.5,13279)
			
			
			
--矿石类--------
	elseif id == 17066 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddExp(50)
	elseif id == 17067 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(614,3,1)
			player.AddExp(50)
	elseif id == 17068 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(614,2,1)
			player.AddExp(50)
			
			
			
			
			
			
-----------------折剑山庄------------------------------
	elseif id == 17076 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(23,1,1)	
	elseif id == 17077 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(18,2,1)				
	elseif id == 17078 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(18,1,1)				
	elseif id == 17079 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(2,2,1)	
			player.AddItem(3,1,1)	
	elseif id == 17080 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(3,2,1)	
			player.AddItem(35,2,1)					
	elseif id == 17081 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(102,2,1)				
	elseif id == 17082 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(125,2,1)
	
	elseif id == 17083 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(16,1,1)			
	elseif id == 17084 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(101,1,1)			
	elseif id == 17085 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddMoney(500,1)				
			ui.Popo(72813,2,pid,0)--哪个冒失鬼丢的？
	elseif id == 17086 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(119,1,1)
			
	elseif id == 17091 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(18,2,1)
	elseif id == 17092 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(18,2,1)		
			

--草药类-----------
	elseif id == 17087 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(1,1,1)
	elseif id == 17088 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)
	elseif id == 17089 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(16,1,1)
	elseif id == 17090 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(33,1,1)
			
------木箱----------------
	elseif id == 17093 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAnim(221,1)
			global.Wait(1)
			npc.SetAppear(221,0)
			player.AddItem(33,1,1)
	elseif id == 17094 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAnim(222,1)
			global.Wait(1)
			npc.SetAppear(222,0)
			player.AddMoney(300,1)
			
	elseif id == 17095 then          
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAnim(223,1)
			global.Wait(1)
			npc.SetAppear(223,0)
			player.AddItem(33,1,1)			
	
			
------雪石路----------------
--透明NPC




--草药类4
	elseif id == 17099 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,4,1)		--雪里见
			player.AddExp(150)
	elseif id == 17100 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(150)
	elseif id == 17101 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(602,3,1)		--龙骨
			player.AddExp(150)	
	elseif id == 17102 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(607,2,1)		--雪里见
			player.AddExp(150)
	elseif id == 17103 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(602,1,1)		--龙骨
			player.AddExp(150)
	elseif id == 17104 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(150)
	elseif id == 17105 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(51,1,1)
			player.AddExp(150)
	elseif id == 17106 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(607,2,1)		--雪里见
			player.AddExp(150)
	elseif id == 17107 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(150)
	elseif id == 17108 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(16,1,1)
			player.AddExp(150)
	elseif id == 17109 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(16,1,1)
			player.AddExp(150)
	elseif id == 17114 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(602,3,1)
			player.AddExp(150)		

--矿石类
	elseif id == 17110 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)		
			player.AddItem(616,2,1)		--赤铜矿
			player.AddExp(150)
	elseif id == 17111 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(616,1,1)		--赤铜矿
			player.AddExp(150)

--细小闪光类
	elseif id == 17112 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(117,1,1)
	elseif id == 17113 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(52,1,1)
			
			
			
			
			
			

			
---------萍山--------------

--草药类

	elseif id == 17131 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(24,2,1)
			player.AddExp(200)
	elseif id == 17132 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)	
			player.AddItem(604,2,1)
			player.AddExp(200)
	elseif id == 17133 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(606,2,1)
			player.AddExp(200)			
	elseif id == 17134 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(8,1,1)
			player.AddExp(200)
	elseif id == 17135 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(606,2,1)
			player.AddExp(200)
	elseif id == 17136 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(606,2,1)
			player.AddExp(200)
	elseif id == 17137 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(21,1,1)
			player.AddExp(200)
	elseif id == 17138 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(604,2,1)
			player.AddExp(200)
	elseif id == 17139 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(200)
	elseif id == 17140 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(604,1,1)
			player.AddExp(200)
	elseif id == 17141 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(19,1,1)
			player.AddExp(200)
	elseif id == 17142 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(19,1,1)
			player.AddExp(200)

--矿石类---------------
	elseif id == 17143 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,2,1)
			player.AddExp(200)
	elseif id == 17144 then          
			player.SetAnim(pid,203)
			global.Wait(1) 
			npc.Destroy(npcID)
			player.AddItem(616,1,1)
			player.AddExp(200)
	elseif id == 17145 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)
			player.AddExp(200)
	elseif id == 17146 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,2,1)
			player.AddExp(200)
	elseif id == 17147 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,3,1)	
			player.AddExp(200)
----------灵石拾取----------------------
	elseif id == 17148 then     
			player.SetAnim(pid,203)
			global.Wait(2)
			camera.ChangeCameraStatic(7315,731,6250,7287,685,6166)
			npc.Destroy(npcID)
			global.CreateSE(3446,7232,572,6021)
			global.Wait(1.7)
			global.PlaySound(509,100)
			global.Wait(0.5)
			global.CreateSE(3447,7232,572,6021)
			global.Wait(0.5)
			global.ClearSE(3447)
			camera.ChangeCameraFree()
			player.AddItem(719,1,1)
			player.AddItem(772,1,1)
	elseif id == 17149 then          
			player.SetAnim(pid,203)
			global.Wait(2)
			camera.ChangeCameraStatic(6403,763,4999,6378,712,4916)
			npc.Destroy(npcID)
			global.CreateSE(3446,6328,562,4746)
			global.Wait(1.7)
			global.PlaySound(509,100)
			global.Wait(0.5)
			global.CreateSE(3447,6328,562,4746)
			global.Wait(0.5)
			global.ClearSE(3447)
			camera.ChangeCameraFree()
			player.AddItem(745,1,1)
			
	elseif id == 17150 then          
			global.BeginScene()
			player.Control(0)
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.SetAnim(npcID,501)
			npc.Disable(191)
			global.CreateSE(4395,6409,897,3731)
			npc.SetAppear(191,0)
			npc.Create(4389,199,6409,3731)			--建立陷阱包子
			npc.SetAt(199,0,-1)
			npc.Destroy(191)
			global.Wait(1)
			ui.Popo(89692,1,199,0)			--打扰我休息，嘿嘿，不可原谅！
			flag.SetValue(15109,1)
			battle.Begin(2035,317)
----------萍山翻滚石头------------------------
	elseif id == 17365 then          
			player.SetAnim(pid,31)
			npc.Disable(npcID)
			global.Wait(2)
			npc.SetAnim(231,1)
			global.PlaySound(2057,100)
			global.Wait(1)
			player.AddItem(125,10,1)
	elseif id == 17366 then          
			player.SetAnim(pid,31)
			npc.Disable(npcID)
			global.Wait(2)
			npc.SetAnim(232,1)
			global.Wait(1)
			player.AddItem(54,1,1)		
	elseif id == 17367 then          
			player.SetAnim(pid,31)
			npc.Disable(npcID)
			global.Wait(2)
			npc.SetAnim(233,1)
			global.Wait(1)
			player.AddItem(54,1,1)			

--楼兰古城------------------

--细小闪光----------------
	elseif id == 17151 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(200,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(200,0)
			player.AddItem(106,1,1)
	elseif id == 17152 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(201,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(201,0)
			player.AddItem(23,1,1)				
	elseif id == 17153 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(202,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(202,0)
			player.AddItem(23,1,1)	
	elseif id == 17154 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(23,1,1)
	elseif id == 17155 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(7,1,1)	
	elseif id == 17162 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(23,1,1)	
-------------楼兰木箱-------------------
	elseif id == 17163 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(211,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(211,0)
			player.AddItem(24,1,1)
	elseif id == 17164 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(212,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(212,0)
			player.AddItem(25,1,1)	
	elseif id == 17165 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(213,1)
			global.Wait(1)
			npc.Disable(npcID)
			global.PlaySound(4134,100)
			npc.SetAppear(213,0)
			player.AddItem(34,1,1)		
			
			
---楼兰室内-----------			

	elseif id == 17156 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	

	elseif id == 17157 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	

	elseif id == 17158 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	
	elseif id == 17159 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	
	elseif id == 17160 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	
	elseif id == 17161 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(15,1,1)	

		
			
			

--楼兰外城------------------
	elseif id == 17171 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,4389,2,2861)
			player.AddItem(112,1,1)
	elseif id == 17172 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,4160,9,2917)
			player.AddItem(7,1,1)
	elseif id == 17173 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,3065,4,3292)
			player.AddMoney(1000,1)			
	elseif id == 17174 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,3667,53,4292)
			player.AddMoney(500,1)	
	elseif id == 17175 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,4280,53,4048)
			player.AddMoney(500,1)
	elseif id == 17176 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,2375,53,4634)
			player.AddItem(123,1,1)
	elseif id == 17177 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddMoney(400,1)
	elseif id == 17178 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(35,1,1)
	elseif id == 17179 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,323,2,2837)
			player.AddMoney(400,1)
	elseif id == 17180 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4847,713,56,1485)
			player.AddItem(118,1,1)
	elseif id == 17181 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)
	elseif id == 17182 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(109,3,1)
			
----------楼兰戈壁-------------

-------草药类-----------
	elseif id == 17206 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(606,3,1)	
			player.AddExp(300)
	elseif id == 17207 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(606,2,1)	
			player.AddExp(300)
	elseif id == 17208 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,2,1)		--山苦菜
			player.AddExp(300)
	elseif id == 17209 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(300)
	elseif id == 17215 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,5,1)
			player.AddExp(300)						

-------细小闪光类----------
	elseif id == 17210 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(125,1,1)		
	elseif id == 17211 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(125,1,1)		

-------矿石类-----------------			
	elseif id == 17212 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,2,1)		--赤铜矿
			player.AddExp(300)
	elseif id == 17213 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)		--赤铜矿
			player.AddExp(300)
	elseif id == 17214 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,4,1)		--铁矿石
			player.AddExp(300)
			
			

-----------开封-----------------

----------透明NPC------------
	elseif id == 17226 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(250)
			player.AddItem(50,1,1)	
			ui.Popo(72814,2,pid,0)				--哈哈，竟然藏着好东西。
	elseif id == 17227 then          
			--player.SetAnim(pid,203)
			global.Wait(1)
			ui.Message(72815)--看啥呢？里面什么也没有。
			flag.SetValue(17227,0)
			--npc.Destroy(npcID)
			--player.AddItem(50,1,1)
	elseif id == 17228 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(252)
			player.AddItem(18,1,1)			
	elseif id == 17229 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(253)
			player.AddItem(605,1,1)			
	elseif id == 17230 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(254)
			player.AddItem(72,1,1)				
	elseif id == 17231 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(255)
			player.AddItem(23,1,1)
------开封室内--------------
	elseif id == 17232 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(111,2,1)	
	elseif id == 17233 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(14,2,1)	
	elseif id == 17234 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(3,1,1)	
			player.AddItem(20,1,1)	
	elseif id == 17235 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(32,2,1)	
			player.AddItem(26,2,1)			
	elseif id == 17236 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(260)
			player.AddItem(117,1,1)	
	elseif id == 17237 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(125,10,1)			
	elseif id == 17238 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(18,2,1)	




			
			
--细小闪光------------
	elseif id == 17236 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(260)
			player.AddItem(117,1,1)

			
			
			
			
----幻木小径-------------
--草药类-----------------
	elseif id == 17291 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,3,1)		--山苦菜
			player.AddExp(350)
	elseif id == 17292 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(56,1,1)
			player.AddExp(350)
	elseif id == 17293 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(22,1,1)
			player.AddExp(350)
	elseif id == 17294 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(603,4,1)	
			player.AddExp(350)
	elseif id == 17295 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,6,1)	
			player.AddExp(350)
	elseif id == 17296 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,4,1)	
			player.AddExp(350)
	elseif id == 17297 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(606,4,1)		--八宝景天
			player.AddExp(350)
	elseif id == 17298 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(603,5,1)	
			player.AddExp(350)
	elseif id == 17299 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(603,3,1)
			player.AddExp(350)
	elseif id == 17300 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(350)
	elseif id == 17305 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(605,5,1)		--丁香
			player.AddExp(350)
	elseif id == 17306 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,5,1)		--紫萱草
			player.AddExp(350)	
	elseif id == 17307 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,3,1)		--紫萱草
			player.AddExp(350)					
			
------矿石类---------
	elseif id == 17301 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,4,1)		--赤铜矿
			player.AddExp(350)
	elseif id == 17302 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,2,1)		--赤铜矿
			player.AddExp(350)			
					
			
------姜承支线---------			
	elseif id == 10146 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10147 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10148 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10149 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10150 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10151 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10152 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10153 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10154 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10155 then	--不可捡
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			global.CallScript(14231)
	elseif id == 10156 then	--可捡
			global.CallScript(14232)
			
			
								

---------青木村------------------	

------细小闪光类-----------
		
	elseif id == 17311 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)	
	elseif id == 17312 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4843,3751,1554,2337)
			player.AddItem(21,1,1)	
	elseif id == 17313 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(72,1,1)
	elseif id == 17314 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)
	elseif id == 17315 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4843,3122,1319,1586)
			player.AddItem(21,1,1)
	elseif id == 17316 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)			
	elseif id == 17317 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4843,2042,963,2479)
			player.AddItem(1,1,1)	
	elseif id == 17318 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(22,1,1)			
	elseif id == 17319 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(72,1,1)	
	elseif id == 17320 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)

-------青木村瓦罐-------------------
	elseif id == 17321 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,2218,966,2866)
			player.AddItem(1,1,1)
	elseif id == 17322 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.PlaySound(4124,80)
			global.CreateSE(4840,2384,966,2661)
			player.AddItem(1,1,1)			
	
			
------透明NPC类------------

	elseif id == 17318 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(1,1,1)			
			
			
			

--------蜀山-----------

-----透明NPC-------------

	elseif id == 17326 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(23,1,1)
	elseif id == 17327 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			ui.Popo(72816,2,pid,0)--不愧是蜀山，厨房里都有这种东西。。
			player.AddItem(53,2,1)						
	elseif id == 17328 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			ui.Popo(72817,2,pid,0)		--后期可根据主线旗标进行调整--翻人家枕头。。。这不太好吧。。
			flag.SetValue(17328,0)
	elseif id == 17329 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			ui.Message(72818)--你翻了翻书架上的书，发现了一张卡片。
			player.AddItem(521,1,1)		--徐长卿卡牌
			player.AddItem(515,1,1)		--景天卡牌
			js=flag.GetValue(15123)
			js=js+3
			flag.SetValue(15123,js)				
	elseif id == 17330 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(11,1,1)			
	elseif id == 17331 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			ui.Message(72819)		--根据主角力量属性进行判定、并拾取。--你试图拿起这柄剑，可是剑却纹丝不动。
			flag.SetValue(17331,0)		
	elseif id == 17332 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(36,1,1)
	elseif id == 17333 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(13,1,1)
	elseif id == 17334 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(13,1,1)
	elseif id == 17335 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(13,1,1)			
			



--------仙竹林1----------
	elseif id == 17346 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(21,1,1)
			player.AddExp(400)
	elseif id == 17347 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,6,1)		--山苦菜
			player.AddExp(400)
	elseif id == 17348 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(608,3,1)		--龙葵草
			player.AddExp(400)
	elseif id == 17349 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(606,3,1)		--八宝景天
			player.AddExp(400)
	elseif id == 17350 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(606,5,1)		--八宝景天
			player.AddExp(400)

-----仙竹林2---------------
	elseif id == 17351 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,4,1)		--紫萱草
			player.AddExp(400)
	elseif id == 17352 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,3,1)		--重楼
			player.AddExp(400)
	elseif id == 17353 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,3,1)		--重楼
			player.AddExp(400)
	elseif id == 17354 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(73,1,1)
			player.AddExp(400)
	elseif id == 17355 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,1,1)
			player.AddExp(400)

-----仙竹林3----------------


	elseif id == 17356 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(400)

----绚光殿-------------------

	elseif id == 17381 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(111,1,1)
	elseif id == 17382 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(101,1,1)
	elseif id == 17383 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(102,1,1)
	elseif id == 17384 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(103,1,1)
--	elseif id == 17385 then          
	--		player.SetAnim(pid,203)
	--		global.Wait(1)
	--		npc.Destroy(npcID)
	--		player.AddItem(104,1,1)			
	elseif id == 17386 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(105,1,1)
	elseif id == 17387 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(106,1,1)
	--elseif id == 17388 then          
--			player.SetAnim(pid,203)
	--		global.Wait(1)
	--		npc.Destroy(npcID)
	--		player.AddItem(107,1,1)
	elseif id == 17389 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(108,1,1)			
	elseif id == 17390 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(109,1,1)				
	elseif id == 17391 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(110,1,1)				
	elseif id == 17392 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(111,1,1)				
	elseif id == 17393 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(111,1,1)			
			
			
			
			
			

----蜀山禁洞-----------------

----草药类------------

	elseif id == 17396 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(9,2,1)
			player.AddExp(450)
	elseif id == 17397 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(22,1,1)
			player.AddExp(450)
	elseif id == 17398 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(19,1,1)
			player.AddExp(450)
	elseif id == 17399 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,3,1)
			player.AddExp(450)
	elseif id == 17400 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(9,3,1)
			player.AddExp(450)
	elseif id == 17406 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,6,1)
			player.AddExp(450)			

------矿石类-------随机开宝石----------
			
	elseif id == 17401 then  
		a=battle.GetRndNumber(1,100)
		if a<=95 then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddExp(450)
		else
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			ui.Popo(72820,2,pid,0)		--哈，意外收获！
			player.AddItem(619,1,1)
			player.AddExp(450)
		end			
	elseif id == 17402 then          
		a=battle.GetRndNumber(1,100)
		if a<=95 then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)	
			player.AddExp(450)
		else
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)	
			ui.Popo(72821,2,pid,0)				--哈，意外收获！
			player.AddItem(620,1,1)
			player.AddExp(450)
		end				
	elseif id == 17403 then          
		a=battle.GetRndNumber(1,100)
		if a<=95 then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddExp(450)
		else
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			ui.Popo(72822,2,pid,0)				--哈，意外收获！
			player.AddItem(619,1,1)
			player.AddExp(450)
		end				
	elseif id == 17404 then          
		a=battle.GetRndNumber(1,100)
		if a<=95 then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)
			player.AddExp(450)
		else
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,1,1)	
			ui.Popo(72823,2,pid,0)				--哈，意外收获！
			player.AddItem(620,1,1)	
			player.AddExp(450)
		end				
	elseif id == 17405 then          
		a=battle.GetRndNumber(1,100)
		if a<=95 then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddExp(450)
		else
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)	
			ui.Popo(72824,2,pid,0)				--哈，意外收获！
			player.AddItem(619,1,1)	
			player.AddExp(450)
		end				
			
			
			
			
			
			



----神降秘境（前）-----------------

-------草药类---------------

	elseif id == 17431 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,3,1)		--紫萱草
			player.AddExp(500)
	elseif id == 17432 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(603,4,1)		--曼陀罗
			player.AddExp(500)
	elseif id == 17433 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(56,1,1)
			player.AddExp(500)
	elseif id == 17434 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(500)
	elseif id == 17435 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(603,5,1)		--曼陀罗
			player.AddExp(500)
	elseif id == 17436 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,3,1)		--紫萱草
			player.AddExp(500)
	elseif id == 17437 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(33,1,1)
			player.AddExp(500)
	elseif id == 17438 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,3,1)		--重楼
			player.AddExp(500)

	elseif id == 17439 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			--ui.Popo(72825,2,pid,0)--好奇异的花啊，香气闻了有点晕～
			player.AddItem(606,4,1)
			player.AddExp(500)
	elseif id == 17440 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			--ui.Popo(72826,2,pid,0)--哇，这花比之前看到的那个还诡异。
			player.AddItem(112,1,1)
			player.AddExp(500)
	elseif id == 17441 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			--ui.Popo(72827,2,pid,0)--这花散发出奇特的光芒，跟其他花不一样啊。
			player.AddItem(604,6,1)		--山苦菜
			player.AddExp(500)

----神降秘境（后）-----------------

	elseif id == 17455 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,5,1)		--雪里见
			player.AddExp(500)
	elseif id == 17456 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(602,4,1)		--龙骨
			player.AddExp(500)
	elseif id == 17457 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(56,1,1)
	elseif id == 17458 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(22,1,1)
			player.AddExp(500)
	elseif id == 17459 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(602,6,1)		--龙骨
			player.AddExp(500)
	elseif id == 17460 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(500)

----蚩尤遗迹1-------------

----矿石类-----------

	elseif id == 17471 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,3,1)		--赤铜矿
			player.AddExp(550)
	elseif id == 17472 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,2,1)		--赤铜矿
			player.AddExp(550)
	elseif id == 17473 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(616,3,1)		--赤铜矿
			player.AddExp(550)
	elseif id == 17474 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddItem(620,1,1)		--紫英石
			player.AddItem(619,2,1)		--天河石
			player.AddExp(550)
	elseif id == 17475 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddItem(622,2,1)		--琉璃
			player.AddExp(550)

----细小闪光----------
	
	elseif id == 17476 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(613,4,1)		--兽皮
	elseif id == 17477 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,4,1)		--重楼
			player.AddExp(550)
	elseif id == 17478 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,6,1)		--重楼
			player.AddExp(550)
			
----翻滚的石头--------
	elseif id == 17483 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Disable(npcID)
			npc.SetAnim(221,1)
			global.Wait(1)
			player.AddItem(54,1,1)
	elseif id == 17484 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Disable(npcID)
			npc.SetAnim(222,1)
			global.Wait(1)
			player.AddItem(54,1,1)
	elseif id == 17485 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Disable(npcID)
			npc.SetAnim(223,1)
			global.Wait(1)
			player.AddItem(54,1,1)			

-----蚩尤遗迹2----------

	elseif id == 17479 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(118,2,1)
	elseif id == 17480 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(119,2,1)			
	elseif id == 17481 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(113,1,1)
	elseif id == 17482 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(113,1,1)			
			
			

-----蚩尤遗迹3----------豪华大宝箱


--[[	elseif id == 17967 then          	--1号 宝箱～	中间
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.SetAnim(npcID,501)
			npc.Disable(191)
			npc.Disable(192)
			npc.Disable(193)
			global.CreateSE(4395,3420,2099,7575)
			npc.SetAppear(192,0)
			global.CreateSE(4395,3335,2099,7575)
			npc.SetAppear(193,0)
			npc.Destroy(192)
			npc.Destroy(193)
			player.AddItem(618,1,1)		--冰晶石
			player.AddEquip(4032,1,1)		--赤金之链
			player.AddItem(622,1,1)		--琉璃
		]]
	elseif id == 17967 then          	--2号  宝箱～	左边
			global.BeginScene()
			player.Control(0)
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.SetAnim(npcID,501)
			npc.Disable(191)
			global.CreateSE(4395,3378,2099,7574)
			npc.SetAppear(191,0)
			npc.Create(4389,199,3378,7574)			--建立陷阱包子
			npc.SetAt(199,0,-1)
			npc.Destroy(191)
			global.Wait(1)
			ui.Popo(72828,1,199,0)	--打赢我给你好东西！！！
			flag.SetValue(15109,2)
			battle.Begin(2029,317)
	--[[elseif id == 17968 then          	--3号   宝箱～   右边
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.SetAnim(npcID,501)
			npc.Disable(191)
			npc.Disable(192)
			npc.Disable(193)
			global.CreateSE(4395,3378,2099,7574)
			npc.SetAppear(191,0)
			global.CreateSE(4395,3420,2099,7575)
			npc.SetAppear(192,0)
			npc.Destroy(191)
			npc.Destroy(192)
			player.AddItem(54,1,1)
			player.AddEquip(4016,1,1)		--火之魂石
		]]--

-----蚩尤遗迹4----------

-----覆天顶-------------
	elseif id == 17491 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddEquip(4035,1,1)		--苦修指环
	elseif id == 17492 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,1,1)			
	elseif id == 17493 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,1,1)	
	elseif id == 17494 then          	
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,1,1)				
-----测试特效-----------------

	elseif id == 17495 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4843,2820,-50,4580)
			global.Wait(1)
			player.AddItem(604,1,1)
	elseif id == 17496 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4844,2870,-50,4582)
			global.Wait(1)			
			player.AddItem(604,1,1)			
	elseif id == 17497 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)			
			global.CreateSE(4846,2936,-50,4584)
			global.Wait(1)	
			player.AddItem(604,1,1)	
	elseif id == 17498 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,2997,-50,4580)
			global.Wait(1)			
			player.AddItem(604,1,1)
	elseif id == 17499 then          				--楼兰箱子
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(npcID,1)
			global.Wait(1)
			npc.Disable(npcID)			
			player.AddItem(604,1,1)
	elseif id == 17500 then          				--折剑山庄箱子
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(npcID,1)
			global.Wait(1)			
			npc.Disable(npcID)			
			player.AddItem(604,1,1)			
	elseif id == 17501 then          				--青木居瓦罐
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)	
			global.PlaySound(4124,80)
			global.CreateSE(4840,3179,-50,4582)			
			global.Wait(1)			
			npc.Destroy(npcID)			
			player.AddItem(604,1,1)	
	elseif id == 17502 then          				--楼兰迷宫瓦罐
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)	
			global.PlaySound(4124,80)
			global.CreateSE(4847,3138,-50,4662)				
			global.Wait(1)			
			npc.Destroy(npcID)			
			player.AddItem(604,1,1)				
	elseif id == 17503 then          				--萍山石头
			if flag.GetValue(15039)==0	then
				player.SetAnim(pid,31)
				global.Wait(2)
				npc.SetAnim(npcID,1)
				global.Wait(1)	
				npc.Disable(npcID)
				flag.SetValue(17503,0)				
				npc.CreateObject(4363,282,3078,4661,17503)
				flag.SetValue(15039,1)
			elseif flag.GetValue(15039)==1	then
				player.SetAnim(pid,203)
				global.Wait(1)
				player.AddItem(604,1,1)
				npc.Destroy(282)	
			end
	elseif id == 17504 then   	--丹枫谷石头
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(npcID,1)
			global.Wait(1)
			npc.Disable(npcID)			
			player.AddItem(604,1,1)	
	elseif id == 17505 then          				--绝行天途石头
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(npcID,1)
			global.Wait(1)
			npc.Disable(npcID)		
			player.AddItem(604,1,1)				
	elseif id == 17506 then          				--蚩尤遗迹石头
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.SetAnim(npcID,1)
			global.Wait(1)	
			npc.Disable(npcID)
			player.AddItem(604,1,1)	
		







			
			
------雾谷--------------

	elseif id == 17511 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(604,5,1)		--山苦菜
			player.AddExp(600)
	elseif id == 17512 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(600)
	elseif id == 17513 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,5,1)		--雪里见
			player.AddExp(600)
	elseif id == 17514 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,1,1)		--灯芯草
			player.AddExp(600)
	elseif id == 17515 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(608,1,1)		--龙葵草
			player.AddExp(600)
	elseif id == 17516 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(34,1,1)
			player.AddExp(600)
	elseif id == 17517 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,6,1)		--徐长卿
			player.AddExp(600)
	elseif id == 17518 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,2,1)		--雪里见
			player.AddExp(600)
	elseif id == 17519 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,5,1)		--灯芯草
			player.AddExp(600)
	elseif id == 17520 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(608,5,1)		--龙葵草
			player.AddExp(600)
	elseif id == 17525 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(608,4,1)		--龙葵草
			player.AddExp(600)			
	elseif id == 17526 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,4,1)		--灯芯草
			player.AddExp(600)			

-----细小闪光类---------

	elseif id == 17521 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)
			ui.Popo(72829,2,pid,0)--有这种东西？难不成有人来过此处？
	elseif id == 17522 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)
			ui.Popo(72830,2,pid,0)--有这种东西？难不成有人来过此处？
--[[	elseif id == 17525 then
			if flag.GetValue(15202)==0	then  							---------乌鸦惊飞2
				player.Stop()
				npc.SetAnim(231,1)
				npc.SetAnim(232,1)
				flag.SetValue(15202,1)
				player.Control(1)
			else
				player.Control(1)
			end
	elseif id == 17526 and flag.GetValue(15203)==0	then  							---------乌鸦惊飞3
			player.Stop()
			npc.SetAnim(233,1)
			flag.SetValue(15203,1)
	elseif id == 17527 and flag.GetValue(15204)==0	then  							---------乌鸦惊飞3
			player.Stop()
			npc.SetAnim(234,1)
			npc.SetAnim(235,1)
			npc.SetAnim(236,1)
			flag.SetValue(15204,1)	
]]--			
	elseif id == 17529 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)
			ui.Popo(72831,2,pid,0)			--有这种东西？难不成有人来过此处？

-----尸体类拾取--------

elseif  id == 17523 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			--npc.Destroy(npcID)
			y=y+1
			flag.SetValue(15093,y)
			flag.SetValue(16923,1)
			ui.Message(72832)--获得雾荫谷地图
			player.AddItem(123,1,1)
			ui.Popo(72833,2,pid,0)	--唉，看来是误闯这里的不幸者。
			npc.Disable(221)
			global.AddTimer(0.5,13279)
--[[elseif  id== 17524	and flag.GetValue(15201)==0	then	---乌鸦特殊拾取
		player.Stop()
		camera.ChangeCameraStatic(2442,-63,2101,2343,-66,2088)
		npc.SetAnim(222,1)
		global.Wait(1)
		npc.Destroy(222)
		npc.CreateObject(4363,212,2093,2092,17529)		--隐蛊
		camera.ChangeCameraFree()
		flag.SetValue(15201,1)
	]]--		
-------雾都---------------

----细小闪光类--------

	elseif id == 17531 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)	
	elseif id == 17532 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(122,1,1)

	elseif id == 17533 then          --雾都民居		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,1166,1,1932)
			player.AddItem(608,9,1)			--龙葵草
			
	elseif id == 17534 then          --雾都民居		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,1999,10,2537)
			player.AddItem(106,1,1)	
	elseif id == 17535 then          --雾都民居		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,2435,213,3149)
			player.AddItem(601,6,1)	 --灯芯草
			
	elseif id == 17536 then          --雾都民居		--木桶
			player.SetAnim(pid,31)
			global.Wait(2) 
			npc.Destroy(npcID)
			global.PlaySound(4134,100)
			global.CreateSE(4843,3947,10,2068)
			player.AddItem(106,1,1)		
	elseif id == 17537 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(70,1,1)	
	elseif id == 17538 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(122,1,1)		

-------海岛----------------------------

-------草药类------------
	elseif id == 17571 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(21,1,1)
			player.AddExp(Exp/200)
			player.AddExp(700)
	elseif id == 17572 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,5,1)	--紫萱草
			player.AddExp(700)
	elseif id == 17573 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(33,1,1)
			player.AddExp(700)
	elseif id == 17574 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(700)
	elseif id == 17575 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,3,1)	--紫萱草
			player.AddExp(700)
	elseif id == 17576 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,4,1)	--徐长卿
			player.AddExp(700)
	elseif id == 17577 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,3,1)	--徐长卿	
			player.AddExp(700)
	elseif id == 17578 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,4,1)	--紫萱草
			player.AddExp(700)
	elseif id == 17579 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,4,1)	--徐长卿
			player.AddExp(700)
	elseif id == 17580 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,6,1)	--徐长卿	
			player.AddExp(700)
	elseif id == 17581 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(17,1,1)
			player.AddExp(700)

--矿石类----------------

	elseif id == 17582 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddItem(620,1,1)		--紫英石
			player.AddExp(700)
	elseif id == 17583 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddItem(621,3,1)		--琉璃
			player.AddExp(700)
	elseif id == 17584 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddItem(621,3,1)		--琉璃
			player.AddExp(700)
	elseif id == 17585 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)	
			player.AddItem(619,2,1)		--天河石
			player.AddExp(700)

--细小闪光类-----------

	elseif id == 17586 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddEquip(4020,1,1)		--水之魂石
	elseif id == 17587 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(609,3,1)		--紫萱草
			player.AddExp(700)	
	elseif id == 17588 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,4,1)		--徐长卿
			player.AddExp(700)
	elseif id == 17589 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,4,1)		--徐长卿
			player.AddExp(700)
		

-------丹枫谷----------------------------	

-------草药类------------
		
	elseif id == 17591 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,2,1)	
			player.AddExp(900)
	elseif id == 17592 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,2,1)
			player.AddExp(900)
	elseif id == 17593 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,2,1)
			player.AddExp(900)
	elseif id == 17594 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(605,3,1)
			player.AddExp(900)
	elseif id == 17595 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,3,1)
			player.AddExp(900)
	elseif id == 17596 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(900)
	elseif id == 17597 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,1,1)
			player.AddExp(900)
	elseif id == 17598 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,3,1)		--雪里见
			player.AddExp(900)
	elseif id == 17599 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(601,1,1)
			player.AddExp(900)
	elseif id == 17600 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(607,2,1)		--雪里见
			player.AddExp(900)
	elseif id == 17601 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,1,1)
			player.AddExp(900)
	elseif id == 17602 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,1,1)
			player.AddExp(900)
			
----矿石类------------

	elseif id == 17603 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)
			player.AddExp(900)
	elseif id == 17604 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(614,1,1)	
			player.AddExp(900)
----丹枫谷翻滚石头-----------------
	elseif id == 17606 then  
			--npc.SetCollisionType(221,0)
			player.SetAnim(pid,31)
			npc.Disable(221)
			global.Wait(2)
			npc.SetAnim(221,1)
			global.Wait(1)
			player.AddItem(72,2,1)
			--npc.SetCollisionType(221,2)
	elseif id == 17607 then          
			player.SetAnim(pid,31)
			npc.Disable(222)
			global.Wait(2)
			npc.SetAnim(222,1)
			global.Wait(1)
			player.AddItem(54,2,1)
	elseif id == 17608 then          
			player.SetAnim(pid,31)
			npc.Disable(223)
			global.Wait(2)
			npc.SetAnim(223,1)
			global.Wait(1)
			player.AddItem(17,1,1)
	elseif id == 17609 then          
			player.SetAnim(pid,31)
			npc.Disable(224)
			global.Wait(2)
			npc.SetAnim(224,1)
			global.Wait(1)
			player.AddItem(30,1,1)			
			
			
------特殊拾取-----水泡类--------------
--[[	elseif npcID== 231	and ndid==4382 then   
			ui.Message(72834)--111
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(610,1,1)	
			player.AddExp(Exp/150)
------特殊拾取------荧光类--------------
	elseif npcID == 236	and ndid==4385 then  
			--player.SetAt(nx,nz)
			player.SetAnim(pid,31)
			global.Wait(1.5)
			npc.FloatTo(236,px,py+35,pz,1)
			npc.Destroy(236)
			player.AddItem(610,1,1)	
			player.AddExp(Exp/150)
	]]--


-------------锁妖塔废墟--------------

-------草药类---------------

	elseif id == 17631 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,1,1)
			player.AddExp(1000)
	elseif id == 17632 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(611,1,1)
			player.AddExp(1000)
			
-------细小闪光类--------------
	elseif id == 17633 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(115,1,1)
	elseif id == 17634 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(59,1,1)			
	elseif id == 17635 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(59,1,1)				
	elseif id == 17636 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(59,1,1)	
	elseif id == 17637 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(59,1,1)	



---------绝行天途-------------------

------细小闪光类-----------

	elseif id == 17651 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,1459,290,8201)
			player.AddItem(11,1,1)	
	elseif id == 17652 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,1133,293,7812)
			player.AddItem(613,1,1)	
	elseif id == 17653 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,1670,400,5999)
			player.AddItem(117,1,1)	
	elseif id == 17654 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,1413,370,4390)
			player.AddItem(123,1,1)	
	elseif id == 17655 then          
			player.SetAnim(pid,31)
			global.Wait(2)
			npc.Destroy(npcID)
			global.CreateSE(4849,2327,500,2314)
			player.AddItem(57,1,1)	
	elseif id == 17656 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(65,1,1)
	elseif id == 17657 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(81,1,1)			
	elseif id == 17658 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,2,1)				
	elseif id == 17659 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id == 17660 then          
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(613,2,1)	

----------尸体拾取类-----------------

	elseif id == 17661 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(215)
	elseif id == 17662 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(216)
	elseif id == 17663 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(217)
	elseif id == 17664 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(218)				
	elseif id == 17665 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(219)				
	elseif id == 17666 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(220)					
	elseif id == 17667 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(221)				
	elseif id == 17668 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(222)				
	elseif id == 17669 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(223)				
	elseif id == 17670 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(224)				
	elseif id == 17671 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(225)					
	elseif id == 17672 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(226)					
	elseif id == 17673 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(227)					
	elseif id == 17674 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(228)					
	elseif id == 17675 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(229)					
	elseif id == 17676 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(230)
	elseif id == 17677 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(231)	
	elseif id == 17678 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(232)
	elseif id == 17679 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(233)
	elseif id == 17680 then          
				player.SetAnim(pid,203)
				global.Wait(1)
				--npc.Destroy(npcID)
				player.AddItem(123,1,1)
				npc.Disable(234)
				
--------------------往下开始是DLC的拾取物------------------

-------------明州DLC------------------------
	elseif id ==40900	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40901	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40902	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40903	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40904	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id ==40905	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)

-------------虹芝屿DLC---------------------
	elseif id ==40915	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40916	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40917	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40918	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40919	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40920	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40921	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40922	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
	elseif id ==40923	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)

----------------开封DLC----------------
	elseif id ==40930	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id ==40931	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id ==40932	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id ==40933	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
	elseif id ==40934	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
		elseif id ==40935	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	

-------------千峰岭DLC---------------
		elseif id ==40945	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40946	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40947	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)

-------------碧溪村DLC------------------
		elseif id ==40960	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40961	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40962	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40963	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40964	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40965	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
---------------凝翠甸DLC-----------------
		elseif id ==40975	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)	
		elseif id ==40976	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40977	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40978	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40979	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)
		elseif id ==40980	then
			player.SetAnim(pid,203)
			global.Wait(1)
			npc.Destroy(npcID)
			player.AddItem(123,1,1)			
			
	end
	player.Control(1)

end