MarkSmartRemark
Lua-Noob in Training :D
- Joined
- Jan 27, 2010
- Messages
- 139
- Reaction score
- 3
Hi everyone,
ive looked all over otland and havent found any fear-like spell finished... i dont want a complicated fear system just a simple one and ive made most of it but i cant get one part..
when it moves the creature it will move him into anything no matter what.. i need it to check tile he is moving into before he goes into it.. if anyone can either fix this, or make something more compatible let me know!
And if you have a script like this (perfected ofc) then maybe we can discuss payment through pm? thanks alot in advance
ive looked all over otland and havent found any fear-like spell finished... i dont want a complicated fear system just a simple one and ive made most of it but i cant get one part..
when it moves the creature it will move him into anything no matter what.. i need it to check tile he is moving into before he goes into it.. if anyone can either fix this, or make something more compatible let me know!
And if you have a script like this (perfected ofc) then maybe we can discuss payment through pm? thanks alot in advance
Code:
-- >>Script by Tabz!<< --
--{Credits:}
-- Level 1 - 10 --
--.::.CONFIG.::.--
local feared_time = 2.5
--.::.CONFIG.::.--
local function fear(cid)
doMoveCreature(cid, math.random(0,3))
end
local function allowMove(cid, target)
doCreatureSetNoMove(target, false)
end
local silenced = createConditionObject(CONDITION_MUTED)
setConditionParam(silenced, CONDITION_PARAM_TICKS, (feared_time*1000))
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(target), CONST_ANI_SMALLSTONE)
doSendMagicEffect(getCreaturePosition(target), CONST_ME_BATS)
doSendMagicEffect(getCreaturePosition(target), CONST_ME_BLOCKHIT)
doCreatureSetNoMove(target, true)
doAddCondition(cid, silenced)
addEvent(fear, 0, target)
addEvent(fear, 500, target)
addEvent(fear, 1000, target)
addEvent(fear, 1500, target)
addEvent(fear, 2000, target)
addEvent(allowMove, (feared_time*1000), cid, target)
return true
end