
Tudo que MaXwEllDeN postou
-
[Resolvido]Alguem faz um npc q da vocation por itens
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())
-
[Resolvido]Alguem faz um npc q da vocation por itens
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())
-
[Resolvido]Alguem faz um npc q da vocation por itens
Dúvida sanada, tópico movido.
-
[Resolvido]Alguem faz um npc q da vocation por itens
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())
-
[Resolvido] Algum script que fassa a posta feixar sozinha?
Olha cara, testei aqui e está funcionando certinho, provavelmente você está colocando alguma actionid na porta, ELA NÃO PODE TER NENHUMA ACTIONID.
-
[Resolvido] Website par LINUX
Sim, tenho o apache. Já posto mostrando como faz pra fechar o servidor.
-
[CTF] Capture The Flag
Vou corrigir e estarei postando ele novamente. Obrigado por Reportar! Qual a versão do teu servidor?
- [PEDIDO] Capture The Flag - Funcionando
-
[Resolvido] Algum script que fassa a posta feixar sozinha?
Poe no Piso a actionid.
-
[Resolvido] Algum script que fassa a posta feixar sozinha?
Acho que tanto faz, mas poe no piso.
-
[Resolvido] Website par LINUX
Não tenho um site, por isso quero o teu pra testar ._.
-
Oque devo fazer...
Vod, deixa de ser mlk piranha.
-
[Resolvido] Algum script que fassa a posta feixar sozinha?
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.
-
[Resolvido] Algum script que fassa a posta feixar sozinha?
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
-
Entrevista Com MaXwEllDeN
Gostei muito Sky, primeira vez que sou entrevistado. \o/ e provavelmente a única Aheuhaea, obrigado P:. FAIL. Quis dizer BACANA, adskasodkosadsa. Polêmicas como?
-
TOP 10 Melhores Animes
Me passa teu Skype.
-
TOP 10 Melhores Animes
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
-
Fotos Rl
Como você mudou Sky ._. . Da última vez que te ví você não era assim.
-
[CTF] Capture The Flag
Não entendí muito bem sua dúvida, mas acho que você está colocando alguma actionid no tile que a bandeira ficará, certo?
-
[Resolvido] Website par LINUX
Posta aqui o link do Site que você está usando, que dou uma olhada aqui no meu Linux.
-
[Resolvido][Duvida] Como coloco maglv nas runas?
Dúvida sanada, tópico movido.
-
[Resolvido][Duvida] Como coloco maglv nas runas?
Não, aí você edita em items.xml se não me engano.
-
[Bugs] Encontrados, [Sugestões] Feitas e [Dúvidas] Do Comedinha
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". ¬¬
-
[Resolvido][Duvida] Como coloco maglv nas runas?
Isso, no arquivo: data/spells/spells.xml.
-
[Resolvido][Duvida] Como coloco maglv nas runas?
<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"