Ir para conteúdo

Furabio

Conde
  • Total de itens

    962
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que Furabio postou

  1. https://mega.nz/#!vEMjgLRK!4tv814L7q-h47frFm7FYRhdXw85-76EP0ze8IgNK3pk
  2. O problema está na inserção desses dados nessa tabela. posta os scripts referentes ao sistema em .lua e .php também. Ps : em [*spoiler][*/spoiler] sem o *
  3. Se o problema foi resolvido, escolha o post que mais te ajudou como melhor resposta para que o tópico receba o prefixo resolvido e possa ser movido para pedidos e dúvidas resolvida. Tópico Movido Este tópico foi movido de "OTServ → Scripting → Suporte Scripting" para "OTServ → Scripting → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting".
  4. Furabio

    Sistema de EXAUST

    Se o problema foi resolvido, escolha o post que mais te ajudou como melhor resposta para que o tópico receba o prefixo resolvido e possa ser movido para pedidos e dúvidas resolvida. Tópico Movido Este tópico foi movido de "OTServ → Scripting → Suporte Scripting" para "OTServ → Scripting → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting".
  5. Quando resolver o problema, sempre deixe o que fez para resolver para quem tiver a mesma dúvida. No caso do seu erro em questão é coluna frags faltando na tabela players. ALTER TABLE players ADD frags tinyint(4) NOT NULL DEFAULT '0'; Tópico Movido Este tópico foi movido de "OTServ → Websites → Suporte Websites" para "OTServ → Websites → Suporte Websites → Tópicos Resolvidos | Websites".
  6. Geralmente quando se defini a senha, o arquivo do install.php é desativado e tu pode acessar o seu site usando localhost ou 127.0.0.1 ou o ip da máquina que foi instalada. Tópico Movido Este tópico foi movido de "OTServ → Websites → Suporte Websites" para "OTServ → Websites → Suporte Websites → Tópicos Resolvidos | Websites".
  7. Tinha isso no código : [i][b]add on bottom data/lib/lib.lua[/b][/i] [code] dofile('data.lib/pets_lib.lua') [/code] [b] data.lib/pets_lib.lua [/b] [code] Tirando o dofile(), o resto dava erro de sintaxe. por não ser reconhecido pela linguagem lua. Se o problema foi resolvido, escolha o post que mais te ajudou como melhor resposta para que o tópico receba o prefixo resolvido e possa ser movido para pedidos e dúvidas resolvida.
  8. Na próxima coloca entre [*spoiler][*/spoiler] : Teste aí :
  9. Posta esse pets_lib.lua.
  10. Tente : local conditionMP,conditionHP,conditionML,conditionCLUB,conditionSHI,conditionDIST,conditionAMP = {},{},{},{},{},{},{} for i=1,300 do conditionHP[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionHP[i], CONDITION_PARAM_SUBID, 50) setConditionParam(conditionHP[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionHP[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionHP[i], CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 100+i) conditionMP[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionMP[i], CONDITION_PARAM_SUBID, 51) setConditionParam(conditionMP[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionMP[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionMP[i], CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 100+i) conditionML[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionML[i], CONDITION_PARAM_SUBID, 52) setConditionParam(conditionML[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionML[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionML[i], CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, 100+i) conditionCLUB[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionCLUB[i], CONDITION_PARAM_SUBID, 53) setConditionParam(conditionCLUB[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionCLUB[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionCLUB[i], CONDITION_PARAM_SKILL_MELEEPERCENT, 100+i) conditionSHI[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionSHI[i], CONDITION_PARAM_SUBID, 54) setConditionParam(conditionSHI[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionSHI[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionSHI[i], CONDITION_PARAM_SKILL_SHIELDPERCENT, 100+i) conditionDIST[i] = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionDIST[i], CONDITION_PARAM_SUBID, 55) setConditionParam(conditionDIST[i], CONDITION_PARAM_BUFF_SPELL, 1) setConditionParam(conditionDIST[i], CONDITION_PARAM_TICKS, -1) setConditionParam(conditionDIST[i], CONDITION_PARAM_SKILL_DISTANCEPERCENT, 100+i) end function getSlotType(n) if not n then return false end if n:match('%[(.+)%]') then n = n:match('%[(.+)%]') if n == '?' then return 0,n else return n:match('(.-)%.([+-])(%d+)%%') end else return false end end local function loadSet(cid) local player = Player(cid) if not player then return false end local t = {} for slot=1,9 do t[slot] = '' local s = getPlayerSlotItem(player,slot).uid if s ~= 0 then t[slot] = Item(s):getAttribute(ITEM_ATTRIBUTE_DESCRIPTION) end end return t end function chk(cid,f) local player = Player(cid) local t = loadSet(player) if not t then return false end for i=1,#f do if f[i] ~= t[i] then equip(player,nil,slot) break end end addEvent(chk,2000,player,t) end function check_slot(aab, i) if i == 5 or i == 6 then if isWeapon(aab) or isShield(aab) or isBow(aab) then return true end else return true end return false end function equip(cid,item,slot) local player = Player(cid) local t = {} if item then local mm,sinal,qto = getSlotType(Item(item.uid):getAttribute(ITEM_ATTRIBUTE_DESCRIPTION)) t[mm] = tonumber(qto) end for i=1,9 do if i ~= slot then if getPlayerSlotItem(player,i).itemid ~= 0 then local aab = getPlayerSlotItem(player,i).uid if aab and check_slot(aab,i) then for _ in Item(aab):getAttribute(ITEM_ATTRIBUTE_DESCRIPTION):gmatch('(%[.-%])') do local mm,sinal,qto2 = getSlotType(_) if mm then if not t[mm] then t[mm] = 0 end t[mm] = t[mm]+tonumber(qto2) t[mm] = t[mm] > 300 and 300 or t[mm] end end end end end end local fu = 0 local ca = {} local s = '' for sl,n in pairs(t) do fu = fu+1 s = s..''..n..'% more of '..sl..'\n' if sl == 'hp' then player:addCondition(conditionHP[tonumber(n)]) ca[50] = 1 doSendTutorial(player,19) elseif sl == 'mp' then player:addCondition(conditionMP[tonumber(n)]) ca[51] = 1 doSendTutorial(player,19) elseif sl == 'ml' then player:addCondition(conditionML[tonumber(n)]) ca[52] = 1 elseif sl == 'melee' then player:addCondition(conditionCLUB[tonumber(n)]) ca[53] = 1 elseif sl == 'shield' then player:addCondition(conditionSHI[tonumber(n)]) ca[54] = 1 elseif sl == 'dist' then player:addCondition(conditionDIST[tonumber(n)]) ca[55] = 1 end end if fu > 0 then for i=50,55 do if not ca[i] then doRemoveCondition(player,CONDITION_ATTRIBUTES,i) end end else for i=50,55 do doRemoveCondition(player,CONDITION_ATTRIBUTES,i) end end return true end function onLogin(cid) local player = Player(cid) equip(player, nil, slot) addEvent(chk,2000,player,loadSet(player)) return true end
  11. Furabio

    Ajuda Com Script

    ^^ diasdonate.lua : function onSay(cid, words, param) if (getPlayerStorageValue(cid, 85258) - os.time()) > 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você possui " .. math.floor((getPlayerStorageValue(cid, 85258) - os.time()) / (60*60*24)) .. " dia(s) de VIP!") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não possui VIP!") end return true end tag.XML : <talkaction log="yes" words="!diasdonate " event="script" value="diasdonate.lua"/>
  12. Mesmo erro ? cara eu retirei aquela função é impossível dar o mesmo erro ... você salvou o arquivo ? reiniciou o ot ?
  13. Teste agora : local cash = 500 -- Dinero que se nesecita para hacer el broadcast (en gps) local levelneeded = 8 -- Level necesario para hacer el broadcast local lenght = 100 -- Maximo de caracteres del mensaje local messagesort = MESSAGE_STATUS_WARNING -- can be "MESSAGE_STATUS_WARNING" or "TALKTYPE_ORANGE_1" check your global.lua for more... local exhaustTime = 1 -- Minutos function onSay(cid, words, param) if (getPlayerStorageValue(cid, 85258) - os.time()) <= 0 then doPlayerSendCancel(cid, "Só vips podem usar esse comando!") return true end if (getPlayerStorageValue(cid, 7894) - os.time()) > 0 then doPlayerSendCancel(cid, "Você precisa esperar " .. exhaustTime .. " minuto(s) para usar novamente.") return true end local name = getPlayerName(cid) local level = getPlayerLevel(cid) if not isCreature(cid) then doPlayerSendCancel(cid, 'You haven\'t a target!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end if param == nil then doPlayerSendCancel(cid, 'Nesecitas escribir algo!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end if string.len(param) > lenght then doPlayerSendCancel(cid, 'No mas de ' .. lenght .. ' caracteres. ') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end if level < levelneeded then doPlayerSendCancel(cid, 'Tu nesecitas ser level '..levelneeded..' para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end if doPlayerRemoveMoney(cid, cash) then broadcastMessage( ''..name..' ['..level..'] dice: ' .. param .. '', messagesort) setPlayerStorageValue(cid, 7894, os.time() + exhaustTime * 60) else doPlayerSendCancel(cid, 'Tu nesecitas '..cash..' gps para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return true end
  14. Tópico Movido Este tópico foi movido de "OTServ → Scripting → Downloads Scripts → Sistemas e mods" para "OTServ → Scripting → Suporte Scripting".
  15. A área correta seria suporte de scripts :smile_positivo: Tópico Movido Este tópico foi movido de "OTServ → Scripting → Downloads Scripts" para "OTServ → Scripting → Suporte Scripting".
  16. Furabio

    Sistema de EXAUST

    Desculpe erro bobo rsrsrs : function onUse(cid, item, frompos, item2, topos) local dolls = { [2344] = {pet = "Mewtwo"}, [2139] = {pet = "Mew"}, } local go = dolls[item.itemid] local summon = getCreatureSummons(cid) local storage = 311283 -- Storage para dar exhausted if #summon >= 1 then for _, pid in ipairs(summon) do doRemoveCreature(pid) doCreatureSay(cid, "Can go rest ["..go.pet.."]", TALKTYPE_ORANGE_1) end return true end if getPlayerStorageValue(cid, storage) > os.time() then return doPlayerSendCancel(cid, "Você já usou este item hoje, espere " .. math.floor((getPlayerStorageValue(cid, storage) - os.time()) / (60*60)) .. " horas para poder usar de novo.") end doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid))) doCreatureSay(cid, "Let battle ["..go.pet.."]", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, storage, os.time() + 24*60*60) -- tempo em segundos. return true end
  17. Furabio

    Sistema de EXAUST

    É só usar math.floor ou math.ceil : Teste aí : function onUse(cid, item, frompos, item2, topos) local dolls = { [2344] = {pet = "Mewtwo"}, [2139] = {pet = "Mew"}, } local go = dolls[item.itemid] local summon = getCreatureSummons(cid) local storage = 311283 -- Storage para dar exhausted if #summon >= 1 then for _, pid in ipairs(summon) do doRemoveCreature(pid) doCreatureSay(cid, "Can go rest ["..go.pet.."]", TALKTYPE_ORANGE_1) end return true end if getPlayerStorageValue(cid, storage) > os.time() then return doPlayerSendCancel(cid, "Você já usou este item hoje, espere " .. math.floor(getPlayerStorageValue(cid, storage) - os.time() / (24*60*60)) .. " horas para poder usar de novo.") end doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid))) doCreatureSay(cid, "Let battle ["..go.pet.."]", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, storage, os.time() + 24*60*60) -- tempo em segundos. return true end
  18. Tenta :
  19. Furabio

    Erro na distro

    Tópico Movido Este tópico foi movido de "OTServ → Scripting → Suporte Scripting" para "OTServ → Scripting → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting".
  20. Furabio

    Erro na distro

    Os erros devem estar acontecendo pois o linux é case sensitive: O que ocorre é que o executável procura por um arquivo ou monstro chamado exemplo, mas ele foi feito com o nome Exemplo, no windows ambos são os mesmo arquivos, mas no linux são arquivos totalmente diferentes. Para resolver basta ver como o monstro está sendo chamado no caso Monster e renomear o arquivo que deve estar escrito monster ou algo parecido para Monster.
  21. Baixe e instale o xampp e depois configure seu config.lua com o nome e password do banco de dados que tu vai criar e depois basta importar um db para seu phpmyadmin. Se não consegue fazer o que eu disse acima, basta digitar no youtube : como baixar e instalar xampp.
  22. Furabio

    Give Item

    Tópico Movido Este tópico foi movido de "OTServ → Scripting → Suporte Scripting" para "OTServ → Scripting → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting".
  23. Troque seu script do StdModule.learnSpell por esse : function StdModule.learnSpell(cid, message, keywords, parameters, node) local npcHandler = parameters.npcHandler if npcHandler == nil then error("StdModule.learnSpell called without any npcHandler instance.") end if not npcHandler:isFocused(cid) then return false end local player = Player(cid) if parameters.premium and player:isPremium() then if player:hasLearnedSpell(parameters.spellName) then npcHandler:say("You already know this spell.", cid) elseif player:getLevel() < parameters.level then npcHandler:say("You need to obtain a level of " .. parameters.level .. " or higher to be able to learn " .. parameters.spellName .. ".", cid) elseif type(parameters.vocation) == "table" then if not isInArray(parameters.vocation, player:getVocation():getId()) then npcHandler:say("This spell is not for your vocation", cid) end elseif type(parameters.vocation) == "number" then if player:getVocation():getId() ~= parameters.vocation and player:getVocation():getId() ~= parameters.vocation + 4 and vocation ~= 9 then npcHandler:say("This spell is not for your vocation", cid) end elseif not player:removeMoney(parameters.price) then npcHandler:say("You do not have enough money, this spell costs " .. parameters.price .. " gold.", cid) else npcHandler:say("You have learned " .. parameters.spellName .. ".", cid) player:learnSpell(parameters.spellName) end else npcHandler:say("You need a premium account in order to buy " .. parameters.spellName .. ".", cid) end npcHandler:resetNpc(cid) return true end e em vocation coloque : vocation = {id_vocation, id_vocation, id_vocation}(Para mais de 1 vocação) ou vocation = id_vocation(Para apenas 1 vocação)
  24. Furabio

    !cp para VIPS

    Tópico Movido Este tópico foi movido de "OTServ → Scripting → Suporte Scripting" para "OTServ → Scripting → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting".
  25. Tem sistemas assim já feito para tfs 1.X basta procurar que tu vai achar.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...