IMPORTANT
Tibia Client Limitation:
Tibia client stores in its memories the id of each creature and its name(along with other stuff I believe), so if you for example see a troll in thais, then walk to venore, change the troll name to something else like "FakeTroll" and go back to the Thais troll, you'd still see the name troll because your client had already seen that creature, so it stored its id and name, other players that had never seen that troll before you changed the name will see the new name, but anyone that had already seen it, continues to see the old name, same applies to NPCs and Players,
function onCastSpell(cid, var)
if #getCreatureSummons(cid) <= 0 then
local playerpos = getPlayerPosition(cid)
local Bunshin = doCreateMonster("Bunshin", playerpos)
setCreatureName(Bunshin, "Dran", "a Bunshin" )
doCreatureSay(cid,"Bunshin no Jutsu!", 1)
end
end
function onCastSpell(cid, var)
if #getCreatureSummons(cid) <= 0 then
local farAwayPos = {x = 100, y = 100, z = 7} --Muda isto/Change This!!
local Bunshin = doCreateMonster("Bunshin", farAwayPos)
setCreatureName(Bunshin, "Dran", "a Bunshin")
doTeleportThing(Bunshin, getPlayerPosition(cid))
doCreatureSay(cid,"Bunshin no Jutsu!", 1)
end
end
if(type > MAGIC_EFFECT_LAST || !canSee(pos))