I requested for it there:
http://otland.net/f132/player-cant-use-spells-runes-script-163955/
I wrote smth, but it doesn't work.
I also registred it and add to xml like cast, but it doesn;t work without any errors.
http://otland.net/f132/player-cant-use-spells-runes-script-163955/
I wrote smth, but it doesn't work.
I also registred it and add to xml like cast, but it doesn;t work without any errors.
LUA:
local fromPosition = {x = 341, y = 465, z = 7}
local toPosition = {x = 424, y = 520, z = 7}
function onCast(cid, target)
return not isInRange(getThingPosition(cid), fromPosition, toPosition)
end