TE

Duvida Teletransporte Doteleportthing

Por Terun, 25 de mai. de 2011 em Scripts

otserv
tibia
script
3
1.5k
TerunT
25 de maio de 2011 às 12:11

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 Maio 25 por TeruN

joaohdJ
26 de maio de 2011 às 07:29

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

TerunT
26 de maio de 2011 às 09:10

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 Maio 26 por TeruN