Firewalker Boss

Thiigoo
em Scripts

Thiigoo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 30/04/10Posts: 38Char no Tibia: Terry Thigo

Quando um player matar um Boss ele seja teleportado para um posição (somente quem matou)

 

Nome do Boss: Pythius The Rotten

 

 

 

Espero Respostas ;D

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

retired.

Oie :D

Thiigoo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 30/04/10Posts: 38Char no Tibia: Terry Thigo

da nenhum erro no distro mais n ta teleportando ;x

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

SCRIPTS ABAIXO.

 

Em creatureScripts.xml

 

<event type="kill" name="Rotten" script="NomeDoArquivo.lua"/>

 

Em login.lua

 

registerCreatureEvent(cid, "Rotten")

 

Até mais.

Oie :D

Vodkart

Sumus Validus
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 21/05/10Posts: 3406Gênero: Masculino

@Demon meu nego gostoso

 

uma dica é usar string.lower para retornar o nome do monstro :p

bjs

bossisg.png

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

retired.

Oie :D

Thiigoo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 30/04/10Posts: 38Char no Tibia: Terry Thigo

Não Deu

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

Eu testei e funcionou sim. Você fez algo errado, vou te passar as 3 possibilidades de scripts:

 

function onKill(cid, target)

local pos = {x=, y=, z=}

if isMonster(target) and getCreatureName(target) == 'pythius the rotten' then
doTeleportThing(cid, pos)
end
return TRUE
end

 

OU:

 

function onKill(cid, target)

local pos = {x=, y=, z=}

if isMonster(target) and string.upper(getCreatureName(target)) == 'PYTHIUS THE ROTTEN' then
doTeleportThing(cid, pos)
end
return TRUE
end

 

OU:

 

function onKill(cid, target)

local pos = {x=, y=, z=}

if isMonster(target) and string.lower(getCreatureName(target)) == 'pythius the rotten' then
doTeleportThing(cid, pos)
end
return TRUE
end

 

Agora as tags:

 

CreatureScripts.xml

 

<event type="kill" name="Rotten" script="NomeDoArquivo.lua"/>

 

Login.lua

 

registerCreatureEvent(cid, "Rotten")

 

Certamente funciona.

Oie :D

Thiigoo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 30/04/10Posts: 38Char no Tibia: Terry Thigo

Ae a ultima funciono vlw ae

REP+

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

Pedido entregue, reportando.

Oie :D