Ir para conteúdo

Featured Replies

Postado
  • Autor

Em DeathChannel.lua Coloque isto:
 

function onDeath(cid)
if isPlayer(cid) then
doPlayerSendChannelMessage(oid,getCreatureName(cid),"[Death Channel] O Jogador ".. getCreatureName(cid) .."[".. getPlayerLevel(cid) .."] morreu!", TALKTYPE_CHANNEL_W, 12)
end
return true
end

em KillerChannel.lua coloque isto dentro:

function onKill(cid, target, lastHit)
if not isPlayer(target) or not isPlayer(cid) then
return true
end
doPlayerSendChannelMessage(oid,getCreatureName(cid),"[Death Channel] O Jogador ".. getCreatureName(cid) .."[".. getPlayerLevel(cid) .."] matou o ".. getCreatureName(target) .."[".. getPlayerLevel(target) .."]", TALKTYPE_CHANNEL_W, 12)
end

Tenta Agora Larissa

wq3bBzt.png
Pokémon Dust Evolution
 
É aonde começa sua nova aventura!! 

 

Facebook

 
Verifique Atualizações

 

  • Respostas 51
  • Visualizações 12.8k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Em DeathChannel.lua Coloque isto:   function onDeath(cid) if isPlayer(cid) then doPlayerSendChannelMessage(oid,getCreatureName(cid),"[Death Channel] O Jogador ".. getCreatureName(cid) .."[".. getPl

  • luanluciano93
    luanluciano93

    ops, aqui  elseif isMonster(target) faltou o then no final ...  elseif isMonster(target) then

  • Olha Fiz um aqui rapidinho:   Em Data/Npc Crie um arquivo XML com o nome James e adicione isto dentro: <?xml version="1.0" encoding="UTF-8"?> <npc name="James" script="data/npc/scripts/

Posted Images

Postado

parabéns pela iniciativa, bom aproveitando um pouco dela eu criei um topco a um bom tempo e ate hoje ninguém se dispôs a resolver então vou postar o link dele e gostaria que vc desse uma olhada

www.tibiaking.com/forum/topic/47949-pedido-scripit-quero-que-a-outfit-mude-sozinha-em-determinado-locais/

e obrigado desde ja

Editado por wevertonvrb (veja o histórico de edições)

Postado

Um channel onde só mostraria as mortes do servidor com a cor branca.

O player fulano [204] acaba de ser morto por ciclano [97]!

 

Se tiver como, se possível também colocar pra mostrar mortes por monstro.

O player fulano [204] acaba de ser morto por um Demon!

 

ID desse channel: 12

 

E outra coisa que esqueci também, você sabe fazer um Loot Channel? Eu cheguei até a postar aqui.

ID: 13

 

-- <event type="kill" name="DeathChannel" script="death_channel.lua"/>
-- <event type="login" name="DeathChannelLogin" script="death_channel.lua"/>

function onLogin(cid)
	registerCreatureEvent(cid, "DeathChannel")

	return true
end

function onKill(cid, target)
	local channel_id = 12
	
	if isPlayer(target) then
		doPlayerSendChannelMessage(cid, "[DEATH]", "O player ".. getCreatureName(target) .." [".. getPlayerLevel(target) .."] acaba de ser morto por ".. getCreatureName(cid) .." [".. getPlayerLevel(cid) .."]!", TALKTYPE_CHANNEL_O, channel_id)
	elseif isMonster(target)
		doPlayerSendChannelMessage(cid, "[DEATH]", "O player ".. getCreatureName(target) .." [".. getPlayerLevel(target) .."] acaba de ser morto por um ".. getCreatureName(cid) .."!", TALKTYPE_CHANNEL_O, channel_id)
	end

	return true
end
Postado

eu queria um npc ou até msm um teleporte que faça basicamente isso

 

a pessoa chega no npc e fala "hi"

ai a pessoa fala por exemplo "cidade"

ai o npc vai ter fala " você quer se tornar cidadão dessa cidade?"

ai a pessoa fala "sim"

da i a partir da quele momento a pessoa passar a nascer na quele tempo e é teleportada para aquele templo

antes ela nascia no templo x , e agora a pessoa nasce no templo y

outro exemplo é , o player quando morre nasce em carlim , depois de falar com esse npc em thais ele vai passar a nascer em thais

 

eu quero que quando a pessoa morra ela pega e nasce nessa sua cidade

 

se tiver como ajudar

OuhEeY.png

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo