Like if i say /dp i want it to work like /t but i can change the cordinants so that i can add morewut?
<talkaction words="!dp" event="script" value="dp.lua"/>
function onSay(cid, words, param)
ppos = getPlayerPosition(cid)
dp = { x = 32370, y = 32238, z =7 } -- your depot position
if (getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
doTeleportThing(cid, dp, TRUE)
doSendMagicEffect(ppos,65)
else
doPlayerSendCancel(cid,"You can't teleport immediately after fight.")
doSendMagicEffect(ppos,2)
end
return 1
end