Terotrificy
Veteran OT User
I'm using Othire 1.0 and a server 7.4 style, with otclient 7.72.
When i want to use a destroy field rune on a poison field that is above a non-walkeable object, i can't do it.
For example, in the senja castle, poison fields are supposed to spawn above those chest, however i am not able as a player to get rid of them using destroy field rune.
It says "There is not enough room" because it's basically like using a rune against a wall. I recall i was able to do it back in the 7.4 days.
Can someone confirm this theory, and if so, try to help me out?
Here is the rune code:
When i want to use a destroy field rune on a poison field that is above a non-walkeable object, i can't do it.
For example, in the senja castle, poison fields are supposed to spawn above those chest, however i am not able as a player to get rid of them using destroy field rune.
It says "There is not enough room" because it's basically like using a rune against a wall. I recall i was able to do it back in the 7.4 days.
Can someone confirm this theory, and if so, try to help me out?
Here is the rune code:
Lua:
local function doRemoveField(cid, pos)
pos.stackpos = 254
local field = getThingfromPos(pos)
local playerPos = getPlayerPosition(cid)
if(field.uid > 0 and isInArray(FIELDS, field.itemid) == TRUE) then
doRemoveItem(field.uid)
doSendMagicEffect(pos, CONST_ME_POFF)
return LUA_NO_ERROR
end
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(playerPos, CONST_ME_POFF)
return LUA_ERROR
end
function onCastSpell(cid, var)
local pos = variantToPosition(var)
if(pos.x ~= 0 and pos.y ~= 0 and pos.z ~= 0) then
return doRemoveField(cid, pos)
end
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return LUA_ERROR
end