Delegate.RegDelTalkEvent("wncs_TalkEvent");
function wncs_TalkEvent(player,msg,color,range,size)
		--[[if(msg=="/flc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,53,51,67);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end--]]

	if(msg=="/aklfc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,33200,99,165);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	--[[if(msg=="/lmnsc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,43600,61,29);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end
	if(msg=="/lonc") then 
		local money = Char.GetData(player,%_%);
		if(money>=5000)then
			Char.SetData(player,%_%,money-5000);
			NLG.UpChar(player);
			Char.Warp(player,0,30333,5,14);
			NLG.SystemMessage(player,"۳5000ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ5000");	
		end
	end
	if(msg=="/dnc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,4299,5,5);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/mnjyc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,43541,20,15);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end--]]


	if(msg=="/glec") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,43100,120,107);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	--[[if(msg=="/hblc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,3100,68,35);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end--]]
	if(msg=="/f") then 
		local money = Char.GetData(player,%_%);
		local floor = Char.GetData(player,3)
		local fmap = Char.GetData(player,4)
		local fx = Char.GetData(player,5)
		local fy = Char.GetData(player,6)
	if Char.GetPartyMode(player)== 2then
			NLG.SystemMessage(player,"Ƕӳ޷ʹô");	
			return;
			end
		if(money>=1)then
			Char.SetData(player,%_%,money-1);
			NLG.UpChar(player);
			Char.Warp(player,floor,fmap,fx,fy);
			NLG.SystemMessage(player,"۳1ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ㣡");	
		end
	end
	
	if(msg=="/hc") then 
		local money = Char.GetData(player,%_%);
	if Char.GetPartyMode(player)== 2then
			NLG.SystemMessage(player,"Ƕӳ޷ʹô");	
			return;
			end
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,1000,239,84);
			NLG.SystemMessage(player,"۳500ħҡ");
			
		NLG.SystemMessage(player,"ϵͳѿħ㣬йرգ򽫻۳ʣಽ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	--[[if(msg=="/lktez") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,43700,75,105);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/jnc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,3099,14,7);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/mfdx") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,4400,106,54);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/wkl") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,100,348,379);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	

	if(msg=="/qlc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,3299,13,9);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	

	if(msg=="/sllkc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,2399,15,4);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	
	
	if(msg=="/yltc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,2499,5,15);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	
	
	if(msg=="/wnyc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,2199,5,5);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	
	
	
	if(msg=="/jnwc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,4099,6,7);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	
	if(msg=="/yec") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,2099,20,10);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end	
	if(msg=="/abnsc") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,4399,5,14);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/zlsj") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,15507,29,14);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/ss") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,16511,26,28);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end
--]]
	if(msg=="/ud") then 
		local money = Char.GetData(player,%_%);
		if(money>=5000)then
			Char.SetData(player,%_%,money-5000);
			NLG.UpChar(player);
			Char.Warp(player,0,24001,8,8);
			NLG.SystemMessage(player,"۳5000ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ5000");	
		end
	end


--[[	if(msg=="/sw") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,24068,18,19);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end

	if(msg=="/bnqshs") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,48022,44,47);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end
	if(msg=="/sl") then 
		local money = Char.GetData(player,%_%);
		if(money>=500)then
			Char.SetData(player,%_%,money-500);
			NLG.UpChar(player);
			Char.Warp(player,0,33000,290,436);
			NLG.SystemMessage(player,"۳500ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ500");	
		end
	end
	-- if(msg=="/bnqshs") then 
			-- Char.Warp(player,0,803,13,56);
			-- return;	
	-- end
	if(msg=="/blsd") then 
		local money = Char.GetData(player,%_%);
		if(money>=8000)then
			Char.SetData(player,%_%,money-8000);
			NLG.UpChar(player);
			Char.Warp(player,0,101,75,83);
			NLG.SystemMessage(player,"۳8000ħҡ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ㣡");	
		end
	end
	if (msg=="/cszl") then 
		NLG.SystemMessage(player, "/+ȫƴĵһĸСдҪȥ壺/aklfc:--³壬³˹壬ȴ壬ŵǴ壬ǣ³壬׿򣬼ɴ壬Ǳ壬ħѧڿ壬ʥ³壬ش壬άŵǴ壬ŵߴ壬壬˹壬ǡ˹ɽŷɴ壬̣˹");	
	end--]]
	if(msg=="/lt") then 
		local money = Char.GetData(player,%_%);
	if Char.GetPartyMode(player)== 2 then
			NLG.SystemMessage(player,"Ƕӳ޷ʹô");	
			return;
			end
		if(money>=100)then
			Char.SetData(player,%_%,money-100);
			NLG.UpChar(player);
			Char.Warp(player,0,1538,16,5);
			NLG.SystemMessage(player,"۳100ħҡ");
			NLG.SystemMessage(player,"ϵͳѿħ㣬йرգ򽫻۳ʣಽ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ100");	
		end
	end
	if(msg=="/cszj") then 
		local money = Char.GetData(player,%_%);
	if Char.GetPartyMode(player)== 2 then
			NLG.SystemMessage(player,"Ƕӳ޷ʹô");	
			return;
			end
		if(money>=100)then
			Char.SetData(player,%_%,money-100);
			NLG.UpChar(player);
			Char.Warp(player,0,1522,25,26);
			NLG.SystemMessage(player,"۳100ħҡ");
			NLG.SystemMessage(player,"ϵͳѿħ㣬йرգ򽫻۳ʣಽ");
			return;	
		else
			NLG.SystemMessage(player,"ԲħҲ100");	
		end
	end
	
	
	if(msg=="/knblc2") then 
		local dadi = Char.ItemNum(player,18990);
		if(dadi>=1)then
			NLG.UpChar(player);
			Char.Warp(player,0,34014,47,41);
			NLG.SystemMessage(player,"Ѵָλá");
			--Char.DelItem(player,888888,300);
			return;	
		else
			NLG.SystemMessage(player,"Բûдؽᾧ");	
		end
	end
if(msg=="/knblc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,33500,22,28);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,10);
			return;	
		else
			NLG.SystemMessage(player,"Բû֣");	
		end
	end
	
if(msg=="/lmnsc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,43600,61,29);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû֣");	
		end
end	
if(msg=="/lonc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,30333,5,14);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	
if(msg=="/dnc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4299,5,5);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	
if(msg=="/dnc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4299,5,5);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/mnjyc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,43541,20,15);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/hblc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,3100,68,35);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	
	
if(msg=="/lktez") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,43700,75,105);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/jnc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,3099,14,7);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/mfdx") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4400,106,54);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/wkl") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,100,348,379);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/qlc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,3299,13,9);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	
if(msg=="/sllkc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,2399,15,4);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/yltc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,2499,5,15);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/yec") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,2099,20,10);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/wnyc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,2199,5,5);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/jnwc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4099,6,7);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/abnsc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4399,5,14);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/abnsc") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,4399,5,14);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/zlsj") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,15507,29,14);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

if(msg=="/ss") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,16511,26,28);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	
if(msg=="/sw") then 
		local csq = Char.ItemNum(player,9700373);
		if(csq>=30)then
			NLG.UpChar(player);
			Char.Warp(player,0,24068,18,19);
			NLG.SystemMessage(player,"Ѵָλã۳30ֿ");
			Char.DelItem(player,9700373,30);
			return;	
		else
			NLG.SystemMessage(player,"Բû㹻֣");	
		end
end	

	
		if(msg=="/hyzr") then 
		local dengji = Char.GetData(player,%_ȼ%);
		if(dengji >= 50)then
			Char.Warp(player,0,24005,17,16);
			NLG.SystemMessage(player,"Ѵָλá");
			return;	
		else
			NLG.SystemMessage(player,"Բĵȼ50");	
		end
	end

	if (msg=="/cszl") then 
		NLG.SystemMessage(player, "/+ȫƴĵһĸСдҪȥ壺/aklfc:--³壬,سǣã֮䣬֮");	
	end
	
end