SUMEKAZEKI
ADM Custom Rook
- Joined
- Sep 10, 2016
- Messages
- 39
- Reaction score
- 4
hello, anyone help me convert this script from tfs 0.4 to 1.3?
Lua:
function onSay(cid, words, param)
if (getCreatureCondition(cid, CONDITION_INFIGHT) == false) then
if (tonumber(param) ~= nil and tonumber(param) > 0 and tonumber(param) < 8) then
doTeleportThing(cid, getTownTemplePosition(param))
return true
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bad parameter. E.g.: !town 1 (1-7)")
return true
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are in fight!!! Arrgg....")
end
return true
end