Ir para conteúdo

DeathRocks

Membro
  • Registro em

  • Última visita

Tudo que DeathRocks postou

  1. Aqui esta Dando este Erro [2/10/2016 21:40:30] [Error - MoveEvents Interface] [2/10/2016 21:40:30] data/movements/scripts/mining1.lua:onStepIn [2/10/2016 21:40:30] Description: [2/10/2016 21:40:30] data/movements/scripts/mining1.lua:48: attempt to call global 'countdown' (a nil value) [2/10/2016 21:40:30] stack traceback: [2/10/2016 21:40:30] data/movements/scripts/mining1.lua:48: in function 'fazQualquerCoisa' [2/10/2016 21:40:30] data/movements/scripts/mining1.lua:59: in function <data/movements/scripts/mining1.lua:57> Poderia me Ajudar?
  2. Boa Tarde, Queria uma Porcentagem Baixa, Exemplo a cada 20 "minerada" upava para outro nivel e Iria ficando mais dificil pra upar.... Porem Conforme Vai Upando vai Pegando Itens Diferentes... Aqui Tentei Fazer.... Mais não Consegui terra = {65530} levels = { [0] = {2229,1294}, [1] = {2229,1294,2144}, [2] = {2229,1294,2144,2143}, [3] = {2229,1294,2144,2143,5881}, [4] = {2229,1294,2144,2143,5881,2159}, [5] = {2229,1294,2144,2143,5881,2159,2151}, [6] = {2229,1294,2144,2143,5881,2159,2151,5944}, [7] = {2229,1294,2144,2143,5881,2159,2151,5944}, [8] = {2229,1294,2144,2143,5881,2159,2151,5944,5889}, [9] = {2229,1294,2144,2143,5881,2159,2151,5944,5889}, [10] = {2229,1294,2144,2143,5881,2159,2151,5944,5889,6547}, [11] = {2229,1294,2144,2143,5881,2159,2151,5944,5889,6547} } local config = { storage = 19333, chance = 80, --- chance de achar um item ou não k = 1, --- constante de level.. quanto maior, mais fácil é upar. (a fórmula é level ao quadrado dividido pela constante) experience = 19334 } function onUse(cid, item, fromPosition, itemEx, toPosition) local drops = {} function getDrops(cid) for i= 0,getPlayerStorageValue(cid, config.storage) do if levels[i] then table.insert(drops, levels[i]) end end return true end if isInArray(terra, itemEx.uid) then getDrops(cid) doPlayerSetStorageValue(cid, config.experience, getPlayerStorageValue(cid, config.experience)+1) local experience = getPlayerStorageValue(cid, config.experience) if experience >= (8+(getPlayerStorageValue(cid, config.storage)^2))/config.k then doPlayerSetStorageValue(cid, config.storage, getPlayerStorageValue(cid, config.storage)+1) doPlayerSendTextMessage(cid, 27, "Congratulations, you have leveled! Your currect level is "..getPlayerStorageValue(cid, config.storage) ..".") if getPlayerStorageValue(cid, config.storage) == 50 then doPlayerSendTextMessage(cid, 20, "For reaching level "..getPlayerStorageValue(cid, config.storage) .." you have been awarded with Mining Helmet.") doPlayerAddItem(cid, 7369, 1, true) end end if config.chance >= math.random(1,100) then if #drops >= 1 then local item = drops[math.random(1,#drops)] doPlayerSendTextMessage(cid, 27, "You have found a "..getItemNameById(item)..".") doCreatureSay(cid, "Success", TALKTYPE_SAY) doPlayerAddItem(cid, item, 1, true) end doSendMagicEffect(toPosition, 3) else doSendMagicEffect(toPosition, 2) return true end elseif itemEx.itemid == item.itemid then doPlayerSendTextMessage(cid, 27, "You're currenctly level "..getPlayerStorageValue(cid, config.storage)..".") else return false end return true end Outro Exemplo Mais Explicado esta no http://realbaiak.com/?subtopic=miningsystem Poderia Me Ajudar? a fazer deste geito que disse em cima...
  3. Agora Esta Dando este Erro
  4. Agora esta dando este erro
  5. Galerinha, Estou Com este Erro na Distro deste Script.... OTX 0.4 - 8.60 E Aqui Está o Script...
  6. DeathRocks postou uma resposta no tópico em Suporte Bots
    Seguinte Galera, Estou usando um Script de EK no windbot... Só que ele está desatualizado(na parte do depot) O Script ta reconhecendo as Bps naquele depot antigo... Queria que Alguem me Ajudava a Atualiza-lo para reconhecer o (NOVO DEPOT) Reconhecer o Box 1 (Item no-stack) Box 2 (Item Stack) Dai Poderia me falar qual função mudar ou modificar.... Valendo Sempre +REP
  7. Seguinte Galera, Estou Com Este Erro no Script... [3/6/2016 17:36:10] [Error - MoveEvents Interface] [3/6/2016 17:36:10] data/movements/scripts/aviso.lua:onStepIn [3/6/2016 17:36:10] Description: [3/6/2016 17:36:10] data/movements/scripts/aviso.lua:22: attempt to concatenate a nil value [3/6/2016 17:36:10] stack traceback: [3/6/2016 17:36:10] data/movements/scripts/aviso.lua:22: in function <data/movements/scripts/aviso.lua:11> E Aqui Esta o Script function isPlayerGuild(cid) return getPlayerGuildName(cid) ~= "" and true or false end function getGuildNameById(id) -- by Vodka local query = db.getResult("SELECT `name` FROM `guilds` WHERE `id` = "..id) if query:getID() ~= -1 then return query:getDataString("name") end return nil end function onStepIn(cid, item, position, fromPosition) local castle_one_name = "Castle24Horas" -- Nome do castelo 1 local storages = {154154, 54321, 123123} -- Storages ( se vc eh iniciante) local sto_ativ = getGlobalStorageValue(storages[2]) local position = getCreaturePosition(cid) if isPlayerGuild(cid) then if sto_ativ == 1 or sto_ativ == -1 then guildname = getPlayerGuildName(cid) guild = getPlayerGuildId(cid) guild_sto = getGlobalStorageValue(storages[3]) if guild ~= guild_sto then doBroadcastMessage("O Jogador: "..getCreatureName(cid)..", da GUILD: "..guildname..", Esta invadindo o "..castle_one_name..", Aviso #Donos Atuais: "..getGuildNameById(getGlobalStorageValue(storages[3])), 27) else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end return true end Alguem Poderia me Ajudar? Valendo Sempre +REP
  8. Seguinte Galera, Queria um Script de Mensagem assim, Quando o Player Entrar em uma Sala de Hunts Ira Aparecer em Cima do Seu Personagem ou "Outfit" Uma Mensagem de Bem Vindo a Sala de Hunts, Em Cor LARANJA tipo Como se fosse comprar !bless... Que Aparece Aquela Mensagem em cima do corpo... E se ele voltava para o Templo e Entrava de novo na Sala de Hunts iria repetir de novo....
  9. Entao Galera o meu Gesior Bugou deste Geito http://prntscr.com/9c68ey Nao sei aonde mechi que fez isso Alguem poderia me ajudar? Ficaria muito Grato !! Valendo sempre +REP
  10. Entao Galera Esta dando este Erro na Distro [6/12/2015 23:13:59] [Error - MoveEvents Interface] [6/12/2015 23:13:59] data/movements/scripts/warzone.lua:onStepIn [6/12/2015 23:13:59] Description: [6/12/2015 23:13:59] attempt to index a nil value [6/12/2015 23:13:59] stack traceback: [6/12/2015 23:13:59] [C]: in function 'doTeleportThing' E Aqui o Script Warzone.lua --- [[ Warzone Event by Killua, antigo amoeba13 ]] --- local kickposs = {x=160, y=53, z=7} -- Posicao pra onde o player vai ser kikado se permanecer mais de 30 minutos na sala do Deathstriker.(Se ele sair voluntariamente, vai pra essa pos tbm) function kikar(cid) doTeleportThing(cid, kickposs) doPlayerSendTextMessage(cid, 18, "You have been removed from the boss room, because you can not stay for more than 30 minutes.") return true end function onStepIn(cid, item, position, topos, frompos) if not isPlayer(cid) then return false end if item.actionid == 5157 then doPlayerSendTextMessage(cid, 18, "You have half an hour to heroically defeat Deathstrike. Otherwise you'll be teleported out by the gnomish emergency device.") evento = addEvent(kikar, 30*60*1000, cid) elseif item.actionid == 5158 then doTeleportThing(cid, tpsaida) stopEvent(evento) end return true end Alguem poderia me Ajudar? Ficaria muito GRATO e valendo SEMPRE +REP
  11. Bom Pessoal, Estou com Este Erro na Minha Distro... E Queria Que vcs Conseguise Arrumar E Uso OTX 8.60 Ficaria Muito Grato e Sempre Valendo +REP Mensagem do Erro [3/12/2015 16:9:4] [Error - CreatureScript Interface] [3/12/2015 16:9:4] data/creaturescripts/scripts/fraglook.lua:onLook [3/12/2015 16:9:4] Description: [3/12/2015 16:9:4] (LuaInterface::luaGetPlayerNameByGUID) Player not found E Aqui Esta o Script function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } return size.day + size.week + size.month end function onLook(cid, thing, position, lookDistance) local string = 'You see yourself.' if isPlayer(thing.uid) and thing.uid ~= cid then if getPlayerPremiumDays(thing.uid) > 0 then doPlayerSetSpecialDescription(thing.uid,'[Frags: '..getPlayerFrags(thing.uid)..'][VIP]') else doPlayerSetSpecialDescription(thing.uid,'[Frags: '..getPlayerFrags(thing.uid)..'][FREE]') end elseif thing.uid == cid then if getPlayerPremiumDays(cid) > 0 then doPlayerSetSpecialDescription(cid,'[Frags: '..getPlayerFrags(cid)..'][VIP]') else doPlayerSetSpecialDescription(cid,'[Frags: '..getPlayerFrags(cid)..'][FREE]') end if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end
  12. Funfo o 2 Script... Só Falta o Primeiro =D
  13. Já esta Adicionado... tudo certo lá.
  14. Estou com Estes 2 Erros nos Scripts Alguem poderia me Ajudar? Sempre Valendo +REP 1º Erro [15/2/2015 16:50:35] [Error - CreatureScript Interface] [15/2/2015 16:50:35] data/creaturescripts/scripts/dota/ga3.lua:onDeath [15/2/2015 16:50:35] Description: [15/2/2015 16:50:35] (LuaInterface::luaDoRemoveCreature) Creature not found 1º Script 2º Erro [15/2/2015 17:37:35] [Error - TalkAction Interface] [15/2/2015 17:37:35] data/talkactions/scripts/loteria_tk.lua:onSay [15/2/2015 17:37:35] Description: [15/2/2015 17:37:35] data/talkactions/scripts/loteria_tk.lua:11: attempt to compare number with nil [15/2/2015 17:37:35] stack traceback: 2º Script
  15. Então... Eu não Adicionei no Rme e mesmo assim não Aparece a "Besta" quando clica na Porta. E Não Da Erro na Distro @EDIT Outra Coisa Quando Jogo Acaba,Ganho Recompensa tudo de boa... Quando Tento entrar pra Jogar de Novo Fala You're already inside a room...
  16. Funfo Certo,Porem quando vc entra na sala não aparece a "Besta" mais fica atirando como se ela tivesse lá Outra Coisa, Só Pode Jogar uma Vez ? Cada Jogador?.... Pois Não Tem como Entrar de Novo...
  17. 1- sim só salas viradas para < 2- fazer idêntico 3- você tem que esperar o outro jogador 4- quando clica na porta vc é teleportado para dentro 5- não precisa,entro na sala já esta contando,ou seja o alvo já nasce 6- não precisa custar nada 7- ele fica saindo automaticamente a cada segundo 8- ela ja fica la, quando vc entra ela começo a funcionar
  18. certo, cada alvo morto ele vai ganhando dinheiro no banco
  19. Então é o seguinte queria alguem poderia fazer este script dos Mini Games Funciona Assim: O jogador ao entrar no jogo ele controla 1 arco gigante e tem como objetivo acertar o alvo que é 1 passáro que fica se movendo loucamente pela area, o tempo é de 60 segundos, o objetivo é acertar o maximo de vezes que você conseguir o passáro, quanto maior o numero de acerto, melhor vai ser a recompensa, e haverá um rank para esse mini game, aonde você pode ver quem acertou mais vezes no servidor. Imagem Da Sala: Espero que tenha Entendido... No Aguardo - +REP
  20. Seja Bem Vindo e Ajudara Bastante
  21. Bom estou com o seguinte erros no Distro OTX 8.60 O Primeiro é este do MoveEvent [Error - MoveEvent::executeStep] Call stack overflow. O Segundo é Este [13/12/2014 22:47:37] [Error - Action Interface] [13/12/2014 22:47:37] data/actions/scripts/flagabsolute.lua:onUse [13/12/2014 22:47:37] Description: [13/12/2014 22:47:37] data/lib/florestaabsolute.lua:39: attempt to call global 'doRemovePlayersFromArea' (a nil value) [13/12/2014 22:47:37] stack traceback: [13/12/2014 22:47:37] data/lib/florestaabsolute.lua:39: in function 'doCloseExf' [13/12/2014 22:47:37] data/actions/scripts/flagabsolute.lua:5: in function Aqui está o script > flagabsolute function onUse(cid, item) if getGlobalStorageValue(configExf.stats) == 1 then doTeleportThing(cid, configExf.templepos) doCloseExf() doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ganhou o evento Floresta encantada, parabens receba seu premio") doBroadcastMessage(getPlayerName(cid) .. " foi o vencedor do Floresta Encantada.") doPlayerAddItem(cid, configExf.prize) else doPlayerSendCancel(cid, "Desculpe mas o evento encontra se fechado") end return true end Espero que Alguem me Ajude, Sempre Valendo +REP e agradeço desde Já

Informação Importante

Confirmação de Termo