ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi, I need to request some stuff for the swimming script, if someone could help, i'll be very appreciated! Pheraps this will help more people. i'm using Nekiro's 8.6 downgraded (TFS 1.3).
The things I need are:
a) you cant attack monsters while swimming, you are allowed to attack players only
b) monsters can't step in swimmable tiles (4820,4821,4822,4823,4824,4825)
c) you can receive monster attacks while swimming (from range)
Here is the default swimming.lua…
Thanks for your help!
The things I need are:
a) you cant attack monsters while swimming, you are allowed to attack players only
b) monsters can't step in swimmable tiles (4820,4821,4822,4823,4824,4825)
c) you can receive monster attacks while swimming (from range)
Here is the default swimming.lua…
Lua:
local condition = Condition(CONDITION_OUTFIT)
condition:setOutfit({lookType = 267})
condition:setTicks(-1)
function onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
creature:addCondition(condition)
return true
end
function onStepOut(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
creature:removeCondition(CONDITION_OUTFIT)
return true
end
Thanks for your help!