Postado Dezembro 16, 2017 7 anos Olá TK , alguém pode me fazer um script de uma bau de quest que precise um determinado level para abrir. com storage pra não ficar pegando direto . Obrigado! +Rep
Postado Dezembro 16, 2017 7 anos Solução @leozincorsair local level = 200 local premio = 2160 local storage = 444445 function onUse(cid, item, frompos, item2, topos) if item.uid == 7181 then queststatus = getPlayerStorageValue(cid,storage) if queststatus == -1 then if getPlayerLevel(cid) >= level then doPlayerSendTextMessage(cid,25,"Parabens...") doPlayerAddItem(cid,premio,1) setPlayerStorageValue(cid,storage,1) else doPlayerSendTextMessage(cid,25,"Voce Precisa de LEVEL "..level..".") end else doPlayerSendTextMessage(cid, 22, "Vázio") end return 0 end return 1 end <action uniqueid="7181" event="script" value="quests/NomeDoArquivo.lua"/> Editado Dezembro 16, 2017 7 anos por gabrielzika (veja o histórico de edições) MEU SERVER: http://otpokemonxy.net/ Nosso → Grupo Oficial OtPokemon XY 24 Horas Nosso → Site Oficial OtPokemon XY 24 Horas Nossa → Pagina Oficial OtPokemon XY 24 Horas
Postado Dezembro 16, 2017 7 anos Autor 10 minutos atrás, gabrielzika disse: @leozincorsair local level = 200 local premio = 2160 local storage = 444445 function onUse(cid, item, frompos, item2, topos) if item.uid == 7181 then queststatus = getPlayerStorageValue(cid,storage) if queststatus == -1 then if getPlayerLevel(cid) >= level then doPlayerSendTextMessage(cid,25,"Parabens...") doPlayerAddItem(cid,premio,1) setPlayerStorageValue(cid,storage,1) else doPlayerSendTextMessage(cid,25,"Voce Precisa de LEVEL "..level..".") end else doPlayerSendTextMessage(cid, 22, "Vázio") end return 0 end return 1 end Obrigado !
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.