I updated this good script from here: [Requested Script]Kage Mane no Jutsu! where the author is huggen
Updated: Deleted that stupid target condition and now spell can possess monsters! Too bad I can't use storages on monsters.
If you've watched Naruto and you know who Shikamaru is, this is his jutsu. It takes control of a player's body temporaly, so that player will move in the dir you move or will turn in the dir you turn. The possessed player will be unable to move during the possession.
YOUTUBE: YouTube - kage mane no jutsu opentibia.wmv
Conditions
-> Cool Effects for Possession
-> Possesion may last around 10 seconds
-> You may not possess a possessed victim(only player) by another player
-> If caster gets too far or stops pointing the possessed player his jutsu will cancel.
-> If possessed player gets to a PZ the technique will cancel.
-> Possessed creature walks as fast as the caster.
-> Possessed creature won't walk to houses.
-> Possessed creature moves in the direction you move, won't pierce through objects neither will walk over water
-> Possessed creature will stop if he can't walk on an unwalkable tile
-> Possessed creature won't walk if you go to a higher/lower floor and the technique will be canceled.
-> If possessed creature gets to a different floor you are, the technique will be canceled.
-> The onLogin script is there in case of server crashes or script gets bugged and you can't possess again
add to LOGIN.LUA:
add to SPELLS.XML:
create KAGEMANE.LUA @ spells/scripts:
Have a small taste of Naruto in your OTSeace:
Updated: Deleted that stupid target condition and now spell can possess monsters! Too bad I can't use storages on monsters.
If you've watched Naruto and you know who Shikamaru is, this is his jutsu. It takes control of a player's body temporaly, so that player will move in the dir you move or will turn in the dir you turn. The possessed player will be unable to move during the possession.
YOUTUBE: YouTube - kage mane no jutsu opentibia.wmv
Conditions
-> Cool Effects for Possession
-> Possesion may last around 10 seconds
-> You may not possess a possessed victim(only player) by another player
-> If caster gets too far or stops pointing the possessed player his jutsu will cancel.
-> If possessed player gets to a PZ the technique will cancel.
-> Possessed creature walks as fast as the caster.
-> Possessed creature won't walk to houses.
-> Possessed creature moves in the direction you move, won't pierce through objects neither will walk over water
-> Possessed creature will stop if he can't walk on an unwalkable tile
-> Possessed creature won't walk if you go to a higher/lower floor and the technique will be canceled.
-> If possessed creature gets to a different floor you are, the technique will be canceled.
-> The onLogin script is there in case of server crashes or script gets bugged and you can't possess again
add to LOGIN.LUA:
Lua:
setPlayerStorageValue(cid, 14755, -1)
add to SPELLS.XML:
Lua:
<instant name="Kagemane No Jutsu" words="kagemane" lvl="40" mana="300" exhaustion="2000" blockwalls="1" needlearn="0" event="script" value="kagemane.lua"></instant>
create KAGEMANE.LUA @ spells/scripts:
Lua:
local function move(cid, target, playerpos, targetpos, times)
if playerdir ~= getCreatureLookDirection(cid) then
doCreatureSetLookDirection(target, getCreatureLookDirection(cid))
end
if playerpos ~= getCreaturePosition(cid) then
if playerpos.z == getCreaturePosition(cid).z then
local ntpos = getCreaturePosition(cid)
local x,y,z = ntpos.x-playerpos.x,ntpos.y-playerpos.y,ntpos.z-playerpos.z
ntpos = getCreaturePosition(target)
ntpos.x, ntpos.y, ntpos.z = ntpos.x+x,ntpos.y+y,ntpos.z+z
if queryTileAddThing(target, ntpos) == RETURNVALUE_NOERROR and getCreaturePosition(cid).z == getCreaturePosition(target).z then
doMoveCreature(target, getCreatureLookDirection(cid))
end
end
end
local playerpos, targetpos = getCreaturePosition(cid), getCreaturePosition(target)
local times = times+1
if times < 100 then
addEvent(move, 1, cid, target, playerpos, targetpos, times)
else
doCreatureSetNoMove(target, 0)
doSendDistanceShoot(targetpos, playerpos, 31)
doSendAnimatedText(targetpos, "FREE!", math.random(1,255))
doPlayerSendCancel(cid, "You have lost control of "..getCreatureName(target)..".")
if (isPlayer(target)) then
doPlayerSendCancel(cid, "You've been freed from "..getPlayerName(cid).."'s Shadow Imitation Technique.")
setPlayerStorageValue(target, 14755, -1)
end
end
end
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if (isPlayer(target)) or (isMonster(target)) then
if getPlayerStorageValue(cid, 14755) == -1 then
doCreatureSetNoMove(target, 1)
doPlayerSendCancel(cid, "You have possessed "..getCreatureName(target)..".")
if (isPlayer(target)) then
doPlayerSendCancel(target, "You have been possessed by "..getPlayerName(cid)..".")
setPlayerStorageValue(target, 14755, 1)
end
doSendAnimatedText(getCreaturePosition(target), "POSSESSED!", math.random(1,255))
local playerpos,playerdir,targetpos = getCreaturePosition(cid), getPlayerLookDir(cid), getCreaturePosition(target)
doSendDistanceShoot(playerpos, targetpos, 31)
doSendMagicEffect(getCreaturePosition(target), CONST_ME_SMALLCLOUDS)
local times = 1
addEvent(move, 1000, cid, target, playerpos, targetpos, times)
else
doPlayerSendCancel(cid, "Your Shadow Imitation Technique isn't worn out yet.")
end
end
end
Have a small taste of Naruto in your OTSeace:
Last edited: