Ir para conteúdo

klipstyle

Membro
  • Registro em

  • Última visita

Tudo que klipstyle postou

  1. klipstyle postou uma resposta no tópico em Ferramentas OpenTibia
    Poderia colocar opção 8.54 x.x
  2. function onLogin(cid) if getPlayerStorageValue(cid, 1596) < 1 and getCreatureName(cid) ~= "Account Manager" then setPlayerStorageValue(cid, 1596, 1) doTeleportThing(cid, {x=1129, y=1160, z=6}) doPlayerPopupFYI(cid, "Msg") end return true end
  3. Amigo note no final da vocação da Bulma o ); você deve fechar a tabela apenas depois da nova vocação que adicionou.
  4. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 39) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 49) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, false) local config = { tempo = 60, --- tempo que vai durar a spell shield = 25 -- quanto shield vai adicionar } local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, config.tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, true) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, config.shield) setCombatCondition(combat, condition) local condition2 = createConditionObject(CONDITION_MANASHIELD) setConditionParam(condition2, CONDITION_PARAM_TICKS, config.tempo*1000) setCombatCondition(combat2, condition2) function onCastSpell(cid, var) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você agora está com 25 de shield e magic shield por 1 minuto") addEvent(doCombat, 0, cid, combat, var) addEvent(doCombat, 0, cid, combat2, var) return true end
  5. function onLogin(cid) if getPlayerStorageValue(cid, 1596) < 1 then setPlayerStorageValue(cid, 1596, 1) doTeleportThing(cid, {x=1129, y=1160, z=6}) doPlayerPopupFYI(cid, "Msg") end return true end
  6. O depot da cidade é o mesmo townid da house?
  7. Eu não entendi pq um Stepin printa no start do server, e tambem nao vejo a menor utilidade para printar quantia de players na distro, eu simplesmente desativaria o print amigo. -- == Blood Castle Event por Killua == -- function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if item.actionid == 4726 then setGlobalStorageValue(bloodconfig.playersStorage, getPlayersInBlood()+1) --print(getPlayersInBlood().. " Jogadores no Blood Castle") elseif item.actionid == 9371 then setGlobalStorageValue(bloodconfig.playersStorage, getPlayersInBlood()-1) --print(getPlayersInBlood().. " Jogadores no Blood Castle") end return true end
  8. Realmente confundi feio ali, mais tenta puxar direto a posição sem o for ja que é apenas 1 estatua agora.E confirma pra mim oque é o "1304" function removeStones() local pedra = getTileItemById(bloodconfig.posPedras, 1304) if pedra then doRemoveItem(pedra.uid, 1) end end function putStones() local pedra = getTileItemById(bloodconfig.posPedras, 1304).uid if pedra < 1 then doCreateItem(1304, 1, bloodconfig.posPedras[i]) end end
  9. O id esta correto em idDasParedes
  10. Você não precisa colocar tantas posiçoes iguais da mesma pedra, por que alguns for's iram puxar quantas pedras sao por essa tabela, apenas reduza para. posPedras = {x = 2566, y = 971, z = 6, stackpos=1},
  11. Muito bom, teria interesse em tentar umas de pokemon? caso de certo tenho um pequeno trabalho "remunerado' ^^' aguardo contato.
  12. klipstyle postou uma resposta no tópico em Suporte Tibia OTServer
    Troque if isPlayer(cid) then actionid == 5955 then por if isPlayer(cid) and actionid == 5955 then
  13. vish maria sua source nao tem nenhuma função do script kkk'
  14. local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if(os.time() < getPlayerStorageValue(cid, storage)) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, storage, os.time() + exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end
  15. local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if(os.time() < getPlayerStorageValue(cid, storage)) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, storage, os.time() + exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end não tem função nenhuma na sua source o.o' qual source ta usando?
  16. local position = getCreaturePosition(cid) -- Posição que monstros vão nascer.
  17. local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getThingPosition(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if exhaustion.get(cid, storage) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then exhaustion.set(cid, storage, exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], position) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end
  18. essa parte da porta fechar movendo player que esta dentro seria na lib 000-constant.lua procura por doors =
  19. testou script que mandei? erro? sucesso? oque deu? vai funcionar apenas na porta com actionid registrado (:
  20. Respondido :D para ser mais especifico na pasta do new client va em "\data\things\854" nesse exemplo usado é para uma versão 8.54 cole Tibia.dat e Tibia.spr dentro da pasta da sua versão, configure ip do new client e pronto.
  21. local door = 6259 function onUse(cid, item, frompos, item2, topos) if item.itemid == door then if not isPremium(cid) then return doPlayerSendTextMessage(cid,22,"Need premium account.") end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, topos, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Welcome.") else doPlayerSendTextMessage(cid,22,"Wait for the door to close.") return true end return true end
  22. qual id da porta fechada e aberta.?
  23. local monster = {"Rattata", "Raticate", "Gloom"} -- Monstros que serão criados. local position = getThingPos(cid) -- Posição que monstros vão nascer. local exhausted = 120 -- Tempo em segundos para usar. local level = 20 -- Level minimo para usar. local storage = 4400 -- Registro para salvar tempo. function onUse(cid, item, frompos, itemEx, topos) if exhaustion.get(cid, storage) then doPlayerSendCancel(cid, 'You can only call a monster again after '.. exhaustion.get(cid, storage) .. ' seconds.') return true end if getPlayerLevel(cid) >= level then exhaustion.set(cid, storage, exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. monster[math.random(1, #monster)] ..".") doCreateMonster(monster[math.random(1, #monster)], getThingPos(cid)) else doPlayerSendCancel(cid, 'You\'re too weak to call a monsters here, come back when you\'re level '.. level .. '.') end return true end
  24. Acredito que usando as próprias configurações de um monstro já daria pra fazer, basta colocar pra ele atacar a uns 3 sqm e ele vai ficar correndo ate morrer, e sumira quando der uma certa distancia. Coloque respawn normais pela city deixe dano minimo e hp alto lembrando do looktype de player.
  25. Poderia fazer uma versão para Modern AAC já que não existe nenhuma funcional a muito tempo.

Informação Importante

Confirmação de Termo