Ir para conteúdo

Roksas

Herói
  • Total de itens

    3611
  • Registro em

  • Última visita

  • Dias Ganhos

    60

Tudo que Roksas postou

  1. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  2. function onSay(cid, words, param, channel) local out = { [1] = 123, -- VOCATION / LOOKTYPE [2] = 321, [3] = 321, [4] = 321, } local config = { removeSpeed = "sim", -- sim ou nao storage = 2501, -- Nao mecha outs = out[getPlayerVocation(cid)], } if not config.outs then return true end if getPlayerStorageValue(cid,config.storage) <= 0 then doSetCreatureOutfit(cid, out[getPlayerVocation(cid)], -1) setPlayerStorageValue(cid, config.storage, 350) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, true) end else doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, config.storage, 0) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, false) end end return true end
  3. Roksas

    Sqlite ou Mysql

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  4. A tabela estava fora da função main, não encontrava o parâmetro cid, rsrs. Tente agora: function onSay(cid, words, param, channel) local out = { [1] = 123, -- VOCATION / LOOKTYPE [2] = 321, [3] = 321, [4] = 321, } local config = { removeSpeed = "sim", -- sim ou nao storage = 2501, -- Nao mecha } if getPlayerStorageValue(cid,config.storage) <= 0 then doSetCreatureOutfit(cid, out[getPlayerVocation(cid)], -1) setPlayerStorageValue(cid, config.storage, 350) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, true) end else doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, config.storage, 0) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, false) end end return true end #GoodLuck
  5. Roksas

    GlobalStorage

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  6. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  7. Respodendo uma dúvida de vocês, o true nesta função, faz com que em vez de teleportado, ele ande 1 SQM para trás. #Movido. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  8. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  9. Tenta: local out = { [1] = 123, -- VOCATION / LOOKTYPE [2] = 321, [3] = 321, [4] = 321, } local config = { removeSpeed = "sim", -- sim ou nao storage = 2501, -- Nao mecha } function onSay(cid, words, param, channel) if getPlayerStorageValue(cid,config.storage) <= 0 then doSetCreatureOutfit(cid, out[getPlayerVocation(cid)], -1) setPlayerStorageValue(cid, config.storage, 350) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, true) end else doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, config.storage, 0) if config.removeSpeed == "sim" then doCreatureSetNoMove(cid, false) end end return true end
  10. Roksas

    Novo Dinheiro

    Obrigado por colaborar Avronex. #Movido! Tópico movido para a seção de dúvidas e pedidos resolvidos.
  11. Roksas

    npc de travel

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  12. Roksas

    npc de travel

    Só tentar local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Yalahar por 210 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 210, destination = {x=1555, y=2576, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para {dorion}, {Yalahar}, {Alfon}, {venonh} e {Anknor} por um pequeno custo.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'dorion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Dorion por 110 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 110, destination = {x=31, y=79, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'dorion\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'alfon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para alfon por 115 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 115, destination = {x=114, y=282, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Alfon\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'venonh'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para venonh por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=238, y=370, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'venohn\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 175 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 175, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'evora'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para évora por 175 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 175, destination = {x=1046, y=2048, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'smallville'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para smallville por 190 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 190, destination = {x=1995, y=2394, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'smallville\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'goroma'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Goroma por 55 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 55, destination = {x=1367, y=195, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'goroma\' for just a small fee.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new())
  13. Roksas

    npc de travel

    Qual o nome da cidade amigo?
  14. Roksas

    SYSTEMA DE AURA VIP

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  15. Amigão, nessa seção se postam códigos prontos, e não dúvidas. Tome mais cuidado! #Movido!
  16. Roksas

    SYSTEMA DE AURA VIP

    Dá uma olhada nisso: http://www.xtibia.com/forum/topic/214748-regeneration-system/
  17. Roksas

    SYSTEMA DE AURA VIP

    Ok, sem problemas. Tome mais cuidado! #topic Bom, me explique como quer o sistema de aura? Como vai funcionar? Oque ganha? Tudo ^^
  18. @Obrigado pela resposta DuMal. Dúvida foi sanada, tópico movido e renomeado para seção de Resolvidos. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  19. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  20. No talkactions.xml procure pelo cargo desejado e coloque access 3
  21. Você terá que importar o monstro novamente no RME.
  22. Aprovado e movido.
  23. Isso não é um tutorial cara, e sim um download de mapa. Arrume a formatação. Você tem um prazo de 7 dias. @movido
  24. #Editado, aprovado e movido.
  25. Muito bom cara, o vídeo está bem legal, com voz, sem erros. Ás vezes novatos se confundem com tutoriais escritos, este vídeo ajudará bastante. #Editado, aprovado e movido.
  • Quem Está Navegando   0 membros estão online

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