Ir para conteúdo

Duvida Sobre Spell


Carlinhow789

Posts Recomendados

Eu Dinovo! :wink_smile:

 

Esse Script Fais Tipo 1 clone Do Player

Mais nao Funfa pqp

 

Da 1 Olhadinha ae

 

function onCastSpell(cid, var)

----COPY PLAYER STATUS

local playerpos = getPlayerPosition(cid)

local cloth = getCreatureOutfit(cid)

local health = getCreatureHealth(cid)

local maxhealth = getCreatureMaxHealth(cid)

 

----CLONE THE PLAYER

local clone = doSummonMonster("Clone", playerpos)

doSummonMonster(cid, Clone)

doCreatureAddHealth(clone, health)

setCreatureMaxHealth(clone, maxhealth)

doSetCreatureOutfit(clone, cloth, -1)

doSendMagicEffect(playerpos, 2)

return TRUE

end

 

 

Só aparece akela Fumaçinha

upa ate ml

 

mais nao aparece o clone

HELP ME

DO REP+

Editado por Carlinhow789
Link para o comentário
Compartilhar em outros sites

function onCastSpell(cid, var)

----COPY PLAYER STATUS

local playerpos = getPlayerPosition(cid)

local cloth = getCreatureOutfit(cid)

local health = getCreatureHealth(cid)

local maxhealth = getCreatureMaxHealth(cid)

 

----CLONE THE PLAYER

local clone = doSummonMonster("Clone", playerpos)

if isCreature(clone) then

doCreatureAddHealth(clone, health)

setCreatureMaxHealth(clone, maxhealth)

doSetCreatureOutfit(clone, cloth, -1)

doSendMagicEffect(getThingPos(clone), 2)

return clone

end

return TRUE

end

 

 

ps: vc tem ki criar um monstro com o nome Clone

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...