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
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
retired.
Oie :D
da nenhum erro no distro mais n ta teleportando ;x
SCRIPTS ABAIXO.
Em creatureScripts.xml
<event type="kill" name="Rotten" script="NomeDoArquivo.lua"/>
Em login.lua
registerCreatureEvent(cid, "Rotten")
Até mais.
Oie :D
@Demon meu nego gostoso
uma dica é usar string.lower para retornar o nome do monstro
bjs
retired.
Oie :D
Não Deu
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
Ae a ultima funciono vlw ae
REP+
Pedido entregue, reportando.
Oie :D