Postado Setembro 11, 2017 7 anos Galera alguem pode arruma esse script pra mim ou fazer um parecido? Script: Mostrar conteúdo oculto local first = { [1] = 100001, --NARUTO COMPLETO [2] = 100002, --SASUKE COMPLETO [3] = 100003, --LEE COMPLETO [4] = 100004, --SAKURA COMPLETO [5] = 100005, --GAARA INCOMPLETO [6] = 100006, --NEJI COMPLETO [7] = 100007, --KIBA COMPLETO [8] = 100008, --SHIKAMARU COMPLETO [9] = 100009, --HINATA COMPLETO [10] = 100010, --TENTEN COMPLETO [11] = 100011, --ITACHI COMPLETO [12] = 100012, --KILLER BEE COMPLETO [13] = 100013, --KAKASHI COMPLETO [14] = 100014, --PAIN prox update [15] = 100015, --OBITO COMPLETO [16] = 100016, --MADARA COMPLETO [17] = 100017, --NAGATO prox update [18] = 100018, --KISAME prox update [19] = 100019, --KANKURO prox update [20] = 100020, --MINATO COMPLETO [21] = 100021, --JYRAIA COMPLETO [22] = 100022, --RAIKAGE prox update [23] = 100023, --OROCHIMARU COMPLETO [24] = 100024, --TEMARI [25] = 100025, --YAMATO COMPLETO [26] = 100026, --DEIDARA [27] = 100027, --KABUTO COMPLETO [28] = 100028, --NIDAIME [31] = 100031, --onoki [32] = 100032, --shisui [33] = 100033, --hashirama [34] = 100034, --hidan [35] = 100035, --Maito gai [36] = 100036, [37] = 100037, --Dodai } local level = 1 -- de quantos em quantos niveis vc vai liberar uma saga nova function onLogin(cid) if not first[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao podera trocar de saga.") return true end if getPlayerLevel(cid) >= level then setPlayerStorageValue(cid, first[getPlayerVocation(cid)]) doPlayerSendTextMessage(cid, 25, "Voce escolheu uma nova saga!") doPlayerSay(cid, "saga!!", TALKTYPE_ORANGE_1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..level.." para usar essa saga.") end return true end Não estou conseguindo por causa de um detalhe na hora de ganhar a storage. Conteúdos Tragos Por Mim ao Fórum: • Venda de Vocações [Modern Aac] • • Comando !Saga • • [Modern Aac] DragonBall • • Esconder • • Naruto 2018 • • • • • • • 'NtoProject - Breve' [Show OFF] Disponível
Postado Setembro 11, 2017 7 anos Solução setPlayerStorageValue(cid, first[getPlayerVocation(cid)]) Falta setar o valor da storage: setPlayerStorageValue(cid, first[getPlayerVocation(cid)], 1) Contato: Email: dwarfer@sapo.pt Discord: Dwarfer#2715
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.