Ir para conteúdo

MaXwEllDeN

Héroi
  • Registro em

  • Última visita

Tudo que MaXwEllDeN postou

  1. local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Tchau!',cid) return false end if(parameters.present == true) then if(doPlayerRemoveItem(cid,item1,quant1) == true) then doPlayerSetVocation(cid, 4) doTeleportThing(cid, pos) npcHandler:say('You changed your vocation to vocation of the Angel.',cid) els enpcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  2. local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Tchau!',cid) return false end if(parameters.present == true) thenif(doPlayerRemoveItem(cid,item1,quant1) == true) thendoPlayerSetVocation(cid, 4)doTeleportThing(cid, pos)npcHandler:say('You changed your vocation to vocation of the Angel.',cid)elsenpcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid)endnpcHandler:resetNpc()return trueendendnpcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.")local noNode = KeywordNode:new({'no'}, santaNPC, {present = false})local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true})local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'})node:addChildKeywordNode(yesNode)node:addChildKeywordNode(noNode)npcHandler:addModule(FocusModule:new())
  3. Dúvida sanada, tópico movido.
  4. Testa aí, substituí a função que ele dizia não existir. local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if(parameters.present == true) then if(doPlayerRemoveItem(cid,item1,quant1) == true) then doPlayerSetVocation(cid, 4) doTeleportThing(cid, pos) npcHandler:say('You changed your vocation to vocation of the Angel.',cid) else npcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  5. Olha cara, testei aqui e está funcionando certinho, provavelmente você está colocando alguma actionid na porta, ELA NÃO PODE TER NENHUMA ACTIONID.
  6. Sim, tenho o apache. Já posto mostrando como faz pra fechar o servidor.
  7. Vou corrigir e estarei postando ele novamente. Obrigado por Reportar! Qual a versão do teu servidor?
  8. Qual versão do seu servidor? Esse erro aí que o tile sumia eu já havia corrigido, diz aí pra que eu possa te auxiliar.
  9. Acho que tanto faz, mas poe no piso.
  10. Não tenho um site, por isso quero o teu pra testar ._.
  11. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Vod, deixa de ser mlk piranha.
  12. Adiciona essa "tag" ao seu movements.xml: <movevent type="StepOut" actionid="5406" event="script" value="FecharSozinha.lua"/> Crie um arquivo na pasta data/movements/scripts nomeado de FecharSozinha.lua e cole isso dentro dele: local config = { tile_door_pos = {x = 1, y = 1, z = 1 }, -- Posição da porta door_closed_id = 1, -- Id da porta fechada door_opened_id = 2, -- Id da porta aberta } function onStepOut(cid) return doTransformItem(getTileItemById(config.tile_door_pos, config.door_opened_id).uid, config.door_closed_id) end Aí no PISO em que a porta fica você coloca a actionid 5406.
  13. Smix, em Lua não é possível fazer comparação de tabelas com o operador de igualdade. Mas mesmo assim muito obrigado por contribuir [: Dando uma optimizada no script do nosso amigo Smix: local config = { tile_door_pos = {x = 1, y = 1, z = 1 }, -- Posição da porta door_closed_id = 1, -- Id da porta fechada door_opened_id = 2, -- Id da porta aberta } function onStepOut(cid) return doTransformItem(getTileItemById(config.tile_door_pos, config.door_opened_id).uid, config.door_closed_id) end
  14. Gostei muito Sky, primeira vez que sou entrevistado. \o/ e provavelmente a única Aheuhaea, obrigado P:. FAIL. Quis dizer BACANA, adskasodkosadsa. Polêmicas como?
  15. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Me passa teu Skype.
  16. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Não vou organizar em uma ordem de melhores blabla, até porque só assisto animes que eu gosto. Fullmetal Alchemist Brotherhood Sword Art Online Naruto Shippuden Fairy Tail Dragon Ball Death Note
  17. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Como você mudou Sky ._. . Da última vez que te ví você não era assim.
  18. Não entendí muito bem sua dúvida, mas acho que você está colocando alguma actionid no tile que a bandeira ficará, certo?
  19. Posta aqui o link do Site que você está usando, que dou uma olhada aqui no meu Linux.
  20. Dúvida sanada, tópico movido.
  21. Não, aí você edita em items.xml se não me engano.
  22. Concordo Bruno, a reputação hoje está sendo usada como moeda, é cheio de nêgo: Dá Rep +. Um dia veio um cara no msn daqui do fórum mesmo, mandou o link do tópico dele e disse: "Me dá rep". Aí disse a ele, que reputação é algo que você deve ganhar por merecimento. E o cara acha que a reputação vai fazer dele o "fodam". ¬¬
  23. Isso, no arquivo: data/spells/spells.xml.
  24. <rune name="Heavy Magic Missile" id="2311" allowfaruse="1" charges="10" lvl="25" exhaustion="2000" groups="1,2000" icon="8" maglv="3" needtarget="1" blocktype="solid" event="script" value="attack/heavy magic missile.lua"/> Alí em maglv="3"

Informação Importante

Confirmação de Termo