ShowMessage("һһű $Rev: 213 $")

--[[
[author]
descript=ѡóУֲҳѡƣ޷ֲ
cmd0str=ﵱǰλ
cmd0={mapid=-1,x=0,y=0}
cmd1str=
cmd1={mapid=2,x=302,y=248}
cmd2str=
cmd2={mapid=0,x=184,y=395}
cmd3str=
cmd3={mapid=1,x=129,y=234}
cmd4str=̫
cmd4={mapid=4,x=178,y=197}
cmd5str=պӹ
cmd5={mapid=260,x=236,y=258}
cmd6str=¥
cmd6={mapid=246,x=45,y=210}
cmd_default=0
]]--
script_name="ֲű"

function _SMain(...)

	local tMapId = -1 
	local tMapX = 0 
	local tMapY = 0 

	if _CommandLine ~= nil then 
		if _CommandLine.mapid ~= nil and _CommandLine.x ~= nil and _CommandLine.y ~= nil then
			tMapId = tonumber(_CommandLine.mapid)
			tMapX = tonumber(_CommandLine.x)
			tMapY = tonumber(_CommandLine.y)
		end
	end
	
	if tMapId ~= -1 then
		MoveTo( tMapX , tMapY , tMapId )
	end

	AI:SetAI("һ")
	AI:SetParameter("ʼ") 
	AI:SetParameter("","ֲ")
	AI:Start()

	AI:SetParameter("в" , "" , 1 )

	while true do
		if AI:IsStop() == true  then
			break 
		end
		 
		System:Sleep(1000)
	end
end

_SMain()