president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi folks! How I can make to monsters can't walk in itemid 9285?
Thanks.
Thanks.
A movement script which will return false and push it back when a monster step on it?
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return false
end
end
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
creature:teleportTo(fromPosition, true)
end
end
Hi folks! How I can make to monsters can't walk in itemid 9285?
Thanks.
function onStepIn(creature, item, position, fromPosition)
local thing = creature:isMonster() and Creature(creature:getId()) or nil
if thing then
thing:teleportTo(fromPosition, true)
end
return false
end
function onStepIn(creature, item, position, fromPosition)
local thing = (creature:isMonster() or creature:isPlayer()) and Creature(creature:getId()) or nil
if thing then
thing:teleportTo(fromPosition, true)
end
return false
end
@Summ
There is no way to do this without edit .otb? because does not have any item editor for 10.9 version
iType.blockPathFind = serverId == 9285 ? true : hasBitSet(FLAG_BLOCK_PATHFIND, flags);
You can change it here:
https://github.com/otland/forgotten...6a137c5e45ce29b254edddadf8/src/items.cpp#L294
Like this:
Code:iType.blockPathFind = serverId == 9285 ? true : hasBitSet(FLAG_BLOCK_PATHFIND, flags);
That should work i guess, not tested