Ir para conteúdo

vikingmu

Membro
  • Registro em

  • Última visita

  1. vikingmu postou uma resposta no tópico em Suporte Tibia OTServer
    Olá, não achei a área de pedidos... Ai postei aqui Gostaria de saber se alguém poderia disponibilizar uma função que gera uma nova RK no Gesior ou algum item que clicando gera uma rk. Obrigado a todos
  2. Alguém usa ainda? Aqui não está funcionando, os points não são creditados e não gera log na database :S
  3. Só em ver esse nome "Absolut" já imagino a tranqueira de bugs existentes nele.
  4. Mas muitos ots vendem esse item já.... E aproveitando o tópico, alguém aqui é BEM ENTENDIDO de ot? Precisava de uma ajuda.... manda skype PM até pago se conseguir o que quero..
  5. Estavam derrubando meu ot e a pessoa disse que tem uns 4 bugs que crasham aquele ot. Alguém sabe dizer quais são os possíveis bugs? :S to na mão da pessoa agora.
  6. É possível fazer um script para um item gerar uma nova RK para a account?
  7. script: dofile('data/lmsLib.lua') local function sendReminderLMSEvent() Game.broadcastMessage(string.format('Last Man Standing Event has started and waiting for players to join! Min %s/%s.', lmsConfigTable.minPlayers, lmsConfigTable.maxPlayers), MESSAGE_STATUS_WARNING) end function onThink(interval, lastExecution) if #Game.getPlayers() < lmsConfigTable.minPlayers then --Min players is not online, we stop event from executing return true end if not Game.getStorageValue(lmsStatesTable.EVENT_STATE_STORAGE) then Game.setStorageValue(lmsStatesTable.EVENT_STATE_STORAGE, lmsStatesTable.EVENT_STATE_CLOSED) end if Game.getStorageValue(lmsStatesTable.EVENT_STATE_STORAGE) ~= lmsStatesTable.EVENT_STATE_CLOSED then return true end local teleportTile = Tile(lmsTeleportTable.createTeleportPosition):getItemById(lmsTeleportTable.teleportId) if not teleportTile then local teleport = Game.createItem(lmsTeleportTable.teleportId, 1, lmsTeleportTable.createTeleportPosition) if teleport then teleport:setAttribute(ITEM_ATTRIBUTE_UNIQUEID, lmsTeleportTable.teleportUid) end end Game.setStorageValue(lmsStatesTable.EVENT_STATE_STORAGE, lmsStatesTable.EVENT_STATE_INIT) Game.setStorageValue(lmsConfigTable.joinedCountStorage, 0) Game.broadcastMessage(string.format('Last Man Standing Event has started and waiting for players to join! Min %s/%s.', lmsConfigTable.minPlayers, lmsConfigTable.maxPlayers), MESSAGE_STATUS_WARNING) addEvent(startLMSEvent, lmsConfigTable.waitingMinutes * 60 * 1000) addEvent(sendReminderLMSEvent, (lmsConfigTable.waitingMinutes / 2) * 60 * 1000) return true end TFs 1.x Alguém? REP nas respostas
  8. local voc = {1, 2, 3, 4, 5, 6, 7, 8} local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 88888) setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 0.01) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 10 * 60 * 1000) arr = { {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, } local area = createCombatArea(arr) local combat = createCombatObject() setCombatArea(combat, area) function onTargetTile(cid, pos) local creatureTable = {} local n, i = getTileInfo({x=pos.x, y=pos.y, z=pos.z}).creatures, 1 if n ~= 0 then local v = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=i}).uid while v ~= 0 do if isCreature(v) == true then table.insert(creatureTable, v) if n == #creatureTable then break end end i = i + 1 v = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=i}).uid end end if #creatureTable ~= nil and #creatureTable > 0 then for r = 1, #creatureTable do if creatureTable[r] ~= cid then local min = 1500 local max = 1700 if isPlayer(creatureTable[r]) == true and isInArray(voc, getPlayerVocation(creatureTable[r])) == true then doTargetCombatHealth(cid, creatureTable[r], COMBAT_FIREDAMAGE, -min, -max, CONST_ME_NONE) elseif isMonster(creatureTable[r]) == true then doTargetCombatHealth(cid, creatureTable[r], COMBAT_FIREDAMAGE, -min, -max, CONST_ME_NONE) end end end end doSendMagicEffect(pos, CONST_ME_FIREAREA) return true end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") local function delayedCastSpell(cid, var) if isCreature(cid) == true then doCombat(cid, combat, positionToVariant(getCreaturePosition(cid))) end end function onCastSpell(cid, var) if isCreature(cid) == true then if getCreatureHealth(cid) < getCreatureMaxHealth(cid) * 0.1 and getCreatureCondition(cid, CONDITION_REGENERATION, 88888) == false then doAddCondition(cid, condition) addEvent(delayedCastSpell, 5000, cid, var) doCreatureSay(cid, "Better flee now.", TALKTYPE_ORANGE_1) else return false end else return false end return true end Ai o script... eu sei inglês, só não entendo de scripts mesmo Eu acho que são esses símbolos "~=" Obs. Já removi essa magia, ele solta essa magia assim que é morto, ai da o erro. Por enquanto eu removi ela
  9. vikingmu reagiu a uma resposta no tópico: Erro MAWHAWK (print)
  10. Tirei o dia para ver os logs, estou vendo alguns erros. Alguém sabe o que pode ser esse erro acima? Todas as respostas ganharão REP. Obrigado a todos
  11. POR ACASO, fui ver o log, ai percebi esse erro da foto acima. Alguém sabe o que pode ser? Eu uso a rope normal aqui. Obrigado a todos!
  12. Bom dia, alguém sabe um modo fácil ou pelo menos melhor do que eu uso para procurar uma Unique ID duplicada? UniqueID 2000 :S Eu estou tentando ir chest por chest, pra ver se é lá. Não é possível, deve haver algum outro modo . Alguém ajuda?!?! obrigado forum
  13. Edited*: Usei só o seu movements com a action que já tinha, troquei o valor do storage e está tudo OK, até o momento não deu erro nenhum. Olhando esse script, será que quando se passarem os 30 dias, o player vai perder sua VIP ? Se a resposta for sim, eu gostaria de adicionar uma script para teleportar o player até o templo assim que acabasse. Poderia ajudar? Obrigado
  14. vikingmu reagiu a uma resposta no tópico: ERROR in function '__sub' blá blá! HELP
  15. Olá olhem o erro que está dando: Obs, não sei nem se com esses arquivos a VIP vai acabar normal ou ficar infinita (quero pra acabar). Tentei colocar um sistema vip com esses arquivos: Em movements.xml <movevent event="StepIn" actionid="29859" script="viptile.lua"/> Em actions.xml <action itemid="16101" script="VIP Tile.lua"/> Em movements>Scripts> viptile.lua function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "This place is only for vip players,please buy a VIP Scroll.", msgWelcome = "Welcome to VIP PLACE!!." } if getPlayerStorageValue(cid, 445577) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end end Em actions>scripts> VIP tile.lua function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 445577) local timenow = os.time() if getPlayerStorageValue(cid, 445577) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 445577, time) local quantity = math.floor((getPlayerStorageValue(cid, 445577) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end

Informação Importante

Confirmação de Termo