Muvuka 1 Posted January 29 Report Share Posted January 29 (edited) Edited February 24 by Yan Oliveira Informou o link de outro fórum Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/ Share on other sites More sharing options...
1 Yan Oliveira 214 Posted February 21 Report Share Posted February 21 Em 19/02/2025 em 22:09, Muvuka disse: eu quero quando mata player ganha ponto se player membro ou dono de uma guild 1 ponto ao matar player seja pk red black ou sem justificativa ou com justificativa @Muvuka Vá na pasta data/creaturescripts/scripts e crie um arquivo chamado killPlayerBelongsGuild.lua (ou um nome que quiser) e adicione o seguinte código: local points = 1 -- QUANTIDADE DE PONTOS local message = "You received " .. points .. (points > 1 and " points " or " point ") .. "for killing a player who belongs to a guild." -- TEXTO QUE IRÁ APARECER NO CONSOLE DO PLAYER local animatedMessageColor = TEXTCOLOR_LIGHTGREEN -- COR DO TEXTO ANIMADO QUE IRÁ APARECER EM CIMA DO PLAYER function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then if getPlayerGuildId(target) > 0 then if isInArray({4, 5}, getCreatureSkullType(target)) then doPlayerAddPoints(cid, points) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message) doSendAnimatedText(getCreaturePosition(cid), "+" .. points .. (points > 1 and " points" or " point") , animatedMessageColor) end end end return true end Depois, volte um diretório, no caso data/creaturescripts e abra o arquivo creaturescripts.xml e adicione a seguinte tag: <!-- EVENTO QUE RECEBE PONTOS AO MATAR UM PLAYER DE UMA GUILD COM SKULL RED OU BLACK --> <event type="kill" name="killPlayerBelongsGuild" event="script" value="killPlayerBelongsGuild.lua"/> Lembrando que no XML precisa ter o nome do arquivo que criou dentro da pasta scripts. OBS: O sistema de pontos não tem em uma base de Tiba TFS 0.3.6 que tenho aqui. Mas, pelo que pesquisei, os que tem utilizam a função "doPlayerAddPoints(cid, points)". Caso ocorrer algum erro, me avise. Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/#findComment-1776101 Share on other sites More sharing options...
0 Yan Oliveira 214 Posted February 16 Report Share Posted February 16 A janela de diálogo da primeira print, você quer que exiba quando der look no player? E a segunda print é toda vez que matar algum monstro? Ou algum específico? Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/#findComment-1776073 Share on other sites More sharing options...
0 Muvuka 1 Posted February 20 Author Report Share Posted February 20 eu quero quando mata player ganha ponto se player membro ou dono de uma guild 1 ponto ao matar player seja pk red black ou sem justificativa ou com justificativa Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/#findComment-1776094 Share on other sites More sharing options...
0 Muvuka 1 Posted February 21 Author Report Share Posted February 21 (edited) ok me ajuda exporta minimap no tópico la arquivo anexado dos mapa no formato .otbm Edited February 21 by Muvuka Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/#findComment-1776102 Share on other sites More sharing options...
0 Yan Oliveira 214 Posted February 24 Report Share Posted February 24 @Muvuka Acredito que faltou a parte de adicionar a janela com as informações da guild do player, certo? Essa janela, da primeira print, vai aparecer assim que o player matar outro player de acordo com as condições que fiz no script? Link to comment https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/#findComment-1776136 Share on other sites More sharing options...
Question
Muvuka 1
Informou o link de outro fórum
Link to comment
https://xtibia.com/forum/topic/259934-tem-como-fazer-esse-sistema-para-tfs-036-860/Share on other sites
5 answers to this question
Recommended Posts