narko
vertrauenswürdig ~
Is there any way to convert this script from TFS 0.4 to TFS 1.0?
I'm getting this error on console.
[Error - CreatureEvent::configureEvent] Invalid type for creature event: AntiPush
Here's the script.
I'm getting this error on console.
[Error - CreatureEvent::configureEvent] Invalid type for creature event: AntiPush
Here's the script.
Code:
local targetlist, ret = {"Target Dummy"}, true
function onPush(cid, target, ground, position)
inArray = function (name) return isInArray(targetlist, name:lower()) end
if((isPlayer(target) and inArray(getCreatureName(getCreatureTarget(target)))) or inArray(getCreatureName(target))) then
ret = RETURNVALUE_NOTPOSSIBLE
end
return ret
end