Postado Maio 2, 2012 13 anos Créditos Lpz e Skyforever Primeiramente vá em /data/creaturescripts/scripts cria um arquivo pvp channel e adiciona isso dentro: local storage = { kills = 80032 } local msg = { [2] = "DOUBLE KILL!", -- kills, mensagem [3] = "TRIPLE KILL!", [5] = "M-M-M-MONSTER KILL!!", [7] = "RAMPAGE!", [9] = "UNSTOPPABLE!", [12] = "GODLIKE!" } local rewards = { [2] = {item =12 , quanti =1} [3] = {item =12 , quanti =1} [5] = {item =12 , quanti =1} [7] = {item =12 , quanti =1} [9] = {item =12 , quanti =1} [12] = {item =12 , quanti =1} } 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 k = msg[getPlayerStorageValue(cid, storage.kills)] local r = rewards[getPlayerStorageValue(cid, storage.kills)] local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "arrebentou"} doPlayerSendChannelMessage(pid, "Killer Informer", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".", TALKTYPE_CHANNEL_Y, 15) if k then doPlayerSendChannelMessage(pid, "Killer Informer", getCreatureName(cid) .. " - ".. k, TALKTYPE_CHANNEL_O, 15) end end if r then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "PVP: Você ganhou "..r.quanti.." "..getItemNameById(r.item)..".") doPlayerAddItem(cid, r.item, r.quanti) end end return true end depois em creaturescripts.xml adicione essa tag: <event type="kill" name="PvpChannel" event="script" value="pvp channel.lua"/> em login.lua essa linha: registerCreatureEvent(cid, "PvpChannel") em data/xml/channels adicione essa tag: <channel id="10" name="PVP" logged="yes" active="0"/> Editado Maio 3, 2012 13 anos por Skyforever Colocar denovo o script (veja o histórico de edições) Retirado. Skype: joaoxtibia85.
Postado Maio 2, 2012 13 anos Bem semelhante com esse não? http://tibiaking.com/forum/topic/11141-pvp-system/page__p__52076#entry52076 http://baiakuza.com/IP: baiakuza.com TIBIA: 10.96 Baiak Custom [ High Exp Rate ]
Postado Maio 3, 2012 13 anos Autor Sim mais eu não copiei se quise fechar o topico pode fechar, ai sky fecha o topico Editado Maio 3, 2012 13 anos por Skyforever (veja o histórico de edições) Retirado. Skype: joaoxtibia85.
Postado Maio 3, 2012 13 anos deixa o seu script. é diferente.. porém só colocar o crédito do lpz, e o seu claro. http://baiakuza.com/IP: baiakuza.com TIBIA: 10.96 Baiak Custom [ High Exp Rate ]
Postado Agosto 20, 2012 12 anos Gostei Obrigado Pela Contribuição. Contato; god.marinii [email protected]
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.