local area = {{x=1,y=1,z=1},{x=3,y=3,z=1}}
local teleport = {
["demons"] = {x=DEMON_X,y=DEMON_Y,z=DEMON_Z}
}
function onSay(cid, words, param, channel)
if isInRange(getPlayerPosition(cid), area[1], area[2])
local s = teleport[param:lower]
if not(s) then
return doPlayerSendCancel(cid,"The huntingplace "..param.." doesn't exist.")
end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
doTeleportThing(cid,s)
doSendMagicEffect(s, CONST_ME_TELEPORT)
else
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end