Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Bom Pessoal Tinha No Meu Ot Isto E Muito Legal Quando algum Player Mata Mais De 5 Pessoas Comessa a Falar Em Verde Na Tela De Seu Ot "M-M-MONSTER - Kill" Quando Voçe Passa De 3 Fala Outra Palavra Vai Ate 15 E Muito Lega Recomendo Vamos Ao Script .

em data/creaturescripts/creaturescripts.xm Adicione Esta Tag .


<event type="kill" name="pvpsystem" event="script" value="pvpsystem.lua"/>

e em data/creaturescripts/scripts cole isto em "login.lua"

registerCreatureEvent(cid, "pvpsystem")

e Em data/creaturescripts/scripts Adicione Um Arquivo.lua com este nome "pvpsystem" e cole isto dentro .
local storage = { kills = 8003 } local streaks = { [2] = "DOUBLE KILL!", [3] = "TRIPLE KILL!", [5] = "M-M-M-MONSTER KILL!!", [7] = "RAMPAGE!", [9] = "UNSTOPPABLE!", [12] = "HOLY SHIT!", [15] = "GODLIKE!!" } function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1) setPlayerStorageValue(target, storage.kills, 0) for _, pid in ipairs(getPlayersOnline()) do local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"} doPlayerSendChannelMessage(pid, "PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 10) end local k = streaks[getPlayerStorageValue(cid, storage.kills)] if k then doBroadcastMessage(getCreatureName(cid) .. " - ".. k, MESSAGE_INFO_DESCR) end end return true end
Develope'rs

Skyforever

Mad - Deads

Menoxcide

Radium

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

Pra Quem Curte Um " Hard Rock , Metal , Industrial , Classicos " Curtão Minha Radio Online Pessoal .

46020889.jpg

Link para o post
Compartilhar em outros sites

Isso pode ser usado em um ot WAR, ou até um "MOD" de tibia, tipo TIBIA GTA, TIBIA COUNTER STRIKE

entre outros. (:

Link para o post
Compartilhar em outros sites
  • 1 month later...
  • 1 year later...
  • 2 months later...

em vermelho:

 

 
local storage = {
kills = 8003
}


local streaks = {
[2] = "DOUBLE KILL!",
[3] = "TRIPLE KILL!",
[5] = "M-M-M-MONSTER KILL!!",
[7] = "RAMPAGE!",
[9] = "UNSTOPPABLE!",
[12] = "HOLY SHIT!",
[15] = "GODLIKE!!"
}


function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) then
setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1)
setPlayerStorageValue(target, storage.kills, 0)
for _, pid in ipairs(getPlayersOnline()) do
local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"}
doPlayerSendChannelMessage(pid, "PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 10)
end
local k = streaks[getPlayerStorageValue(cid, storage.kills)]
if k then
doBroadcastMessage(getCreatureName(cid) .. " - ".. k, MESSAGE_STATUS_CONSOLE_RED)
end
end
return true
end

Atenciosamente, David Araujo

Meu Conteúdo

 

Fui útil? Gostou? 
Faça uma doação.

 
 
 

"É errando que se erra."

"Gambiarras resolvem instantemente, porém podem complicar em problemas futuros."

"Cada dia vivido é um aprendizado."

Link para o post
Compartilhar em outros sites

 

em vermelho:

 

 
local storage = {
kills = 8003
}


local streaks = {
[2] = "DOUBLE KILL!",
[3] = "TRIPLE KILL!",
[5] = "M-M-M-MONSTER KILL!!",
[7] = "RAMPAGE!",
[9] = "UNSTOPPABLE!",
[12] = "HOLY SHIT!",
[15] = "GODLIKE!!"
}


function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) then
setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1)
setPlayerStorageValue(target, storage.kills, 0)
for _, pid in ipairs(getPlayersOnline()) do
local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"}
doPlayerSendChannelMessage(pid, "PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 10)
end
local k = streaks[getPlayerStorageValue(cid, storage.kills)]
if k then
doBroadcastMessage(getCreatureName(cid) .. " - ".. k, MESSAGE_STATUS_CONSOLE_RED)
end
end
return true
end

 

Olá David0703.. nesta sua citação a mensagem só aparece no broadcast em vermelho.. gostaria que aparecesse para o otserver inteiro tem como? ty

Link para o post
Compartilhar em outros sites

Tenta assim:

 

 
local storage = {
kills = 8003
}


local streaks = {
[2] = "DOUBLE KILL!",
[3] = "TRIPLE KILL!",
[5] = "M-M-M-MONSTER KILL!!",
[7] = "RAMPAGE!",
[9] = "UNSTOPPABLE!",
[12] = "HOLY SHIT!",
[15] = "GODLIKE!!"
}


function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) then
setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1)
setPlayerStorageValue(target, storage.kills, 0)
for _, pid in ipairs(getPlayersOnline()) do
local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"}
doPlayerSendChannelMessage(pid, "PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 10)
end
local k = streaks[getPlayerStorageValue(cid, storage.kills)]
if k then
doBroadcastMessage(getCreatureName(cid) .. " - ".. k)
end
end
return true
end


Olá David0703.. nesta sua citação a mensagem só aparece no broadcast em vermelho.. gostaria que aparecesse para o otserver inteiro tem como? ty

 

O texto em vermelho fica na aba de informações, ao lado direto da principal.

 

------------[EDITED]------------

Agora vai .-.

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

Atenciosamente, David Araujo

Meu Conteúdo

 

Fui útil? Gostou? 
Faça uma doação.

 
 
 

"É errando que se erra."

"Gambiarras resolvem instantemente, porém podem complicar em problemas futuros."

"Cada dia vivido é um aprendizado."

Link para o post
Compartilhar em outros sites

Tenta assim:

 

 
local storage = {

kills = 8003

}

local streaks = {

[2] = "DOUBLE KILL!",

[3] = "TRIPLE KILL!",

[5] = "M-M-M-MONSTER KILL!!",

[7] = "RAMPAGE!",

[9] = "UNSTOPPABLE!",

[12] = "HOLY SHIT!",

[15] = "GODLIKE!!"

}

function onKill(cid, target, lastHit)

if isPlayer(cid) and isPlayer(target) then

setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1)

setPlayerStorageValue(target, storage.kills, 0)

for _, pid in ipairs(getPlayersOnline()) do

local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"}

doPlayerSendChannelMessage(pid, "PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 10)

end

local k = streaks[getPlayerStorageValue(cid, storage.kills)]

if k then

doBroadcastMessage(getCreatureName(cid) .. " - ".. k)

end

end

return true

end

 

O texto em vermelho fica na aba de informações, ao lado direto da principal.

 

------------[EDITED]------------

Agora vai .-.

ae agora foi valeu irmao rep ++

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo