Ir para conteúdo

gabrielbuff

Membro
  • Registro em

  • Última visita

  1. gabrielbuff começou a seguir Erro Distro SQL
  2. gabrielbuff postou uma resposta no tópico em Suporte Tibia OTServer
    Boa tarde, estou com esse erro no distro, toda vez que um players desloga/loga apresenta esse erro: Está surgindo algum erro? Se sim coloque-o aqui. Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  3. As storage são iguais, essa quest você pode fazer quantas vezes quiser, e após terminas essa quest 5x, você consiga passar pelo tile
  4. Boa noite, alguém poderia me ajudar, preciso de um script em movements em que o player precisa de x quantidade de storage para passar no tile, exemplo, ele precisa completar 5 vezes a quests diárias que dão storage 1234, após ele completar 5x as quests diárias, para ele poder passar no tile.
  5. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Ajuda Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Boa noite, poderiam me ajudar? estou com esse erro no sistema de pet no meu otserver, não consegui decifrar do porque desse erro. local config = { storage = 349471, tempo = 20000, -- tempo, em segundos que o efeito demorará para sair. } function onLogin(cid) Nicole0(cid) return true end local function Nicole0(cid) if isCreature(cid) then local master = getCreatureMaster(cid) local life = math.random(7000, 8000)*getPlayerStorageValue(master, 1636) for i = 1, 1 do addEvent(doCreatureAddHealth, (i * 2000), cid, life) end addEvent(Nicole0, 20 * 1000, cid) end return true end function onThink(cid, interval) if (getPlayerStorageValue(cid, 18547)) <= 0 then Nicole0(cid) setPlayerStorageValue(cid, 18547, config.tempo + os.time()) else return true end return TRUE end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  6. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Boa tarde, alguém conseguiria me ajudar nesse script, o script funciona normalmente, mais quando o item 2471, vem dentro de uma bag ou backpack o script não anuncia a msg para todos os players no default... Você tem o código disponível? Se tiver publique-o aqui: local config = { ids = {2471}, --ID do item. drop_effect = false --Efeito que aparecerá em cima da corpse (apenas para o dono da corpse). OPCIONAL! Se não quiser, coloque false. } function examine(cid, position, corpse_id, name) if not isPlayer(cid) then return true end local corpse = getTileItemById(position, corpse_id).uid if corpse <= 1 or not (corpse) then return true end for slot = 0, getContainerSize(corpse) - 1 do local item = getContainerItem(corpse, slot) if item.uid <= 1 then return true end for i=1, #config.ids do if (item.itemid == config.ids) then doBroadcastMessage("[LOOT MENSAGEM]: O jogador ("..getCreatureName(cid)..") dropou um "..string.lower(getItemNameById(config.ids)).." de um ("..name..").", 19) if config.drop_effect then doSendMagicEffect(position, config.drop_effect, cid) end end end end end function onKill(cid, target) if not isMonster(target) then return true end local monster_name = getCreatureName(target) local corpse_id = getMonsterInfo(monster_name).lookCorpse addEvent(examine, 5, cid, getThingPos(target), corpse_id, monster_name) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  7. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) function onGetFormulaValues(cid, level, weaponAttack, attack, factor, uid) function getItemAttack(uid) return getItemAttribute(uid,'attack') end local playerWeapon = getPlayerSlotItem(cid, CONST_SLOT_LEFT).uid or getPlayerSlotItem(cid, CONST_SLOT_RIGHT).uid local f = getItemAttack(playerWeapon) or 0 local skill = getPlayerSkill(cid, SKILL_AXE) local rr = getResets(cid) min = getPlayerLevel(cid)*3.9 + (f*10) + (skill*25.5) + (rr*1000) max = getPlayerLevel(cid)*4.1 + (f*15) + (skill*35.2) + (rr*1000) return -min, -max end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") local function onUseWeapon2(parameters) doCombat(parameters.cid, parameters.combat, parameters.var) end local function onUseWeapon3(parameters) doCombat(parameters.cid, parameters.combat, parameters.var) end function onUseWeapon(cid, var) local parameters = { cid = cid, var = var, combat = combat} if math.random(1,100) <= 98 then doCombat(cid, combat, var) return true end if math.random(1,100) <= 93 then doCombat(cid, combat, var) addEvent(onUseWeapon2, 50, parameters) doSendAnimatedText(getPlayerPosition(cid), "CRITICAL!", TEXTCOLOR_RED) return true end if math.random(1,100) <= 92 then doCombat(cid, combat, var) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)*0.01) doSendMagicEffect(getPlayerPosition(cid), COST_ME_MAGIC_BLUE) return true end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  8. boa noite, alguem poderia me ajudar quando eu falo hi, trade, o npc não responde e apresenta o seguinte erro abaixo Script 012-table.lua table.find = function (table, value) for i, v in pairs(table) do if(v == value) then return i end end return nil end table.contains = function (txt, str) for i, v in pairs(str) do if(txt:find(v) and not txt:find('(%w+)' .. v) and not txt:find(v .. '(%w+)')) then return true end end return false end table.isStrIn = table.contains table.count = function (table, item) local count = 0 for i, n in pairs(table) do if(item == n) then count = count + 1 end end return count end table.countElements = table.count table.getCombinations = function (table, num) local a, number, select, newlist = {}, #table, num, {} for i = 1, select do a[#a + 1] = i end local newthing = {} while(true) do local newrow = {} for i = 1, select do newrow[#newrow + 1] = table[a] end newlist[#newlist + 1] = newrow i = select while(a == (number - select + i)) do i = i - 1 end if(i < 1) then break end a = a + 1 for j = i, select do a[j] = a + j - i end end return newlist end
  9. @MatteusDeli, funcionou perfeitamente!!!.
  10. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Boa noite, alguém poderia estar me ajudando com esse script? ele não apresentada erro nenhum, só que quando adiciona mais de 2 items no script, ao matar o monstro e dropar os 2 items aparece duas vezes a mensagem que dropou x item exemplo: [LOOT MENSAGEM]: O jogador Teste dropou um item de um Monk. [LOOT MENSAGEM]: O jogador Teste dropou um item de um Monk. poderiam me ajudar a deixar com a descrição do item dropado exemplo 2157(gold nugget) e 2159(scarab coin), ao matar o monstro e por ventura dropar 1 ou os 2 o script puxasse os nomes dos items exemplo [LOOT MENSAGEM]: O jogador Teste dropou um gold nugget de um Monk. [LOOT MENSAGEM]: O jogador Teste dropou um scarab coin de um Monk. local config = { ids = {2157, 2159}, --ID do item. drop_effect = false --Efeito que aparecerá em cima da corpse (apenas para o dono da corpse). OPCIONAL! Se não quiser, coloque false. } function examine(cid, position, corpse_id, name) if not isPlayer(cid) then return true end local corpse = getTileItemById(position, corpse_id).uid if corpse <= 1 or not (corpse) then return true end for slot = 0, getContainerSize(corpse) - 1 do local item = getContainerItem(corpse, slot) if item.uid <= 1 then return true end if isInArray(config.ids, item.itemid) then doBroadcastMessage("[LOOT MENSAGEM]: O jogador ("..getCreatureName(cid)..") dropou um item de um ("..name..").", 19) if config.drop_effect then doSendMagicEffect(position, config.drop_effect, cid) end end end end function onKill(cid, target) if not isMonster(target) then return true end local monster_name = getCreatureName(target) local corpse_id = getMonsterInfo(monster_name).lookCorpse addEvent(examine, 5, cid, getThingPos(target), corpse_id, monster_name) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  11. .Qual servidor ou website você utiliza como base? 8.6 Qual o motivo deste tópico? ajuda com erro Está surgindo algum erro? Se sim coloque-o aqui. sim Você tem o código disponível? Se tiver publique-o aqui: boa tarde, estou com uns erros no script do zombie event e não estou conseguindo solucionar o problema, se alguém puder ajudar agradeço!! Segue script e anexo o erro que está ocorrendo. local config = { playerCount = 2001, -- Global storage for counting the players left/entered in the event zombieCount = 2002, -- Global storage for counting the zombies in the event teleportActionId = 2000, -- Action id of the teleport needed for the movement script teleportPosition = {x = 1143, y = 1054, z = 7, stackpos = 1}, -- Where the teleport will be created teleportToPosition = {x = 1152, y = 1028, z = 7}, -- Where the teleport will take you teleportId = 1387, -- Id of the teleport timeToStartEvent = 2, -- Minutes, after these minutes the teleport will be removed and the event will be declared started timeBetweenSpawns = 5, -- Seconds between each spawn of zombie zombieName = "Zombie", -- Name of the zombie that should be summoned playersNeededToStartEvent = 5, -- Players needed before the zombies can spawn. walls = {x = 1189, y = 1044, z = 7, stackpos = 1}, -- Should be the same as in the creaturescript! -- The zombies will spawn randomly inside this area fromPosition = {x = 1135, y = 1018, z = 7}, {x = 1170, y = 1040, z = 7}, -- top left cornor of the playground toPosition = {x = 1170, y = 1040, z = 7}, {x = 1135, y = 1018, z = 7}, -- bottom right cornor of the playground } function onThink() local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("EVENTO ZUMBI MENSAGEM: O evento 'Zumbi' começará em 2 minutos. O portal será fechado quando o evento começar.", MESSAGE_STATUS_CONSOLE_BLUE) doRemoveItem(getThingFromPos(config.walls).uid, 1) setGlobalStorageValue(config.playerCount, 0) setGlobalStorageValue(config.zombieCount, 0) addEvent(startEvent, config.timeToStartEvent * 1000 * 60) print(getGlobalStorageValue(2001)) end function startEvent() local get = getThingfromPos(config.teleportPosition) if get.itemid == config.teleportId then doRemoveItem(get.uid, 1) doCreateItem(9486, 9532, 1, config.walls) end local fromPosition, toPosition = config.fromPosition, config.toPosition if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then addEvent(spawnZombie, config.timeBetweenSpawns * 1000) doBroadcastMessage("EVENTO ZUMBI MENSAGEM: Boa sorte no evento 'Zumbi' jogadores! O portal foi fechado! E o primeiro zumbi aparecerá em 5 segundos.", MESSAGE_STATUS_CONSOLE_BLUE) doCreateItem(9486, 9532, 1, config.walls) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doBroadcastMessage(getPlayers.uid, "EVENTO ZUMBI MENSAGEM: O primeiro zumbie vai aparecer em " .. config.timeBetweenSpawns .. " segundos. Boa sorte!", MESSAGE_STATUS_CONSOLE_BLUE) end end end end else doBroadcastMessage("EVENTO ZUMBI MENSAGEM: O evento 'Zumbi' não pode ser iniciado pelo pequeno número de jogadores participando. No mínimo " .. config.playersNeededToStartEvent .. " jogadores é necessário!", MESSAGE_STATUS_CONSOLE_BLUE) doCreateItem(9486, 9532, 1, config.walls) for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do for z = fromPosition.z, toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doRemoveCreature(pid) doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), true) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end end end function spawnZombie() if getGlobalStorageValue(config.playerCount) >= 2 then pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)} doSummonCreature(config.zombieName, pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1) doBroadcastMessage("EVENTO ZUMBI MENSAGEM: Um novo zumbi apareceu! Agora temos: " .. getGlobalStorageValue(config.zombieCount) .. " zumbis no evento!", MESSAGE_STATUS_CONSOLE_BLUE) addEvent(spawnZombie, config.timeBetweenSpawns * 1000) end end primeiro erro: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  12. .Qual servidor ou website você utiliza como base? 8.6 Qual o motivo deste tópico? tentar resolver um problema Está surgindo algum erro? Se sim coloque-o aqui. sim Você tem o código disponível? Se tiver publique-o aqui: Script c_points: function getPoint(cid) local res = db.getResult('select `c_points` from accounts where name = \''..getPlayerAccount(cid)..'\'') if(res:getID() == -1) then return false end local ret = res:getDataInt("c_points") res:free() return tonumber(ret) end function doPlayerAddPoint(cid, quant) return db.query("UPDATE `accounts` SET `c_points` = '".. getPoint(cid) + quant .."' WHERE `name` ='"..getPlayerAccount(cid).."'") end function doPlayerRemovePoint(cid, quant) return db.query("UPDATE `accounts` SET `c_points` = '".. getPoint(cid) - quant .."' WHERE `name` ='"..getPlayerAccount(cid).."'") end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  13. tu é fera mesmo, teria como especificar de qual monstro dropou x item ex... DROP MENSAGEM: O Jogador (Admin) Dropou o Item (golden helmet) de Warlock DROP MENSAGEM: O Jogador (Admin) Dropou o Item (golden helmet) de Demon
  14. onepiece, não apresentou nenhum erro mais tambem não funcionou, Não apresentou erro, mais tambem não funcionou,

Informação Importante

Confirmação de Termo