Diferença de level para poder upar alguem ajuda.
Por ravely13, 25 de dez. de 2012 em Scripts
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

info
Grupo: Artesão
Registrado: 01/12/12
Posts: 104
Reputação: 0
Char no Tibia: Lord'paulistinha

Será que é nesse script?
Não entendeu a pergunta Vodkart?
function onKill(cid, target)--config----------------------------
local lvl = getPlayerLevel(cid) --players level
local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels
--end-------------------------------
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 400 * (lvl)) / 5
local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 400 * (nlvl)) / 5
local newexp = nexp - exp
doPlayerAddExp(cid,newexp)
doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198)
else
doPlayerAddExperience(cid, -50000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
Editado Dezembro 25 por ravely13


info
Grupo: Artesão
Registrado: 01/12/12
Posts: 104
Reputação: 0
Char no Tibia: Lord'paulistinha
No no meu otserv, com mais o menos 25lvl's de diferença , matando o outro player ele não vai upar , tipo um level 300 matando um level 130 não upa , alguem sabe como resolver esse problema?