Tudo que JonatasLucasf postou
-
(Resolvido)Urgente, bug no script !comprar
Vodkart o erro sumiu mais o personagem mesmo depois do skills 350 continua comprando, só o magic level está correto.
-
(Resolvido)Urgente, bug no script !comprar
Vodkart quando estou comprando magic level está dando esse erro. não só o do magic level como dos outros como sword etc
-
[action] Máquina de summon (RadBR)
baltazar é um summon de monstro exemplo você coloca o luky nivel 1 e clika na alavanca ai esse luky pode sumonar 1 monstro assim como no luky nivel 2 e etc basta olha a imagem
-
[action] Máquina de summon (RadBR)
Parabéns Fire, ótimo conteúdo funciona em tfs 1.1? oquê eu tenho aqui só funciona em 8.60.
-
(Resolvido)Player passando dentro do outro
O que é source? Source é o nome dado ao conjunto de códigos que futuramente será um programa, em otserv nem sempre conseguimos esta source, mesmo sendo uma lei sua liberação, o servidor mais usado atualmente “TFS” tem seus códigos liberados e podemos conseguir na seção Download otserv procurando a versão desejada. Como abrir uma source? Como os códigos são apenas textos podemos abrir-los em um editor de texto normal, porem para facilitar o trabalho do programador usamos IDE, o mais popular no mundo dos otservs, Dev-cpp. Como criar um executável (compilar)? Criar um executável é um trabalho muito simples e existem muitos tutoriais sobre isso na sessão Tutoriais otserv. O que é uma biblioteca (lib)? São “arquivos” onde contem sistemas para ser usadas no seu programa, um bom exemplo é a libMySql onde contem funções para trabalhar com Mysql em seu programa. O que são linguagens de programação? Como o computador entende apenas 0 e 1 e é muito complica fazer programas usando apenas 0 e 1 foi inventada as linguagens de programação, onde se tem um complicador que transforma códigos em uma linguagem que o computador entenda.Essas linguagens devem seguir uma seqüência lógica, assim fazendo com que o compilador entenda o códigos. O que é C++? C++ é a linguagem de programação que é usada em OT. O que é IDE? São programas que ajudam o programador na hora de fazer o programa. O que é um compilador? É o programa primário onde sua função é transformar códigos feitos em linguagens de programação para uma linguagem compreendida pelo computador.
-
(Resolvido)Urgente, bug no script !comprar
não acho que seja nas sources pois no script do 8.60 que tinha era no script mesmo
-
(Resolvido)Urgente, bug no script !comprar
não funcionou deu erro expected near ' = ' lembrando que é tfs 1.1 versão 10.76 o script ta pronto unico problema é que está passando de 350 de skills e o limite é 350 só o magic level que está certo que é 200 o máximo
-
(Resolvido)Urgente, bug no script !comprar
cara você colocou todos lim 200 praticamente não mudou nada só os números e o limite de 200 é só do magiclevel que já tava certo só os demais que estão com erro.
-
(Resolvido)Player passando dentro do outro
isso é no RME coloca non-pvp lá no RME
-
(Resolvido)Urgente, bug no script !comprar
então galera estou com um bug no comando !comprar é o seguinte quando o player compra skill ele ta passando dos 350 de skills está dando pra comprar mais de 350 de skills de club,distance,shield,sword,axe, o unico que está normal é o ml que só vai até 200 os demais estão passando de 350 e queria que o limite deles só fosse 350 meu comprar.lua uso tfs 1.1 versão 10.76 SKILL_CLUB = "skill_club" SKILL_DISTANCE = "skill_dist" SKILL_SHIELD = "skill_shielding" SKILL_MAGLEVEL = "maglevel" SKILL_SWORD = "skill_sword" SKILL_AXE = "skill_axe" local tb = { ["sd"] = {t= 1, bag = 5926, item= 2268, bag_quant = 2, price= 50, msg= "Parabéns você comprou 4k de SD com sucesso."}, ["uh"] = {t= 1, bag = 2002, item= 2273, bag_quant = 3, price= 30, msg= "Parabéns você comprou 6k de UH com sucesso."}, ["explo"] = {t= 1, bag = 2001, item= 2313, bag_quant = 3, price= 10, msg= "Parabéns você comprou 6k de Explosion com sucesso."}, ["super divine axe"] = {t= 2, item = 8926, price= 60, msg= "Você comprou um super divine axe com sucesso."}, ["super divine staff"] = {t= 2, item = 8922, price= 60, msg= "Você comprou um super divine staff com sucesso."}, ["super divine club"] = {t= 2, item = 7423, price= 60, msg= "Você comprou um super divine club com sucesso."}, ["super divine sword"] = {t= 2, item = 7403, price= 60, msg= "Você comprou um super divine sword com sucesso."}, ["super divine crossbow"] = {t= 2, item = 8851, price= 60, msg= "Você comprou um super divine crossbow com sucesso."}, ["livro nivel 6"] = {t= 2, item = 8921, price= 60, msg= "Você comprou um livro nivel 6 com sucesso."}, ["vip10"] = {t= 3, days= 10, price= 5}, ["vip30"] = {t= 3, days= 30, price= 10}, ["magiclevel"] = {t= 4, vocations = {1, 5, 2, 6, 11, 12}, voc_msg= "Somente Sorcerers, Druids e Infernalists podem comprar magic level.", lim = 200, lim_msg = "Você não pode ter magic level acima de 200.", price= 3, incre = 1, skill = SKILL_MAGLEVEL}, ["skillclub"] = {t= 5, vocations = {9, 10}, voc_msg= "Somente Drunous podem comprar skill de club.", lim = 350, price= 1, incre = 1, skill = SKILL_CLUB}, ["skillsword"] = {t= 5, vocations = {4, 8}, voc_msg= "Somente Knights podem comprar skill de sword.", lim = 350, price= 1, incre = 1, skill = SKILL_SWORD}, ["skillaxe"] = {t=5 , vocations = {4, 8}, voc_msg= "Somente Knights podem comprar skill de axe.", lim = 350, price= 1, incre = 1, skill = SKILL_AXE}, ["skilldistance"] = {t= 5, vocations = {3, 7}, voc_msg= "Somente Paladins podem comprar skill de distance.", lim = 350, price= 1, incre = 1, skill = SKILL_DISTANCE}, ["skillshielding"] = {t= 5, vocations = {3, 7, 4, 8, 9, 10}, voc_msg= "Somente Paladins, Knights e Drunous podem comprar skill de shield.", lim = 350, price= 1, incre = 1, skill = SKILL_SHIELD}, ["magiclevel5"] = {t= 4, vocations = {1, 5, 2, 6, 11, 12}, voc_msg= "Somente Sorcerers, Druids e Infernalists podem comprar magic level.", lim = 200, lim_msg = "Você não pode ter magic level acima de 200.", price= 15, incre = 5, skill = SKILL_MAGLEVEL}, ["skillclub10"] = {t= 5, vocations = {9, 10}, voc_msg= "Somente Drunous podem comprar skill de club.", lim = 350, price= 10, incre = 10, skill = SKILL_CLUB}, ["skillsword10"] = {t= 5, vocations = {4, 8}, voc_msg= "Somente Knights podem comprar skill de sword.", lim = 350, price= 10, incre = 10, skill = SKILL_SWORD}, ["skillaxe10"] = {t=5 , vocations = {4, 8}, voc_msg= "Somente Knights podem comprar skill de axe.", lim = 350, price= 10, incre = 10, skill = SKILL_AXE}, ["skilldistance10"] = {t= 5, vocations = {3, 7}, voc_msg= "Somente Paladins podem comprar skill de distance.", lim = 350, price= 10, incre = 10, skill = SKILL_DISTANCE}, ["skillshielding10"] = {t= 5, vocations = {3, 7, 4, 8, 9, 10}, voc_msg= "Somente Paladins, Knights e Drunous podem comprar skill de shield.", lim = 350, price= 10, incre = 10, skill = SKILL_SHIELD}, ["removerfrag"] = {t= 6, price= 10}, } local storage = 45611 function onSay(player, words, param) local pid = player:getGuid() local tile = player:getTile() if not tile:hasFlag(TILESTATE_PROTECTIONZONE) then player:sendCancelMessage("Você precisa está em área protegida para utilizar este comando.") return true end if player:getStorageValue(storage) >= os.time() then player:sendCancelMessage("Por medidas de segurança você só pode utilizar este comando em " .. player:getStorageValue(storage)-os.time() .. " segundos.") return true end if param == "" then player:popupFYI("Para comprar digite !comprar (nome do item)\nOpcoes:\nsd = 4000 em SD por 50 barras.\nuh = 6000 em UH por 40 barras.\nexplo = 6000 em explosion por 10 barras.\nvip10 = 10 dias de vip por 5 barras.\nvip30 = 30 dias de vip por 10 barras.\ndivine staff = divine staff por 30 barras.\ndivine axe = divine axe por 30 barras.\nlivro nivel 6 = livro nivel 6 por 60 barras.\ndivine club = divine club por 30 barras.\ndivine sword = divine sword por 30 barras.\ndivine crossbow = divine crossbow por 30 barras.\nlivro nivel 5 = livro nivel 5 por 30 barras.\nsuper divine axe = super divine axe por 60 barras.\nsuper divine club = super divine club por 60 barras.\nsuper divine sword = super divine sword por 60 barras.\nsuper divine staff = super divine staff por 60 barras.\nsuper divine crossbow = super divine crossbow por 60 barras.\nskillclub = adiciona 1 skill club por 1 barras.\nskillsword = adiciona 1 skill sword por 1 barras.\nskillaxe = adiciona 1 skill axe por 1 barras.\nskilldistance = adiciona 1 skill distance por 1 barras.\nskillshielding = adiciona 1 skill shielding por 1 barras.\nmagiclevel = adiciona 1 magic level por 3 barras.\nmagiclevel5 = adiciona 5 magic level por 15 barras.\nskillclub10 = adiciona 10 skills club por 10 barras.\nskillsword10 = adiciona 10 skills sword por 10 barras.\nskillaxe10 = adiciona 10 skills axe por 10 barras.\nskilldistance10 = adiciona 10 skill distance por 10 barras.\nskillshielding10 = adiciona 10 skill shielding por 10 barras.\nremoverfrag = remove todos frags por 100k.\nO Item desejado não existe em nosso stock. Veja a cima os detalhes dos items disponíveis.") return true end for f, v in pairs(tb) do if param == f then if v.t == 1 then if player:getItemCount(9971) >= v.price then local item_quant = (v.bag_quant * 2000)/100 for x = 1, v.bag_quant do local bag = player:addItem(v.bag, 1) for i = 1, item_quant do bag:addItem(v.item, 100) end end player:removeItem(9971, v.price) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, v.msg) player:setStorageValue(storage, os.time()+30) break else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end elseif v.t == 2 then if player:getItemCount(9971) >= v.price then item = player:addItem(v.item, 1) item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, "Este item pode ser adquirido através do shopping. Adquirido dia " .. os.date("%d/%m/%Y - %X") .." por ".. player:getName() ..". Serial: ".. player:getGuid() ..".") player:removeItem(9971, v.price) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, v.msg) player:setStorageValue(storage, os.time()+30) break else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end elseif v.t == 3 then if player:getItemCount(9971) >= v.price then player:addPremiumDays(v.days) player:removeItem(9971, v.price) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou " .. v.days .. " dias de vip com sucesso.") player:setStorageValue(storage, os.time()+30) break else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end elseif v.t == 4 then if player:getBaseMagicLevel() >= v.lim then player:sendCancelMessage(v.lim_msg) return true end if not isInArray(v.vocations, player:getVocation():getId()) then player:sendCancelMessage(v.voc_msg) return true end if player:getItemCount(9971) >= v.price then player:removeItem(9971, v.price) player:setStorageValue(storage, os.time()+30) player:remove() db.query("UPDATE `players` SET ".. v.skill .. " = " .. v.skill .. " + " .. v.incre .. " WHERE `id` = ".. pid) else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end elseif v.t == 5 then if player:getSkillLevel(v.skill) >= v.lim then player:sendCancelMessage("Você não pode ter skill acima de ".. v.lim .. ".") return true end if not isInArray(v.vocations, player:getVocation():getId()) then player:sendCancelMessage(v.voc_msg) return true end if player:getItemCount(9971) >= v.price then player:removeItem(9971, v.price) player:setStorageValue(storage, os.time()+30) player:remove() db.query("UPDATE `players` SET ".. v.skill .. " = " .. v.skill .. " + " .. v.incre .. " WHERE `id` = ".. pid) else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end elseif v.t == 6 then if player:getItemCount(2160) >= v.price then player:removeItem(2160, v.price) player:setSkull(SKULL_NONE) player:setSkullTime(0) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Your skull and frags has been removed!") player:setStorageValue(storage, os.time()+30) db.query("UPDATE `player_deaths` SET `unjustified` = 0 WHERE `unjustified` = 1 AND `killed_by` = " .. db.escapeString(player:getName())) else player:sendCancelMessage("Você não possui a quantidade necessária para comprar.") end end end end return false end
-
Evento do Bolo
então galera queria um script igual esse aqui alguém poderia me arrumar fazendo favor http://www.tibiaking.com/forum/topic/28551-radbr-evento-dia-das-crianças/
-
(Resolvido)Ganhar todos os addons ao logar
deu esse erro esqueci de falar uso tfs 1.1 conseguir deixando assim pra quem quiser está ai, funcionando em tfs 1.1 local storage = 5465 function onLogin(cid) if getPlayerStorageValue(cid, storage) <= 0 then doPlayerAddOutfit(cid,335,1) doPlayerAddOutfit(cid,335,1) doPlayerAddOutfit(cid,136,1) doPlayerAddOutfit(cid,128,1) doPlayerAddOutfit(cid,128,1) doPlayerAddOutfit(cid,137,1) doPlayerAddOutfit(cid,129,1) doPlayerAddOutfit(cid,138,1) doPlayerAddOutfit(cid,130,1) doPlayerAddOutfit(cid,139,1) doPlayerAddOutfit(cid,131,1) doPlayerAddOutfit(cid,140,1) doPlayerAddOutfit(cid,141,1) doPlayerAddOutfit(cid,133,1) doPlayerAddOutfit(cid,142,1) doPlayerAddOutfit(cid,147,1) doPlayerAddOutfit(cid,146,1) doPlayerAddOutfit(cid,143,1) doPlayerAddOutfit(cid,148,1) doPlayerAddOutfit(cid,144,1) doPlayerAddOutfit(cid,149,1) doPlayerAddOutfit(cid,150,1) doPlayerAddOutfit(cid,145,1) doPlayerAddOutfit(cid,157,1) doPlayerAddOutfit(cid,153,1) doPlayerAddOutfit(cid,158,1) doPlayerAddOutfit(cid,154,1) doPlayerAddOutfit(cid,152,1) doPlayerAddOutfit(cid,156,1) doPlayerAddOutfit(cid,155,1) doPlayerAddOutfit(cid,251,1) doPlayerAddOutfit(cid,252,1) doPlayerAddOutfit(cid,268,1) doPlayerAddOutfit(cid,269,1) doPlayerAddOutfit(cid,270,1) doPlayerAddOutfit(cid,273,1) doPlayerAddOutfit(cid,279,1) doPlayerAddOutfit(cid,278,1) doPlayerAddOutfit(cid,288,1) doPlayerAddOutfit(cid,289,1) doPlayerAddOutfit(cid,324,1) doPlayerAddOutfit(cid,325,1) doPlayerAddOutfit(cid,329,1) doPlayerAddOutfit(cid,366,1) doPlayerAddOutfit(cid,367,1) -- addon 2 doPlayerAddOutfit(cid,335,2) doPlayerAddOutfit(cid,335,2) doPlayerAddOutfit(cid,136,2) doPlayerAddOutfit(cid,128,2) doPlayerAddOutfit(cid,128,2) doPlayerAddOutfit(cid,137,2) doPlayerAddOutfit(cid,129,2) doPlayerAddOutfit(cid,138,2) doPlayerAddOutfit(cid,130,2) doPlayerAddOutfit(cid,139,2) doPlayerAddOutfit(cid,131,2) doPlayerAddOutfit(cid,140,2) doPlayerAddOutfit(cid,141,2) doPlayerAddOutfit(cid,133,2) doPlayerAddOutfit(cid,142,2) doPlayerAddOutfit(cid,147,2) doPlayerAddOutfit(cid,146,2) doPlayerAddOutfit(cid,143,2) doPlayerAddOutfit(cid,148,2) doPlayerAddOutfit(cid,144,2) doPlayerAddOutfit(cid,149,2) doPlayerAddOutfit(cid,150,2) doPlayerAddOutfit(cid,145,2) doPlayerAddOutfit(cid,157,2) doPlayerAddOutfit(cid,153,2) doPlayerAddOutfit(cid,158,2) doPlayerAddOutfit(cid,154,2) doPlayerAddOutfit(cid,152,2) doPlayerAddOutfit(cid,156,2) doPlayerAddOutfit(cid,155,2) doPlayerAddOutfit(cid,251,2) doPlayerAddOutfit(cid,252,2) doPlayerAddOutfit(cid,268,2) doPlayerAddOutfit(cid,269,2) doPlayerAddOutfit(cid,270,2) doPlayerAddOutfit(cid,273,2) doPlayerAddOutfit(cid,279,2) doPlayerAddOutfit(cid,278,2) doPlayerAddOutfit(cid,288,2) doPlayerAddOutfit(cid,289,2) doPlayerAddOutfit(cid,324,2) doPlayerAddOutfit(cid,325,2) doPlayerAddOutfit(cid,329,2) doPlayerAddOutfit(cid,366,2) doPlayerAddOutfit(cid,367,2) setPlayerStorageValue(cid,3000,1) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Por ter feito seu primeiro login no servidor, você acabou de ganhar todos addons!") end return true end
-
Players no Mesmo Sqm- Pedido
deixa o sqm non-pvp lá no RME
-
(Resolvido)Ganhar todos os addons ao logar
então galera como o título já diz queria um script que quando os jogadores criarem sua conta e logar eles ganha todos os addons do servidor, addons 1 e 2 USO TFS 1.1
- ERRO NA MAGIA
-
ERRO NA MAGIA
Vodkart ainda está pegando nas area PZ deu esse erro aqui
- ERRO NA MAGIA
-
Já tentei de tudo ,RME não lê o mapa
ai o mapa foi importado com sucesso só procurar a posição do seu templo agora, e quanto aos npcs sumirem basta importar eles também indo em IMPORT
- [DUVIDA] Site Off
-
Mapper ON
- Erro Na Distro
baixa o visual c++- ERRO NA MAGIA
como assim poderia fazer essa alteração pra mim? isso vai resolver o problema da pz também?- ERRO NA MAGIA
- ERRO NA MAGIA
galera quando usa a magia armadilha explosiva ela da esse erro e também ela está entrando dentro da PZ armadilha.lua local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, true) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 1497) local combat2 = createCombatObject() function spellCallback2(param) if param.count > 0 or math.random(0, 1) == 1 then doSendMagicEffect(param.pos, CONST_ME_EXPLOSIONHIT) doAreaCombatHealth(param.cid, COMBAT_PHYSICALDAMAGE, param.pos, 0, -300, -1000, CONST_ME_BLOCKHIT) end if(param.count < 5) then param.count = param.count + 1 addEvent(spellCallback2, math.random(1000, 1500), param) end end function onTargetTile(cid, pos) local param = {} param.cid = cid param.pos = pos param.count = 0 spellCallback2(param) end setCombatCallback(combat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile") local arr1 = { { 1, 1, 1, 1, 1, }, { 1, 0, 0, 0, 1, }, { 1, 0, 3, 0, 1, }, { 1, 0, 0, 0, 1, }, { 1, 1, 1, 1, 1, }, } local arr2 = { { 0, 0, 0, 0, 0, }, { 0, 1, 1, 1, 0, }, { 0, 1, 3, 1, 0, }, { 0, 1, 1, 1, 0, }, { 0, 0, 0, 0, 0, }, } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local area2 = createCombatArea(arr2) setCombatArea(combat2, area2) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 } addEvent(doCombat, 0, cid, combat1, var) addEvent(doCombat, 0, cid, combat2, var) return TRUE end USO TFS 1.1 VERSÃO 10.76, agradeço desde já.- Script RESET 10.76
@UP - Erro Na Distro
Informação Importante
Confirmação de Termo