Ir para conteúdo
  • 0

Duvida Teletransporte Doteleportthing


Pergunta

Seguinte peguei esse script que foi postado no forum pelo Vodka LINK, mas postei um duvida e não obitive resposta por acho eu, não ser a area certa para duvidas.

 

Bom, vamos lá! o script dele é perfeito e bem objetivo mata o mostro e é teleportado para a posição X, porem há um problema se você estiver com um druida, manda o summon matar o monstro, o summon é teleportado e você fica.

 

como resolver?

 

muito obrigado!

 

function onDeath(cid, corpse, killer)

 

local Ppos = {x = 1004, y = 831, z = 7} -- posicao para onde ele vai ir

 

local monstName = "Rat"

local Storage = 11543

 

if isMonster(cid) then

if string.lower(getCreatureName(cid)) == string.lower(monstName) then

doTeleportThing(killer[1], Ppos)

end

end

return TRUE

end

Editado por TeruN
Link para o comentário
https://xtibia.com/forum/topic/157254-duvida-teletransporte-doteleportthing/
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

Tente assim:

 

function onDeath(cid, corpse, killer)

local Ppos = {x = 1004, y = 831, z = 7} -- posicao para onde ele vai ir

local monstName = "Rat"
local Storage = 11543

if isMonster(cid) then
  if string.lower(getCreatureName(cid)) == string.lower(monstName) then
     doTeleportThing(killer[1], Ppos)
        if isSummon(killer[1]) then
           doTeleportThing(getCreatureMaster(killer[1]), Ppos)
        end
  end
end
return TRUE
end

 

 

flw

Link para o comentário
https://xtibia.com/forum/topic/157254-duvida-teletransporte-doteleportthing/#findComment-1038137
Compartilhar em outros sites

  • 0

ahhhhhhhhhhhhhhhhhhhhhhhhh

 

i don't believe it!!!

 

perfeito valeuzao

 

rep+

 

 

se não for pedir de mais, consegue me ajudar nessa?

http://www.xtibia.com/forum/topic/157213-script-chave-desaparecer/

 

 

abraço

Editado por TeruN
Link para o comentário
https://xtibia.com/forum/topic/157254-duvida-teletransporte-doteleportthing/#findComment-1038142
Compartilhar em outros sites

×
×
  • Criar Novo...