Ir para conteúdo

Sociopata

Membro
  • Registro em

  • Última visita

Tudo que Sociopata postou

  1. Sociopata postou uma resposta no tópico em Ferramentas OpenTibia
    Vlw tava esperando já agr posso continua um projeto aqui
  2. Coloquei o zombievent no meu serve so que fica dando esse bug no distro ta ae os arquivos esse ae éo arquivo do zombie q ta dando erro no console \/ function loseOnZombieArena(cid) kickPlayerFromZombiesArea(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "BOOM! You are dead.") local players = getZombiesEventPlayers() if(#players <= 1) then local winner = players[1] if(winner) then doPlayerAddItem(winner, 2157, 5, true) doPlayerAddItem(winner, 6119, 1, true) doPlayerSendTextMessage(winner, MESSAGE_STATUS_CONSOLE_BLUE, "You won zombies arena event.") doBroadcastMessage("After " .. os.time() - getPlayerZombiesEventStatus(winner) .. " seconds of fight " .. getCreatureName(winner) .. " won Zombie Arena Event in game versus " .. getStorage(ZE_ZOMBIES_SPAWNED) .. " zombies!") kickPlayerFromZombiesArea(winner) else doBroadcastMessage("Zombie arena event finished! No one win?!?!?! WTF!") end doSetStorage(ZE_STATUS, 0) doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS) doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0) doSetStorage(ZE_ZOMBIES_SPAWNED, 0) local width = (math.max(ZE_spawnFromPosition.x, ZE_spawnToPosition.x) - math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)) / 2 + 1 local height = (math.max(ZE_spawnFromPosition.y, ZE_spawnToPosition.y) - math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)) / 2 + 1 local centerPos = {x=math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)+width,y=math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)+height,z=ZE_spawnFromPosition.z} for z = math.min(ZE_spawnFromPosition.z, ZE_spawnToPosition.z), math.max(ZE_spawnFromPosition.z, ZE_spawnToPosition.z) do centerPos.z = z for i, uid in pairs(getSpectators(centerPos, width, height, false)) do if(isMonster(uid)) then doRemoveCreature(uid) end end end end end function onStatsChange(target, cid, changetype, combat, value) if((cid and isMonster(cid) and getCreatureName(cid) == "Zombie Event") or (isInRange(getThingPosition(target), ZE_spawnFromPosition, ZE_spawnToPosition) and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target))) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) loseOnZombieArena(target) return false end return true end eo lib aqui function isInRange(pos, fromPosition, toPosition) return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z and position.x <= toPosition.x and position.y <= toPosition.y and position.z <= toPosition.z) end function getDistanceBetween(firstPosition, secondPosition) local x, y = math.abs(firstPosition.x - secondPosition.x), math.abs(firstPosition.y - secondPosition.y) local diff = math.max(x, y) if(firstPosition.z ~= secondPosition.z) then diff = diff + 9 + 6 end return diff end function getDirectionTo(pos1, pos2) local dir = NORTH if(pos1.x > pos2.x) then dir = WEST if(pos1.y > pos2.y) then dir = NORTHWEST elseif(pos1.y < pos2.y) then dir = SOUTHWEST end elseif(pos1.x < pos2.x) then dir = EAST if(pos1.y > pos2.y) then dir = NORTHEAST elseif(pos1.y < pos2.y) then dir = SOUTHEAST end else if(pos1.y > pos2.y) then dir = NORTH elseif(pos1.y < pos2.y) then dir = SOUTH end end return dir end function getCreatureLookPosition(cid) return getPosByDir(getThingPos(cid), getCreatureLookDirection(cid)) end function getPosByDir(fromPosition, direction, size) local n = size or 1 local pos = fromPosition if(direction == NORTH) then pos.y = pos.y - n elseif(direction == SOUTH) then pos.y = pos.y + n elseif(direction == WEST) then pos.x = pos.x - n elseif(direction == EAST) then pos.x = pos.x + n elseif(direction == NORTHWEST) then pos.y = pos.y - n pos.x = pos.x - n elseif(direction == NORTHEAST) then pos.y = pos.y - n pos.x = pos.x + n elseif(direction == SOUTHWEST) then pos.y = pos.y + n pos.x = pos.x - n elseif(direction == SOUTHEAST) then pos.y = pos.y + n pos.x = pos.x + n end return pos end function doComparePositions(pos, posEx) return pos.x == posEx.x and pos.y == posEx.y and pos.z == posEx.z end function getArea(pos, rangeX, rangeY) local t = {} for i = (pos.x - rangeX), (pos.x + rangeX) do for j = (pos.y - rangeY), (pos.y + rangeY) do table.insert(t, {x = i, y = j, z = pos.z}) end end return t end
  3. Sociopata postou uma resposta no tópico em Remere's Map Editor
    a o nervosismo é de lei já mas to achando que to pegando pratica
  4. Sociopata postou uma resposta no tópico em Remere's Map Editor
    bem bacana amigo
  5. :trollface: :trollface: :trollface: :trollface: :trollface:
  6. Sociopata postou uma resposta no tópico em Ouvidoria
    Bem eu particularmente comento todos os postes que vejo e agradeço a contribuição não so para mim mas para outros membros tbm
  7. Sociopata postou uma resposta no tópico em Ouvidoria
    algumas vezes as pessoas não cometam por alguém ja fazer o comentário que ela iria fazer ou não tem o que cometar (penso eu)
  8. simples,eficiente e legal pra fazer quest
  9. google sempre impressionando como sempre
  10. Poste um Scan Fera é sempre Bom , mas vo quebra seu galho Scan = http://www.virustotal.com/file-scan/report.html?id=dded51056cddd076a63ed0780312a09618240f62d422d745eaa025d58331c59c-1324157026 2 / 43 (4.7%)
  11. certifique-se de está tudo certo no config.lua se está mysql a senha está certa se vc retirou os espaços no começo das frases eo os traços --
  12. Sociopata postou uma resposta no tópico em Suporte Tibia OTServer
    só você ir em data/movements movements.xml ele explico ae
  13. Bacana vlw contribuição reputado
  14. vc já tem o level necessario??
  15. Sociopata postou uma resposta no tópico em Suporte & Pedidos
    me parece com WOE mas continue desenvolvendo para vermos como fica e no final se ficar bom não esqueça o download
  16. Sociopata postou uma resposta no tópico em Remere's Map Editor
    deu certo vlw KIMOSZIN eu não sabia disso eu usava script
  17. Sociopata postou uma resposta no tópico em Remere's Map Editor
    será eu nunca testei dessa maneira
  18. Sociopata postou uma resposta no tópico em Remere's Map Editor
    tendi isso ae mexe com script não sou mto bom tem q ter o script ea quest pronta q itens vai dar na quest ae te passo o script por PM
  19. Sociopata postou uma resposta no tópico em Playground (Off-topic)
    vai dar Barça na mente Verdão ate o fim
  20. Sociopata postou uma resposta no tópico em Remere's Map Editor
    explique um pouco mais, vc está falando de alavanca e talz?
  21. Sociopata postou uma resposta no tópico em Ouvidoria
    MP pro matheus simples
  22. Sociopata postou uma resposta no tópico em Playground (Off-topic)
    eu acho que não era necessário a criação desse tópico pois vc já é aprendiz, mas enfim tomara que vc seja promovido Boa sorte
  23. Sociopata postou uma resposta no tópico em Suporte Tibia OTServer
    http://tibiaking.com/forum/topic/9212-colocando-seu-site-online-pelo-8090-e-desbloqueando-a-porta-8090/

Informação Importante

Confirmação de Termo