I remenber that I have used on tfs 0.4 this code:
On data/spells/runes.lua
local fromPosition = {x = 32382, y = 31872, z = 7} -- top left cornor of the playground
local toPosition = {x = 32416, y = 31908, z = 7} -- bottom right cornor of the playground
if isInArea(getThingPosition(cid), fromPosition, toPosition) then
return false, doPlayerSendCancel(cid, "You're not allowed to use any rune of trap here.")
end
But I need some help to convert to tfs 1.0...
Can someone help me?
On data/spells/runes.lua
local fromPosition = {x = 32382, y = 31872, z = 7} -- top left cornor of the playground
local toPosition = {x = 32416, y = 31908, z = 7} -- bottom right cornor of the playground
if isInArea(getThingPosition(cid), fromPosition, toPosition) then
return false, doPlayerSendCancel(cid, "You're not allowed to use any rune of trap here.")
end
But I need some help to convert to tfs 1.0...
Can someone help me?