Ir para conteúdo

davidguimaraesdrum

Membro
  • Registro em

  • Última visita

Tudo que davidguimaraesdrum postou

  1. Olá, Gostaria de alterar o LOOT inicial de todas as vocações. EXEMPLO: Quando o jogador loga no OT pela primeira vez, ele vem com um loot padrão, quero alterá-lo. (Alguém sabe como?) Obrigado desde já! Valendo REP+++
  2. Olá, 1° Estou editando um site, gostaria de saber como faço para fixar o meu plano de fundo. EXEMPLO: http://mega-baiak.com < Esse site tem um background fixado ao fundo do site, independente da barra de rolagem a imagem fica fixada. http://vardera.servegame.com < Esse é o meu site, o background não está fixado, ele anda junto com a barra de rolagem. 2° Se o monitor for grande, a imagem não preenche todo o espaço. Alguém sabe se tem algum comando pra ele se adequar a qualquer monitor? Agradeço desde já! REP+ pra quem ajudar.
  3. Olá, Eu uso um script para uma SUPER CAVE, aonde os monstros dão mais XP e GOLD, para ter acesso eu utilizo um ITEM,o qual o player precisa para ter acesso a essa área, é agora que o problema começa. O objetivo era o player comprar o ITEM no NPC e usar e sumir igual um FOOD, só que ao usar o item ele continua na backpack do player, alguém pode me ajudar a fazer o item sumir ao utilizá-lo? ------------------------------------------------------------------------------------------------------------------------- Script creaturescripts movements
  4. CARA*¨%#$&%¨FUNCIONOU PERFEITAMENTE, VOCÊ É O CARA!!!!!!!!!!!!!!!
  5. Consegue criar um NPC para pagar a fiança? o char fica preso, ai você vai lá e paga um valor e ele é liberado.
  6. Eu uso o NPC BANK para deposito, transferências etc.. ele funciona corretamente, porem eu criei um novo gold (ID: 9971, Name: gold ingot, equivalente a 1kk cada barra) eu queria que os NPC trabalha-se também com essa gold, aonde eu consegui-se comprar itens e depositar essa moeda. Alguem pode me ajudar? NPC: <?xml version="1.0" encoding="UTF-8"?> <npc name="Bradesco" script="data/npc/scripts/bankeiro.lua" walkinterval="2000" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="151" head="115" body="0" legs="114" feet="0" addons="3" corpse="2212"/> <parameters> <parameter key="message_greet" value="Welcome |PLAYERNAME|! Here, you can {deposit}, {withdraw} or {transfer} your money from your bank account. I can change your coins too."/> <parameter key="message_alreadyfocused" value="You are drunked ? I talk with you."/> <parameter key="message_farewell" value="Goodbye. I wanna see your money... oh you again."/> </parameters> </npc> Script: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local moneyTo = {} local playerTo = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local function isValidMoney(money) if isNumber(money) == TRUE and money > 0 and money < 999999999 then return TRUE end return FALSE end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'help') or msgcontains(msg, 'offer') then selfSay("You can check the {balance} of your bank account, {deposit} money or {withdraw} it. You can also {transfer} money to other characters, provided that they have a vocation.", cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Balance ---------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'balance') or msgcontains(msg, 'Balance') then selfSay('Your account balance is '..getPlayerBalance(cid)..' gold.', cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Help ------------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'basic functions') then selfSay('You can check the {balance{ of your bank account, Pdeposit{ money or Pwithdraw{ it. You can also {transfer} money to othercharacters, provided that they have a vocation.', cid) talkState[cid] = 0 elseif msgcontains(msg, 'advanced functions') then selfSay('Renting a house has never been this easy. Simply make a bid for an auction. We will check immediately if you haveenough money.', cid) talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Deposit ---------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'deposit all') then moneyTo[cid] = getPlayerMoney(cid) if moneyTo[cid] < 1 then selfSay('You don\'t have any money to deposit in you inventory..', cid) talkState[cid] = 0 else selfSay('Would you really like to deposit '..moneyTo[cid]..' gold?', cid) talkState[cid] = 2 end elseif msgcontains(msg, 'deposit') then selfSay("Please tell me how much gold it is you would like to deposit.", cid) talkState[cid] = 1 elseif talkState[cid] == 1 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Would you really like to deposit '..moneyTo[cid]..' gold?', cid) talkState[cid] = 2 else selfSay('Is isnt valid amount of gold to deposit.', cid) talkState[cid] = 0 end elseif talkState[cid] == 2 then if msgcontains(msg, 'yes') then if doPlayerDepositMoney(cid, moneyTo[cid], 1) ~= TRUE then selfSay('You do not have enough gold.', cid) else selfSay('Alright, we have added the amount of '..moneyTo[cid]..' gold to your balance. You can withdraw your money anytime you want to. Your account balance is ' .. getPlayerBalance(cid) .. '.', cid) end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) end talkState[cid] = 0 ----------------------------------------------------------------- ---------------------------- Withdraw --------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'withdraw') then selfSay("Please tell me how much gold you would like to withdraw.", cid) talkState[cid] = 6 elseif talkState[cid] == 6 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Are you sure you wish to withdraw '..moneyTo[cid]..' gold from your bank account?', cid) talkState[cid] = 7 else selfSay('Is isnt valid amount of gold to withdraw.', cid) talkState[cid] = 0 end elseif talkState[cid] == 7 then if msgcontains(msg, 'yes') then if doPlayerWithdrawMoney(cid, moneyTo[cid]) ~= TRUE then selfSay('There is not enough gold on your account. Your account balance is '..getPlayerBalance(cid)..'. Please tell me the amount of gold coins you would like to withdraw.', cid) else selfSay('Here you are, ' .. moneyTo[cid] .. ' gold. Please let me know if there is something else I can do for you.', cid) talkState[cid] = 0 end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) talkState[cid] = 0 end ----------------------------------------------------------------- ---------------------------- Transfer --------------------------- ----------------------------------------------------------------- elseif msgcontains(msg, 'transfer') then selfSay("Please tell me the amount of gold you would like to transfer.", cid) talkState[cid] = 11 elseif talkState[cid] == 11 then moneyTo[cid] = tonumber(msg) if isValidMoney(moneyTo[cid]) == TRUE then selfSay('Who would you like transfer '..moneyTo[cid]..' gold to?', cid) talkState[cid] = 12 else selfSay('Is isnt valid amount of gold to transfer.', cid) talkState[cid] = 0 end elseif talkState[cid] == 12 then playerTo[cid] = msg if getCreatureName(cid) == playerTo[cid] then selfSay('Ehm, You want transfer money to yourself? Its impossible!', cid) talkState[cid] = 0 return TRUE end if playerExists(playerTo[cid]) then selfSay('So you would like to transfer ' .. moneyTo[cid] .. ' gold to "' .. playerTo[cid] .. '" ?', cid) talkState[cid] = 13 else selfSay('Player with name "' .. playerTo[cid] .. '" doesnt exist.', cid) talkState[cid] = 0 end elseif talkState[cid] == 13 then if msgcontains(msg, 'yes') then if getPlayerBalance(cid) < moneyTo[cid] then selfSay('You dont have enought money on your bank account.', cid) return TRUE end if doPlayerTransferMoneyTo(cid, playerTo[cid], moneyTo[cid]) ~= TRUE then selfSay('This player does not exist on this world or have no vocation.', cid) else selfSay('You have transferred ' .. moneyTo[cid] .. ' gold to "' .. playerTo[cid] ..' ".', cid) playerTo[cid] = nil end elseif msgcontains(msg, 'no') then selfSay('As you wish. Is there something else I can do for you?', cid) end talkState[cid] = 0 end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. Bom dia, Como eu faço pro NPC aceitar um novo dinheiro? ID 9971, é o INGOT aquela barra de outro que vale 1kk. Att;
  8. Pode me ajudar? Eu fiz exatamente oque o pessoal falou aqui e funcionou só que o ITEM é infinito ele não some igual FOOD, como faço pra usar o item e ele sumir?
  9. Aqui está funcionando perfeitamente, só que o ITEM é infinito ele não some igual FOOD, como faço pra usar o item e ele sumir?
  10. Já está um item diferente, porem ele dá o mesmo em qualquer um que eu escolha, ele não está entendendo a ID que eu deixei no .lua
  11. Como faço isso?
  12. Dessa forma não funciona, ele me da o mesmo item, independente de qual Bau eu escolha. (Great Shield, em todos os Baus, mesmo a ID no .lua sendo de outro)
  13. -------------------------------------------------------------- Estou com dúvidas nessa parte: scripts function onUse(cid, item, frompos, item2, topos) if item.uid == 3029 then queststatus = getPlayerStorageValue(cid,3029) if queststatus == -1 or queststatus == 0 then doPlayerSendTextMessage(cid,22,"Parabens!") -- a mensagen que ira aparecer quando vc pegar o item item_uid = doPlayerAddItem(cid,8908,1) -- item_uid = doPlayerAddItem(cid,2160~id do item~,100~Quantidade~) setPlayerStorageValue(cid,3029,1) else doPlayerSendTextMessage(cid,22,"Voce ja escolheu um dos itens!") -- ira aprecer quando vc ja tiver pego e tentar dnv end else return 0 end return 1 end O 3029, é a Unique ID que está nos 3 BAUS, está correto? actions <action uniqueid="3027" script="quests/varderavintequatro.lua" /> <action uniqueid="3028" script="quests/varderavintecinco.lua" /> <action uniqueid="3029" script="quests/varderavintesete.lua" /> Ambas elas dentro do scripts estão iguais, alterei apenas o ITEM. Deixando dessa forma não está funcionando, ele está me dando o item da action 3027 em qualquer um dos baus.
  14. Boa noite, Gostaria de saber como faço pra configurar uma quest aonde adicionei 4 bau, e o player só poderia escolher uma, e por lógica as demais ficarem bloqueadas. Exemplo: Annihilator, aonde o jogador só pode escolher um bau. Eu uso o RME, mais também posso configurar direto pelo .lua, só preciso saber por onde começo. Agradeço a ajuda desde já. Att;
  15. Boa noite, Segui exatamente os detalhes do seu tutoria, porem encontrei um problema. (OBS: Esse problema também está ocorrendo com outro MOD, porem também não consegui solucionar até o momento). Abro OT perfeitamente. (Nenhum erro do Distro) Executo o comando para iniciar o evento, o teleporte aparecer PERFEITAMENTE. (Nenhum erro no Distro) Entro no teleporte, porem eu acabo indo para um local inexistente. (Nenhum erro no Distro) Segue em anexo as imagens, comprovando que o local informado é existente, e que está configurado corretamente. Poderá ser algo no meu Distro? Agradeço desde já pela atenção.
  16. Desculpe o doble post, sei que é contra as regras, é que eu realmente estou com esse problema e precisava de uma ajuda, dessa vez trouxe mais detalhes. Problema: Quando eu inicio o EVENTO, o teleporte aparece a cordenada, ao entrar no teleporte eu vou pra um local inexistente igual na imagem ANEXADA.
  17. Pode me auxiliar? eu não sei como executar esses comandos pelo SQLITE:
  18. Consegui, muito obrigado! Queria saber se é possível executar o SQL pelo SQLITE ;/
  19. Eu consigo rodar em SQLITE? Outra coisa, está dando essa mensagem ao abrir o OT: [22/03/2017 21:58:07] [Warning - Event::loadScript] Event onTimer not found (data/globalevents/scripts/snowballglobalevent.lua) Oque pode ser?
  20. Estou com o seguinte problema, ao liberar o portal o player entra nele e vai pra um local bugado, todos os pisos pretos com um único piso vermelho, como se ele fosse pra um local do mapa inexistente x=0, y=0, z-0. Eu coloquei no templo pra testar e mesmo assim ocorre o problema, minhas configurações estão assim: storages = {172100, 172101, 172102}, -- n edite players = {min = 3, max = 30}, -- min, max players no evento rewards = {items ={{2160,10},{2494,1}}, trophy = 5805}, timeToStartEvent = 30, -- segundos para começar o evento CheckTime = 5, -- tempo que o TP fica aberto para os jogadores adrentarem o evento teleport = {{x=145, y=50, z=7},{x=145 , y=46, z=7}}, -- position do tp onde aparece, position para onde o jogador vai ao entrar no tp arena = {{x=2315,y=1984,z=7},{x=2390,y=2050,z=7}}, -- area positions monster_name = "Zombie Event", timeBetweenSpawns = 20, min_Level = 8 Pode me ajudar?
  21. Eu uso essa base aqui, não alterei a parte Donate:

Informação Importante

Confirmação de Termo