- 0
dúvida Algo Errado Com Meu Onkill.lua
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
- 0 respostas
- 3186 visualizações
-
- 1 resposta
- 1598 visualizações
-
- 2 respostas
- 2568 visualizações
-
- 1 resposta
- 2255 visualizações
-
- 2 respostas
- 3074 visualizações
-

Pergunta
hadamais 2
Eis meu OnKill.lua
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) doPlayerAddMoney(cid, 20) doCreatureSetDropLoot(target, false) 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 endPORQUE NÃO ESTÁ MAIS SUBINDO XP?
Obs: Servidor Enforced!
Link para o comentário
https://xtibia.com/forum/topic/195672-algo-errado-com-meu-onkilllua/Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados