Ir para conteúdo

Nogard

Barão
  • Total de itens

    239
  • Registro em

  • Última visita

  • Dias Ganhos

    54

Tudo que Nogard postou

  1. http://www.xtibia.com/forum/forum/52-barzinho-do-éks/
  2. Nogard

    Bug Sqlite

    O que você quer exatamente? A criptografia é justamente por segurança.
  3. É, funciona, mas fica extenso em... Resolvido então!
  4. Nesse caso só vai funcionar ao avançar ao limite exato, não acima. O cara vai chegar no limite e ficar por ali.
  5. tenta dessa forma: local skills = { [SKILL_FIST] = {maxLevel = 249}, [SKILL_SWORD] = {maxLevel = 249}, [SKILL_AXE] = {maxLevel = 249}, [SKILL_CLUB] = {maxLevel = 249}, [SKILL_DISTANCE] = {maxLevel = 249}, [SKILL_SHIELD] = {maxLevel = 249}, [SKILL_FISHING] = {maxLevel = 249}, [SKILL__MAGLEVEL] = {maxLevel = 150},}function onAdvance(cid, skill, oldLevel, newLevel) local i = skills[skill] if i then if newLevel == i.maxLevel then doPlayerSetSkillRate(cid, skill, 0.0) doPlayerSave(cid) return true end end return trueend
  6. Quando o cara reloga é adicionado + 1 level na skill? É isso? Porque deveria ser indiferente o ato de relogar, isso seria executado sempre que tentasse avançar, mesmo que a rate não estivesse em 0.
  7. tá mais pra pântano, faltam árvores
  8. Quanto menos gambiarra melhor pra você, mano. Chegando em casa eu vejo isso pra ti.
  9. local skills = { [sKILL_FIST] = {maxLevel = 249}, [sKILL_SWORD] = {maxLevel = 249}, [sKILL_AXE] = {maxLevel = 249}, [sKILL_CLUB] = {maxLevel = 249}, [sKILL_DISTANCE] = {maxLevel = 249}, [sKILL_SHIELD] = {maxLevel = 249}, [sKILL_FISHING] = {maxLevel = 249}, [sKILL__MAGLEVEL] = {maxLevel = 150},}function onAdvance(cid, skill, oldLevel, newLevel) local i = skills[skill] if i then if newLevel > i.maxLevel then doPlayerSetRate(cid, skill, 0.0) doPlayerSave(cid) return false end end return trueend tenta dar um save, mais fácil
  10. Falta vida, você usou cores com saturação muito baixa, próximas ao cinza. Também faltaram detalhes como a boca, inclusive eu diria que esse tom de verde não seria o ideal. Algo mais próximo do amarelo.
  11. Mas, tem 2 versões de chicorita. Qual a sua?
  12. function onSay(cid, words, param, channel)local t = string.explode(param, ",")local name, days, boolean, motivo = t[1], tonumber(t[2]), t[3], t[4] if param == '' or not days or not name or not motivo then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite /ban nome,dias, true ou false (true para IP Banishment), motivo.") return true end local acc = getAccountIdByName(name) local player_ip = getPlayerIp(getPlayerByName(name)) if acc ~= 0 then local player_ip, player = getPlayerIp(getPlayerByName(name)), getPlayerByNameWildcard(name) if tostring(boolean) ~= "true" and tostring(boolean) ~= "false" then doPlayerSendTextMessage(cid, "O terceiro parâmetro deve ser true ou false. \n true = ban ip.\n /ban nome, dias, true ou false, motivo.") return true end if tostring(boolean) == "false" then print"ban normal" doAddAccountBanishment(acc, target, os.time() + 3600 * 24 * days, action, 2, 'Você foi banido por: ' .. getCreatureName(cid) .. ' \nMotivo: ' .. motivo ..'. \nQuantidade de dias: '.. days, 0) doBroadcastMessage("O jogador " .. t[1] .. " foi banido por ".. getCreatureName(cid).. ". \n Motivo:".. motivo .. ".", 25) else print "ban ip" doAddIpBanishment(player_ip) end if isPlayer(player) then doRemoveCreature(player) end endreturn trueend
  13. lembrando que o jogador alvo precisa estar online, se vc observar nos seus erros eles aparecem após o logout
  14. prem="1" </instant> <instant name="Ethereal Spear" words="exori con" lvl="23" mana="25" prem="1" range="5" needtarget="1" exhaustion="2000" blockwalls="1" needlearn="0" event="script" value="attack/ethereal spear.lua"> <vocation id="3"/> <vocation id="7"/> </instant>
  15. aqui funcionou perfeitamente brother. function onSay(cid, words, param, channel)local t = string.explode(param, ",")local name, days, boolean, motivo = t[1], tonumber(t[2]), t[3], t[4] if param == '' or not days or not name or not motivo then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite /ban nome,dias, true ou false (true para IP Banishment), motivo.") return true end local acc = getAccountIdByName(name) local player_ip = getPlayerIp(getPlayerByName(name)) if acc ~= 0 then local player_ip, player = getPlayerIp(getPlayerByName(name)), getPlayerByNameWildcard(name) if tostring(boolean) ~= "true" and tostring(boolean) ~= "false" then doPlayerSendTextMessage(cid, "O terceiro parâmetro deve ser true ou false. \n true = ban ip.\n /ban nome, dias, true ou false, motivo.") return true end if tostring(boolean) == "false" then doAddAccountBanishment(acc, target, os.time() + 3600 * 24 * days, action, 2, 'Você foi banido por: '.. motivo ..'. \nQuantidade de dias: '.. days ..'.', 0) else doAddIpBanishment(player_ip) end if isPlayer(player) then addEvent(doRemoveCreature, 2 * 1000, player) end endreturn trueend
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...