Ir para conteúdo

loreal

Membro
  • Registro em

  • Última visita

Tudo que loreal postou

  1. queria por só com dinheiro como eu faço?
  2. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    eu editei certinho no item editor para deixar item onuse mais quando vou clikar no item fica normal alguém sabe alguma action para deixa item onuse ou algo do tipo sem editar no item editor ? upp ajuda ai galera aff
  3. tentei deixar esse script para poder refinar so itens de defesa como armor,boots,helmet,shield... mais ainda ta refinando itens de ataque como sword,axe,club etc. queria tb deixar para poder refinar no maximo até +10 OBG!!!! local vocations = {1, 2, 4, 5, 6, 7, 8} -- Vocações que podem refinar itens local ids_bloqueados = {2160, 5706, 2463} -- Itens que não podem ser refinados local controle = { {level = 0, money = 1, chance = 100}, -- Level do item, quantidade de Iron Ore necessaria, chance de sucesso {level = 1, money = 100, chance = 100}, } function getItemLevel(uid) if uid > 0 then return getItemAttribute(uid, "lvl") or 0 end return false end function doItemAddLevel(uid, count) if uid > 0 and tonumber(count) > 0 then return doItemSetAttribute(uid, "lvl", getItemLevel(uid) + count) end return false end function onUse(cid, item, fromPosition, itemEx, toPosition) if not isInArray(vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "Sua vocacao nao pode refinar.") elseif isInArray(ids_bloqueados, itemEx.uid) then return doPlayerSendCancel(cid, "Este item nao pode ser refinado.") end if getItemInfo(itemEx.itemid).defense > 0 or getItemInfo(itemEx.itemid).armor > 0 then for _, upgrade in pairs(controle) do local def = getItemAttribute(itemEx.uid, "defense") or getItemInfo(itemEx.itemid).defense local arm = getItemAttribute(itemEx.uid, "armor") or getItemInfo(itemEx.itemid).armor local chance = math.random(1, 100) if getItemLevel(itemEx.uid) == upgrade.level then if doPlayerRemoveItem(cid, 2160, upgrade.money) then doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_CRAPS) if chance <= upgrade.chance then if getItemLevel(itemEx.uid) == 0 then doItemSetAttribute(itemEx.uid, "description", "Esse item foi refinado por" ..getCreatureName(cid)) end doItemAddLevel(itemEx.uid, 1) doItemSetAttribute(itemEx.uid, "name", getItemNameById(itemEx.itemid).. " + " ..getItemLevel(itemEx.uid)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce refinou com sucesso! Agora seu "..getItemNameById(itemEx.itemid).." eh level " ..getItemLevel(itemEx.uid)) if getItemInfo(itemEx.itemid).armor > 0 then doItemSetAttribute(itemEx.uid, "armor", arm + 1) return true elseif getItemInfo(itemEx.itemid).defense > 0 and getItemInfo(itemEx.itemid).attack <= 0 then doItemSetAttribute(itemEx.uid, "defense", def + 1) return true end else doTransformItem(itemEx.uid, 2256) doItemSetAttribute(itemEx.uid, 'name', "metal trash") doItemSetAttribute(itemEx.uid, 'armor', 0) doItemSetAttribute(itemEx.uid, 'defense', 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce falhou.") return true end else doPlayerSendCancel(cid, "Voce nao tem dinheiro o suficiente. Voce precisa de "..upgrade.money.." crystal coins.") end end end else doPlayerSendCancel(cid, "Esse item nao pode ser refinado.") end return true end
  4. n fumfo deu erro console creaturenofould
  5. preciso de um script que quando player matar x monstro ganhar x storage! alguém consegue fazer ?
  6. meu ot tem sistema de pz que player pode passa por dentro do outro player queria um script que so pode fica 1 player no title do dp ! tentei esse script mais n deu certo! function onStepIn(cid, item, position, fromPosition) if isPlayer(cid) then if item.actionid == actionID then if #players > 1 then doTeleportThing(cid, fromPosition) else doTeleportThing(cid, teleportPos) end end end return true end
  7. troquei de sources itens da house dos players sumiu! oq eu faço para converter isso ?
  8. bom queria um script quando player matasse x quantidade de frags ganhasse esses 3 tipo trofeu! 50 frags matou 50 players parabéns! id [10127] 100 frags matou 100 players parabéns! id [10128] 200 frags matou 200 players parabéns! id [10129]
  9. bom queiro saber como faço para deixar os frags do meu ot assim. player mata 20 players pega red com tempo 24h para sair red. e zerar os frags e poder mata mais 20. player mata 30 players pega black com tempo de 24h para sair black.e zerar os frags e poder mata mais 30. sem frags por semana e mes apenas assim alguém me ajuda ? no config.lua ta assim useFragHandler = true redSkullLength = 24 * 60 * 60 blackSkullLength = 24 * 60 * 60 dailyFragsToRedSkull = 20 weeklyFragsToRedSkull = 30 monthlyFragsToRedSkull = 140 dailyFragsToBlackSkull = 30 weeklyFragsToBlackSkull = 60 monthlyFragsToBlackSkull = 145 dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 80 blackSkulledDeathMana = 0 useBlackSkull = true advancedFragList = false
  10. agora fumfo n ta sumindo aol, só tem um problema ta dropando os itens... tentei por 0 tb ta dropando os itens... agora to tentando usar base desse script local config = { ammyID = 2173, lossItems = false } function onDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if (getPlayerSlotItem(cid, 2).itemid == config.ammyID) then doPlayerRemoveItem(cid, 2173, 1) if isPlayer(cid) and isMonster(lastHitKiller) and (getPlayerSlotItem(cid, 2).itemid == config.ammyID) then end doCreatureSetDropLoot(cid, config.lossItems) return true end end return true end
  11. qual e table para ver quantos pontions do shop todos os players do server tem ? e para ver quem e agod ou adm ?
  12. aol ta sumindo. tentei colocar outra id de outro colar mais só colar que n dropa aol continua sumindo
  13. me passa as tags certinhas para eu ver ?
  14. não funfo ainda ta sumindo colar e os itens quando morre para algun bixo e players :c ajuda ai pff preciso colocar esse sistema no meu ot
  15. erro ainda continua [19:30:28.386] [Warning - Event::loadScript] Event onPrepareDeath not found (dat a/creaturescripts/scripts/aolinfinity.lua) UP up
  16. vlw ob pois é obg!!
  17. não funfo deu esse warving tb [18:57:36.879] [Warning - Event::loadScript] Event onPrepareDeath not found (dat a/creaturescripts/scripts/aolinfinity.lua)

Informação Importante

Confirmação de Termo