Postado Dezembro 24, 2016 8 anos 25 minutos atrás, druste disse: so mostra que nao tenho um item necessario nao chega nenhuma mensagem para o player. não entendi nada. Qual o Erro? algum erro no console?
Postado Dezembro 24, 2016 8 anos Autor 1 minuto atrás, Gustavo Ntos disse: não entendi nada. Qual o Erro? algum erro no console? Nao tem erro tipo eu tenho o iten certinho na mao so que ele so mostra a mensagem que eu nao tenho o item correto para pegar a vocation Nao mostra que preciso ser level 200 Editado Dezembro 24, 2016 8 anos por druste (veja o histórico de edições)
Postado Dezembro 24, 2016 8 anos 13 minutos atrás, druste disse: Nao tem erro tipo eu tenho o iten certinho na mao so que ele so mostra a mensagem que eu nao tenho o item correto para pegar a vocation Nao mostra que preciso ser level 200 local item=2160 --ID do item necessario para trocar de vocaçao local newVoc=5 --ID da vocation local outfit=13 --LookType do outfit da vocation ---LINHA ADICINADA BY : GUSTAVO NTOS--- local level= 200 --Level pra pegar a vocaçãao ---LINHA ADICINADA BY : GUSTAVO NTOS--- local stor = 437369 -- Storage pode ser qualquer numero, desde que não exista no servidor. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if msgcontains(msg, 'yes') then if(doPlayerRemoveItem(cid, item, 1) == true) then if getPlayerLevel(cid) >= level then if getPlayerStorageValue(cid, stor) < 1 then doPlayerSetVocation(cid, newVoc) setPlayerStorageValue(cid, stor, 1) doCreatureChangeOutfit(cid, {lookType=outfit}) else selfSay("Voce ja se Transformou em Mago Master.", cid) end else selfSay('Para virar um Mago master voce precisa do level '..level..'. ', cid) end else selfSay("Voce nao tem o item necessario para se transformar em Mago Master. Volte aqui quando tiver ele.", cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
Postado Dezembro 24, 2016 8 anos Autor Agora, Gustavo Ntos disse: local item=2160 --ID do item necessario para trocar de vocaçao local newVoc=5 --ID da vocation local outfit=13 --LookType do outfit da vocation ---LINHA ADICINADA BY : GUSTAVO NTOS--- local level= 200 --Level pra pegar a vocaçãao ---LINHA ADICINADA BY : GUSTAVO NTOS--- local stor = 437369 -- Storage pode ser qualquer numero, desde que não exista no servidor. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if msgcontains(msg, 'yes') then if(doPlayerRemoveItem(cid, item, 1) == true) then if getPlayerLevel(cid) >= level then if getPlayerStorageValue(cid, stor) < 1 then doPlayerSetVocation(cid, newVoc) setPlayerStorageValue(cid, stor, 1) doCreatureChangeOutfit(cid, {lookType=outfit}) else selfSay("Voce ja se Transformou em Mago Master.", cid) end else selfSay('Para virar um Mago master voce precisa do level '..level..'. ', cid) end else selfSay("Voce nao tem o item necessario para se transformar em Mago Master. Volte aqui quando tiver ele.", cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Amigo se vc puder me ajuda so ne uma coisa que estou procurando a tempo tipo quando um player morre ele zera a vocation ficar 0 e zera tudo que ele tem na bag. ou algu do tipo
Postado Dezembro 24, 2016 8 anos 1 minuto atrás, druste disse: Amigo se vc puder me ajuda so ne uma coisa que estou procurando a tempo tipo quando um player morre ele zera a vocation ficar 0 e zera tudo que ele tem na bag. ou algu do tipo Se a Script funcionou marque como melhor resposta// Você quer como?? perder todos items e volta pro level 1? não entendi esse zerar a vocação
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.