Postado Novembro 8, 2017 7 anos Queria uma Talkaction que seria o seguinte: Ex - Sou da Akatsuki e digo !akatsuki e ganho uma outfit ( Da Akatsuki , Cada Vocation terá sua outfit ) porem se eu não for , apenas apareça uma mensagem dizendo que não faço parte da Akatsuki ( E não ganhe a outfit , é claro kk ) Se por acaso eu disser !akatsuki ( já com a outfit da Akatsuki ) novamente , remova a outfit ( voltando para a inicial ). Procurei pelo TK e não achei se puderem me dar essa força , agradeço de .
Postado Novembro 8, 2017 7 anos Dê uma olhada em: Ou: Contato: Email: [email protected] Discord: Dwarfer#2715
Postado Novembro 8, 2017 7 anos Autor 3 horas atrás, Dwarfer disse: Dê uma olhada em: teria como você fazer uma modificação nele pra mim ? Queria que só pudesse se tornar Akatsuki depois que se tornar Sennin. Akatsuki System que uso: Spoiler -- Script Akatsuki System Advance 1.0 -- -- By RigBy -- -- Xtibia.com -- 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 local level = 2000 -- Level preciso pra entra para akatsuki local itemid = 12073 -- id do fragment local quantidade = 10 -- quantos fragments e preciso local bonushp = 100000 -- quanto de bonus de life vai ganha local bonusmp = 100000 -- quanto de bonus de mana vai ganha local experience = 2 -- Experience rates no caso 2x a experiencia do seu servidor. local config = { --[Vocation] = ( Nova Vocation, New Outfit ) -- Naruto -- [1] = { 1, 704}, -- Sasuke -- [2] = { 2, 700}, -- Lee -- [3] = { 3, 736}, -- Sakura -- [4] = { 4, 170}, -- Gaara -- [5] = { 5, 719}, -- Neji -- [6] = { 6, 754}, -- Shisui -- [7] = { 7, 876}, -- Shikamaru -- [8] = { 8, 729}, -- Hinata -- [9] = { 9, 717}, -- Tenten -- [10] = { 10, 725}, -- Itachi -- [11] = { 11, 589}, -- Killer Bee -- [12] = { 12, 722}, -- Kakashi -- [13] = { 13, 744}, -- Madara -- [14] = { 14, 706}, -- Obito -- [15] = { 15, 1232}, -- Minato -- [16] = { 16, 705}, -- Kisame -- [17] = { 17, 708}, -- Raikage -- [18] = { 18, 1052}, -- Nagato -- [19] = { 19, 690}, -- Kankuro -- [20] = { 20, 713}, -- Kakuzo -- [21] = { 21, 467}, -- Temari -- [22] = { 22, 1055}, -- Tsunade -- [23] = { 23, 596}, -- Jiraya -- [24] = { 24, 520}, -- Kabuto -- [25] = { 25, 718}, -- Hagoromo -- [26] = { 26, 1189}, } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'akatsuki') then if getPlayerVocation(cid) ~= config then if getPlayerStorageValue(cid, 89745, 5) then if getPlayerLevel(cid) >= level then selfSay('Tem certeza de que quer se juntar a Akatsuki?.', cid) talkState[talkUser] = 1 else selfSay('Você nao é nem Sennin ainda , como quer entrar na akatsuki !? suma da minha frente!', cid) end else selfSay('Você já faz parte da Akatsuki!', cid) end else selfSay('Não preciso de você agora!', cid) end end if talkState[talkUser] == 1 and msgcontains(msg, 'yes') then selfSay('Para provar a sua lealdade, você tem que trazer '..quantidade..' {fragments}.', cid) talkState[talkUser] = 2 end if talkState[talkUser] == 2 and msgcontains(msg, 'fragments') then if getPlayerItemCount(cid, 12073) >= 10 then local voc = config[getPlayerVocation(cid)] doPlayerSetVocation(cid, voc[1]) local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+bonushp) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+bonusmp) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerRemoveItem(cid, 12073, 10) doCreatureAddMana(cid, getCreatureMaxMana(cid)) setPlayerStorageValue(cid,8974555,6) doPlayerSetExperienceRate(cid, experience) selfSay('Parabéns agora você é um membro da Akatsuki.', cid) talkState[talkUser] = 0 else selfSay('Não adianta me enganar, você não tem '..quantidade..' fragments, vai atrás, e só volte com eles.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Sennin System: Spoiler 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(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid --------------------------script-------------------------------- if msgcontains(msg, "elementos") then if getPlayerStorageValue(cid, 89745) > 4 then npcHandler:say("Voce ja é um sennin!", cid) return TRUE end npcHandler:say("Voce tem os seguintes items: {katon parchment}, {doton parchment} e {suiton parchment}? {yes} or {no}.", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "no") and talkState[talkUser] == 1 then npcHandler:say("Traga os elementos das torres, para se tornar um sennin.", cid) talkState[talkUser] = 0 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then if doPlayerRemoveItem(cid, 2193, 1) == TRUE and doPlayerRemoveItem(cid, 2218, 1) == TRUE and doPlayerRemoveItem(cid, 3957, 1) == TRUE then npcHandler:say("Muito Bem shinobi! agora voce é um sennin!", cid) setPlayerStorageValue(cid, 89745, 5) doPlayerAddItem(cid, 7464, 1) talkState[talkUser] = 0 else npcHandler:say("Voce nao tem os 3 elementos! ache as 3 torres dos elementos {katon}, {doton} e {suiton} e me traga os items!", cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) !Saga: Spoiler local saga = { -- Naruto --- [1] = {898, 900, 901, 903, 904, 905, 906, 907, 908, 909, 626}, -- Sasuke --- [2] = {1196, 1198, 1197, 306, 1199, 1202, 1200, 1204, 1206, 1205, 949, 816}, -- Lee --- [3] = {80, 190, 83, 191, 192, 193, 392, 330, 519, 559, 560, 808}, -- Sakura --- [4] = {174, 175, 195, 173, 172, 701, 171}, -- Gaara --- [5] = {52, 53, 72, 62, 189, 188, 518}, -- Neji --- [6] = {102, 103, 105, 107, 563, 564, 314}, -- Shisui --- [7] = {858, 859, 861, 862, 864, 865, 867, 868, 872, 873, 874, 875}, -- Shikamaru --- [8] = {88, 341, 343, 342, 344, 345}, -- Hinata --- [9] = {295, 296, 297, 723, 548, 749, 300}, -- Tenten --- [10] = {384, 385, 390, 386}, -- Itachi --- [11] = {96, 97, 98, 284, 100, 283, 211, 806, 807}, -- Killer Bee --- [12] = {583, 584, 585, 586, 614, 615, 616, 617, 618, 619, 620}, -- Kakashi --- [13] = {9, 11, 12, 13, 532, 14, 526, 527, 813, 814}, -- Madara --- [14] = {452, 454, 453, 455, 457, 458, 456, 459, 460, 595}, -- Obito --- [15] = {35, 476, 477, 478, 479, 480, 1115, 1116, 1123, 1117, 1232, 1118, 1119, 1120, 1121, 1122}, -- Minato --- [16] = {437, 438, 439, 440, 443, 517}, -- Kisame --- [17] = {421, 411, 412, 413, 422, 423, 424, 709, 420, 660}, -- Raikage --- [18] = {882, 883, 884, 886, 889, 890}, -- Nagato --- [19] = {1270, 1271, 1272, 1273, 1274, 1275}, -- Kankuro --- [20] = {309, 312, 311, 324, 319, 326, 328}, -- Kakuzo --- [21] = {465, 471, 357, 470, 551}, -- Temari --- [22] = {378, 379, 380, 381, 382}, -- Tsunade --- [23] = {534, 535, 536, 537, 538, 539, 540, 590, 591, 592, 593, 594}, -- Jiraya --- [24] = {793, 794, 795, 796, 798, 799, 800, 801, 802, 804}, -- Kabuto --- [25] = {817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828}, -- Hagoromo --- [26] = {1093, 1094, 1095, 1097, 1098, 1099, 1100, 1101, 1102, 1103}, } local level = 200 -- Limite para liberar uma saga nova function onSay(cid, words, param, channel) if exhaustion.check(cid, 120) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 3) return TRUE end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") exhaustion.set(cid, 120, 0.5) return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") exhaustion.set(cid, 120, 0.5) return true end if getPlayerLevel(cid) >= (tonumber(t[1])*level) then doCreatureChangeOutfit(cid, {lookType = saga[getPlayerVocation(cid)][tonumber(t[1])]}) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) exhaustion.set(cid, 120, 0.5) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") end return true end Editado Novembro 8, 2017 7 anos por zLockey9 (veja o histórico de edições)
Postado Novembro 8, 2017 7 anos 10 horas atrás, zLockey9 disse: teria como você fazer uma modificação nele pra mim ? Queria que só pudesse se tornar Akatsuki depois que se tornar Sennin. Akatsuki System que uso: Mostrar conteúdo oculto -- Script Akatsuki System Advance 1.0 -- -- By RigBy -- -- Xtibia.com -- 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 local level = 2000 -- Level preciso pra entra para akatsuki local itemid = 12073 -- id do fragment local quantidade = 10 -- quantos fragments e preciso local bonushp = 100000 -- quanto de bonus de life vai ganha local bonusmp = 100000 -- quanto de bonus de mana vai ganha local experience = 2 -- Experience rates no caso 2x a experiencia do seu servidor. local config = { --[Vocation] = ( Nova Vocation, New Outfit ) -- Naruto -- [1] = { 1, 704}, -- Sasuke -- [2] = { 2, 700}, -- Lee -- [3] = { 3, 736}, -- Sakura -- [4] = { 4, 170}, -- Gaara -- [5] = { 5, 719}, -- Neji -- [6] = { 6, 754}, -- Shisui -- [7] = { 7, 876}, -- Shikamaru -- [8] = { 8, 729}, -- Hinata -- [9] = { 9, 717}, -- Tenten -- [10] = { 10, 725}, -- Itachi -- [11] = { 11, 589}, -- Killer Bee -- [12] = { 12, 722}, -- Kakashi -- [13] = { 13, 744}, -- Madara -- [14] = { 14, 706}, -- Obito -- [15] = { 15, 1232}, -- Minato -- [16] = { 16, 705}, -- Kisame -- [17] = { 17, 708}, -- Raikage -- [18] = { 18, 1052}, -- Nagato -- [19] = { 19, 690}, -- Kankuro -- [20] = { 20, 713}, -- Kakuzo -- [21] = { 21, 467}, -- Temari -- [22] = { 22, 1055}, -- Tsunade -- [23] = { 23, 596}, -- Jiraya -- [24] = { 24, 520}, -- Kabuto -- [25] = { 25, 718}, -- Hagoromo -- [26] = { 26, 1189}, } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'akatsuki') then if getPlayerVocation(cid) ~= config then if getPlayerStorageValue(cid, 89745, 5) then if getPlayerLevel(cid) >= level then selfSay('Tem certeza de que quer se juntar a Akatsuki?.', cid) talkState[talkUser] = 1 else selfSay('Você nao é nem Sennin ainda , como quer entrar na akatsuki !? suma da minha frente!', cid) end else selfSay('Você já faz parte da Akatsuki!', cid) end else selfSay('Não preciso de você agora!', cid) end end if talkState[talkUser] == 1 and msgcontains(msg, 'yes') then selfSay('Para provar a sua lealdade, você tem que trazer '..quantidade..' {fragments}.', cid) talkState[talkUser] = 2 end if talkState[talkUser] == 2 and msgcontains(msg, 'fragments') then if getPlayerItemCount(cid, 12073) >= 10 then local voc = config[getPlayerVocation(cid)] doPlayerSetVocation(cid, voc[1]) local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+bonushp) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+bonusmp) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerRemoveItem(cid, 12073, 10) doCreatureAddMana(cid, getCreatureMaxMana(cid)) setPlayerStorageValue(cid,8974555,6) doPlayerSetExperienceRate(cid, experience) selfSay('Parabéns agora você é um membro da Akatsuki.', cid) talkState[talkUser] = 0 else selfSay('Não adianta me enganar, você não tem '..quantidade..' fragments, vai atrás, e só volte com eles.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Sennin System: Mostrar conteúdo oculto 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(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid --------------------------script-------------------------------- if msgcontains(msg, "elementos") then if getPlayerStorageValue(cid, 89745) > 4 then npcHandler:say("Voce ja é um sennin!", cid) return TRUE end npcHandler:say("Voce tem os seguintes items: {katon parchment}, {doton parchment} e {suiton parchment}? {yes} or {no}.", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "no") and talkState[talkUser] == 1 then npcHandler:say("Traga os elementos das torres, para se tornar um sennin.", cid) talkState[talkUser] = 0 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then if doPlayerRemoveItem(cid, 2193, 1) == TRUE and doPlayerRemoveItem(cid, 2218, 1) == TRUE and doPlayerRemoveItem(cid, 3957, 1) == TRUE then npcHandler:say("Muito Bem shinobi! agora voce é um sennin!", cid) setPlayerStorageValue(cid, 89745, 5) doPlayerAddItem(cid, 7464, 1) talkState[talkUser] = 0 else npcHandler:say("Voce nao tem os 3 elementos! ache as 3 torres dos elementos {katon}, {doton} e {suiton} e me traga os items!", cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) !Saga: Mostrar conteúdo oculto local saga = { -- Naruto --- [1] = {898, 900, 901, 903, 904, 905, 906, 907, 908, 909, 626}, -- Sasuke --- [2] = {1196, 1198, 1197, 306, 1199, 1202, 1200, 1204, 1206, 1205, 949, 816}, -- Lee --- [3] = {80, 190, 83, 191, 192, 193, 392, 330, 519, 559, 560, 808}, -- Sakura --- [4] = {174, 175, 195, 173, 172, 701, 171}, -- Gaara --- [5] = {52, 53, 72, 62, 189, 188, 518}, -- Neji --- [6] = {102, 103, 105, 107, 563, 564, 314}, -- Shisui --- [7] = {858, 859, 861, 862, 864, 865, 867, 868, 872, 873, 874, 875}, -- Shikamaru --- [8] = {88, 341, 343, 342, 344, 345}, -- Hinata --- [9] = {295, 296, 297, 723, 548, 749, 300}, -- Tenten --- [10] = {384, 385, 390, 386}, -- Itachi --- [11] = {96, 97, 98, 284, 100, 283, 211, 806, 807}, -- Killer Bee --- [12] = {583, 584, 585, 586, 614, 615, 616, 617, 618, 619, 620}, -- Kakashi --- [13] = {9, 11, 12, 13, 532, 14, 526, 527, 813, 814}, -- Madara --- [14] = {452, 454, 453, 455, 457, 458, 456, 459, 460, 595}, -- Obito --- [15] = {35, 476, 477, 478, 479, 480, 1115, 1116, 1123, 1117, 1232, 1118, 1119, 1120, 1121, 1122}, -- Minato --- [16] = {437, 438, 439, 440, 443, 517}, -- Kisame --- [17] = {421, 411, 412, 413, 422, 423, 424, 709, 420, 660}, -- Raikage --- [18] = {882, 883, 884, 886, 889, 890}, -- Nagato --- [19] = {1270, 1271, 1272, 1273, 1274, 1275}, -- Kankuro --- [20] = {309, 312, 311, 324, 319, 326, 328}, -- Kakuzo --- [21] = {465, 471, 357, 470, 551}, -- Temari --- [22] = {378, 379, 380, 381, 382}, -- Tsunade --- [23] = {534, 535, 536, 537, 538, 539, 540, 590, 591, 592, 593, 594}, -- Jiraya --- [24] = {793, 794, 795, 796, 798, 799, 800, 801, 802, 804}, -- Kabuto --- [25] = {817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828}, -- Hagoromo --- [26] = {1093, 1094, 1095, 1097, 1098, 1099, 1100, 1101, 1102, 1103}, } local level = 200 -- Limite para liberar uma saga nova function onSay(cid, words, param, channel) if exhaustion.check(cid, 120) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 3) return TRUE end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") exhaustion.set(cid, 120, 0.5) return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") exhaustion.set(cid, 120, 0.5) return true end if getPlayerLevel(cid) >= (tonumber(t[1])*level) then doCreatureChangeOutfit(cid, {lookType = saga[getPlayerVocation(cid)][tonumber(t[1])]}) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) exhaustion.set(cid, 120, 0.5) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") end return true end Spoiler local config = { --[vocation id] = { level, nova voc, looktype, efeito} -- Naruto -- [1] = { 25, 2, 199, 122}, [2] = { 50, 3, 769, 122}, [3] = { 75, 4, 198, 122}, [4] = { 100, 5, 201, 122}, [5] = { 125, 6, 309, 122}, [6] = { 150, 7, 797, 122}, [7] = { 175, 8, 303, 122}, [8] = { 200, 9, 301, 122}, [9] = { 225, 10, 771, 122}, [10] = { 250, 11, 751, 122}, [11] = { 275, 12, 308, 122}, [12] = { 300, 13, 197, 122}, [13] = { 325, 14, 196, 122}, [14] = { 350, 15, 291, 122}, [15] = { 400, 16, 207, 122}, -- Sasuke -- [19] = { 25, 19, 240, 110}, [19] = { 50, 20, 240, 110}, [20] = { 70, 21, 774, 110}, [21] = { 75, 22, 311, 110}, [22] = { 100, 23, 241, 110}, [23] = { 125, 24, 773, 110}, [24] = { 150, 25, 762, 110}, [25] = { 175, 26, 312, 110}, [26] = { 200, 27, 314, 110}, [27] = { 225, 28, 315, 110}, [28] = { 250, 29, 315, 110}, [29] = { 275, 30, 316, 110}, [30] = { 300, 31, 292, 110}, [31] = { 325, 32, 295, 110}, [32] = { 350, 33, 317, 110}, [33] = { 400, 34, 296, 110}, -- Lee -- [35] = { 25, 35, 325, 110}, [35] = { 50, 36, 324, 110}, [36] = { 70, 37, 323, 110}, [37] = { 75, 38, 322, 110}, [38] = { 100, 39, 321, 110}, [39] = { 125, 40, 320, 110}, [40] = { 150, 41, 319, 110}, [41] = { 200, 42, 745, 110}, [42] = { 255, 43, 726, 110}, [43] = { 350, 44, 318, 110}, [44] = { 400, 45, 294, 110}, -- Shikamaru -- [47] = { 25, 47, 251, 122}, [47] = { 50, 48, 251, 122}, [48] = { 75, 49, 243, 122}, [49] = { 100, 50, 245, 122}, [50] = { 125, 51, 242, 122}, [51] = { 150, 52, 246, 122}, [52] = { 175, 53, 247, 122}, [53] = { 220, 54, 248, 122}, [54] = { 275, 55, 249, 122}, -- Minato -- [58] = { 25, 58, 329, 122}, [58] = { 75, 59, 332, 122}, [59] = { 125, 60, 330, 122}, [60] = { 175, 61, 331, 122}, [61] = { 225, 62, 333, 122}, [62] = { 275, 63, 334, 122}, [63] = { 375, 64, 335, 122}, [64] = { 450, 65, 300, 122}, -- Sakura -- [70] = { 25, 70, 722, 122}, [70] = { 50, 71, 723, 122}, [71] = { 75, 72, 255, 122}, [73] = { 100, 74, 254, 122}, -- Neji -- [80] = { 25, 80, 760, 122}, [80] = { 50, 81, 759, 122}, [81] = { 75, 82, 758, 122}, [82] = { 100, 83, 757, 122}, [83] = { 125, 84, 756, 122}, [84] = { 150, 85, 755, 122}, [85] = { 175, 86, 754, 122}, [86] = { 225, 87, 253, 122}, [88] = { 350, 89, 252, 122}, -- Tenten -- [94] = { 25, 94, 718, 122}, [94] = { 50, 95, 717, 122}, [95] = { 75, 96, 716, 122}, [96] = { 100, 97, 715, 122}, [97] = { 125, 98, 714, 122}, [98] = { 150, 99, 713, 122}, [99] = { 175, 100, 712, 122}, [100] = { 220, 101, 711, 122}, [101] = { 300, 102, 710, 122}, -- Hinata -- [110] = { 25, 110, 709, 122}, [110] = { 50, 111, 708, 122}, [111] = { 75, 112, 707, 122}, [112] = { 100, 113, 706, 122}, [113] = { 125, 114, 704, 122}, [114] = { 150, 115, 703, 122}, [115] = { 175, 116, 702, 122}, [116] = { 200, 117, 701, 122}, [117] = { 225, 118, 700, 122}, [118] = { 275, 119, 700, 122}, -- Jyraia -- [128] = { 25, 128, 209, 122}, [128] = { 50, 129, 210, 122}, [129] = { 75, 130, 211, 122}, [130] = { 100, 131, 212, 122}, [131] = { 125, 132, 213, 122}, [132] = { 150, 133, 214, 122}, [133] = { 175, 134, 215, 122}, [134] = { 200, 135, 216, 122}, -- Killer Bee -- [165] = { 25, 165, 280, 122}, [165] = { 50, 166, 281, 122}, [166] = { 75, 167, 282, 122}, [167] = { 100, 168, 283, 122}, [168] = { 125, 169, 284, 122}, [169] = { 150, 170, 285, 122}, [170] = { 175, 171, 286, 122}, [171] = { 200, 172, 287, 122}, [172] = { 225, 173, 288, 122}, [173] = { 235, 174, 289, 122}, [174] = { 275, 175, 290, 122}, -- Itachi -- [180] = { 25, 180, 81, 122}, [180] = { 50, 181, 80, 122}, [181] = { 75, 182, 77, 122}, [182] = { 100, 183, 78, 122}, [183] = { 125, 184, 76, 122}, [184] = { 150, 185, 75, 122}, [185] = { 175, 186, 74, 122}, [186] = { 200, 187, 73, 122}, -- Tsunade -- [193] = { 25, 193, 267, 122}, [193] = { 50, 194, 268, 122}, [194] = { 75, 195, 269, 122}, [195] = { 100, 196, 270, 122}, [196] = { 125, 197, 271, 122}, [197] = { 150, 198, 272, 122}, [198] = { 175, 199, 273, 122}, [199] = { 200, 200, 274, 122}, [200] = { 225, 201, 275, 122}, [201] = { 235, 202, 276, 122}, -- Temari -- [211] = { 25, 211, 259, 122}, [211] = { 50, 212, 260, 122}, [212] = { 75, 213, 261, 122}, [213] = { 100, 214, 262, 122}, [214] = { 125, 215, 263, 122}, [215] = { 150, 216, 264, 122}, [216] = { 175, 217, 265, 122}, [217] = { 200, 218, 266, 122}, -- Madara -- [228] = { 25, 228, 10, 122}, [228] = { 50, 229, 11, 122}, [229] = { 75, 230, 12, 122}, [230] = { 100, 231, 13, 122}, [231] = { 125, 232, 14, 122}, [232] = { 150, 233, 15, 122}, [233] = { 175, 234, 15, 122}, [234] = { 200, 235, 338, 122}, -- Tobirama -- [412] = { 25, 412, 739, 122}, [412] = { 50, 413, 738, 122}, [413] = { 75, 414, 194, 122}, [414] = { 100, 415, 193, 122}, [415] = { 125, 416, 192, 122}, [416] = { 150, 417, 191, 122}, [417] = { 175, 418, 188, 122}, [418] = { 200, 419, 187, 122}, -- Raikage -- [239] = { 25, 239, 87, 122}, [239] = { 50, 240, 88, 122}, [240] = { 75, 241, 89, 122}, [241] = { 100, 242, 90, 122}, [242] = { 125, 243, 91, 122}, [243] = { 150, 244, 179, 122}, [244] = { 175, 245, 178, 122}, [245] = { 200, 246, 177, 122}, [246] = { 200, 247, 176, 122}, [247] = { 200, 248, 99, 122}, -- Hashirama -- [254] = { 25, 254, 16, 122}, [254] = { 50, 255, 17, 122}, [255] = { 75, 256, 18, 122}, [256] = { 100, 257, 19, 122}, [257] = { 125, 258, 20, 122}, [258] = { 150, 259, 21, 122}, [259] = { 175, 260, 22, 122}, [260] = { 200, 261, 23, 122}, [261] = { 200, 262, 24, 122}, -- Ino -- [272] = { 25, 272, 799, 122}, [272] = { 50, 273, 2, 122}, [273] = { 75, 274, 3, 122}, [274] = { 100, 275, 4, 122}, [275] = { 125, 276, 5, 122}, [276] = { 150, 277, 6, 122}, [277] = { 175, 278, 7, 122}, [278] = { 200, 279, 8, 122}, -- Sai -- [315] = { 25, 315, 625, 122}, [315] = { 50, 316, 624, 122}, [316] = { 75, 317, 623, 122}, [317] = { 100, 318, 622, 122}, [318] = { 125, 319, 621, 122}, [319] = { 150, 320, 620, 122}, -- Chouji -- [295] = { 25, 295, 635, 122}, [295] = { 50, 296, 634, 122}, [296] = { 75, 297, 633, 122}, [297] = { 100, 298, 632, 122}, [298] = { 125, 299, 631, 122}, [299] = { 150, 300, 630, 122}, [300] = { 175, 301, 616, 122}, [301] = { 200, 302, 615, 122}, -- Shino -- [285] = { 25, 285, 53, 122}, [285] = { 50, 286, 54, 122}, [286] = { 75, 287, 55, 122} } local t = { -- voc = {da vocação, até a vocação}, o lookType será = X [1] = {voc = {1,15}, lookType = 261}, [2] = {voc = {19,33}, lookType = 761}, [3] = {voc = {35,44}, lookType = 86}, [4] = {voc = {47,54}, lookType = 364}, [5] = {voc = {58,64}, lookType = 336}, [6] = {voc = {70,73}, lookType = 122}, [7] = {voc = {80,88}, lookType = 84}, [8] = {voc = {94,101}, lookType = 83}, [9] = {voc = {110,118}, lookType = 362}, [10] = {voc = {128,142}, lookType = 52}, [11] = {voc = {165,174}, lookType = 82}, [12] = {voc = {180,186}, lookType = 76}, [13] = {voc = {193,201}, lookType = 798}, [14] = {voc = {211,217}, lookType = 85}, [15] = {voc = {228,234}, lookType = 366}, [16] = {voc = {412,418}, lookType = 182}, [17] = {voc = {239,247}, lookType = 208}, [18] = {voc = {254,261}, lookType = 363}, [19] = {voc = {295,301}, lookType = 390}, [20] = {voc = {272,278}, lookType = 9} } local tempo = 15 -- em segundos function onSay(cid, words, param, channel) local p = getPlayerPosition(cid) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") doSendMagicEffect(p, CONST_ME_POFF) return true end param = param:lower() local voc = config[getPlayerVocation(cid)] local outfit = getCreatureOutfit(cid) if getPlayerStorageValue(cid, 23481) - os.time() > 0 then doPlayerSendCancel(cid, "Você tem que esperar " .. tempo .. " segundos para usar o comando novamente.") doSendMagicEffect(p, CONST_ME_POFF) return true end if getPlayerStorageValue(cid, 8974555) == -1 then doPlayerSendCancel(cid, "Você não é da Akatsuki!") doSendMagicEffect(p, CONST_ME_POFF) return true end if setAkatsuki(cid, t) == nil then return true end if param == 'on' then outfit.lookType = setAkatsuki(cid, t) doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, "Você virou um Akatsuki!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 23481, tempo + os.time()) return true elseif param == 'off' then outfit.lookType = voc[3] doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, "Você voltou ao normal!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 23481, tempo + os.time()) return true end end function setAkatsuki(cid, table) local vocs = getPlayerVocation(cid) for i, v in pairs(table) do if v.voc[1] <= vocs and v.voc[2] >= vocs then return v.lookType end end return nil end Só mudar as storages Creditos @Dwarfer link do post O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Novembro 8, 2017 7 anos Autor 18 minutos atrás, ZikaLord disse: Ocultar conteúdo local config = { --[vocation id] = { level, nova voc, looktype, efeito} -- Naruto -- [1] = { 25, 2, 199, 122}, [2] = { 50, 3, 769, 122}, [3] = { 75, 4, 198, 122}, [4] = { 100, 5, 201, 122}, [5] = { 125, 6, 309, 122}, [6] = { 150, 7, 797, 122}, [7] = { 175, 8, 303, 122}, [8] = { 200, 9, 301, 122}, [9] = { 225, 10, 771, 122}, [10] = { 250, 11, 751, 122}, [11] = { 275, 12, 308, 122}, [12] = { 300, 13, 197, 122}, [13] = { 325, 14, 196, 122}, [14] = { 350, 15, 291, 122}, [15] = { 400, 16, 207, 122}, -- Sasuke -- [19] = { 25, 19, 240, 110}, [19] = { 50, 20, 240, 110}, [20] = { 70, 21, 774, 110}, [21] = { 75, 22, 311, 110}, [22] = { 100, 23, 241, 110}, [23] = { 125, 24, 773, 110}, [24] = { 150, 25, 762, 110}, [25] = { 175, 26, 312, 110}, [26] = { 200, 27, 314, 110}, [27] = { 225, 28, 315, 110}, [28] = { 250, 29, 315, 110}, [29] = { 275, 30, 316, 110}, [30] = { 300, 31, 292, 110}, [31] = { 325, 32, 295, 110}, [32] = { 350, 33, 317, 110}, [33] = { 400, 34, 296, 110}, -- Lee -- [35] = { 25, 35, 325, 110}, [35] = { 50, 36, 324, 110}, [36] = { 70, 37, 323, 110}, [37] = { 75, 38, 322, 110}, [38] = { 100, 39, 321, 110}, [39] = { 125, 40, 320, 110}, [40] = { 150, 41, 319, 110}, [41] = { 200, 42, 745, 110}, [42] = { 255, 43, 726, 110}, [43] = { 350, 44, 318, 110}, [44] = { 400, 45, 294, 110}, -- Shikamaru -- [47] = { 25, 47, 251, 122}, [47] = { 50, 48, 251, 122}, [48] = { 75, 49, 243, 122}, [49] = { 100, 50, 245, 122}, [50] = { 125, 51, 242, 122}, [51] = { 150, 52, 246, 122}, [52] = { 175, 53, 247, 122}, [53] = { 220, 54, 248, 122}, [54] = { 275, 55, 249, 122}, -- Minato -- [58] = { 25, 58, 329, 122}, [58] = { 75, 59, 332, 122}, [59] = { 125, 60, 330, 122}, [60] = { 175, 61, 331, 122}, [61] = { 225, 62, 333, 122}, [62] = { 275, 63, 334, 122}, [63] = { 375, 64, 335, 122}, [64] = { 450, 65, 300, 122}, -- Sakura -- [70] = { 25, 70, 722, 122}, [70] = { 50, 71, 723, 122}, [71] = { 75, 72, 255, 122}, [73] = { 100, 74, 254, 122}, -- Neji -- [80] = { 25, 80, 760, 122}, [80] = { 50, 81, 759, 122}, [81] = { 75, 82, 758, 122}, [82] = { 100, 83, 757, 122}, [83] = { 125, 84, 756, 122}, [84] = { 150, 85, 755, 122}, [85] = { 175, 86, 754, 122}, [86] = { 225, 87, 253, 122}, [88] = { 350, 89, 252, 122}, -- Tenten -- [94] = { 25, 94, 718, 122}, [94] = { 50, 95, 717, 122}, [95] = { 75, 96, 716, 122}, [96] = { 100, 97, 715, 122}, [97] = { 125, 98, 714, 122}, [98] = { 150, 99, 713, 122}, [99] = { 175, 100, 712, 122}, [100] = { 220, 101, 711, 122}, [101] = { 300, 102, 710, 122}, -- Hinata -- [110] = { 25, 110, 709, 122}, [110] = { 50, 111, 708, 122}, [111] = { 75, 112, 707, 122}, [112] = { 100, 113, 706, 122}, [113] = { 125, 114, 704, 122}, [114] = { 150, 115, 703, 122}, [115] = { 175, 116, 702, 122}, [116] = { 200, 117, 701, 122}, [117] = { 225, 118, 700, 122}, [118] = { 275, 119, 700, 122}, -- Jyraia -- [128] = { 25, 128, 209, 122}, [128] = { 50, 129, 210, 122}, [129] = { 75, 130, 211, 122}, [130] = { 100, 131, 212, 122}, [131] = { 125, 132, 213, 122}, [132] = { 150, 133, 214, 122}, [133] = { 175, 134, 215, 122}, [134] = { 200, 135, 216, 122}, -- Killer Bee -- [165] = { 25, 165, 280, 122}, [165] = { 50, 166, 281, 122}, [166] = { 75, 167, 282, 122}, [167] = { 100, 168, 283, 122}, [168] = { 125, 169, 284, 122}, [169] = { 150, 170, 285, 122}, [170] = { 175, 171, 286, 122}, [171] = { 200, 172, 287, 122}, [172] = { 225, 173, 288, 122}, [173] = { 235, 174, 289, 122}, [174] = { 275, 175, 290, 122}, -- Itachi -- [180] = { 25, 180, 81, 122}, [180] = { 50, 181, 80, 122}, [181] = { 75, 182, 77, 122}, [182] = { 100, 183, 78, 122}, [183] = { 125, 184, 76, 122}, [184] = { 150, 185, 75, 122}, [185] = { 175, 186, 74, 122}, [186] = { 200, 187, 73, 122}, -- Tsunade -- [193] = { 25, 193, 267, 122}, [193] = { 50, 194, 268, 122}, [194] = { 75, 195, 269, 122}, [195] = { 100, 196, 270, 122}, [196] = { 125, 197, 271, 122}, [197] = { 150, 198, 272, 122}, [198] = { 175, 199, 273, 122}, [199] = { 200, 200, 274, 122}, [200] = { 225, 201, 275, 122}, [201] = { 235, 202, 276, 122}, -- Temari -- [211] = { 25, 211, 259, 122}, [211] = { 50, 212, 260, 122}, [212] = { 75, 213, 261, 122}, [213] = { 100, 214, 262, 122}, [214] = { 125, 215, 263, 122}, [215] = { 150, 216, 264, 122}, [216] = { 175, 217, 265, 122}, [217] = { 200, 218, 266, 122}, -- Madara -- [228] = { 25, 228, 10, 122}, [228] = { 50, 229, 11, 122}, [229] = { 75, 230, 12, 122}, [230] = { 100, 231, 13, 122}, [231] = { 125, 232, 14, 122}, [232] = { 150, 233, 15, 122}, [233] = { 175, 234, 15, 122}, [234] = { 200, 235, 338, 122}, -- Tobirama -- [412] = { 25, 412, 739, 122}, [412] = { 50, 413, 738, 122}, [413] = { 75, 414, 194, 122}, [414] = { 100, 415, 193, 122}, [415] = { 125, 416, 192, 122}, [416] = { 150, 417, 191, 122}, [417] = { 175, 418, 188, 122}, [418] = { 200, 419, 187, 122}, -- Raikage -- [239] = { 25, 239, 87, 122}, [239] = { 50, 240, 88, 122}, [240] = { 75, 241, 89, 122}, [241] = { 100, 242, 90, 122}, [242] = { 125, 243, 91, 122}, [243] = { 150, 244, 179, 122}, [244] = { 175, 245, 178, 122}, [245] = { 200, 246, 177, 122}, [246] = { 200, 247, 176, 122}, [247] = { 200, 248, 99, 122}, -- Hashirama -- [254] = { 25, 254, 16, 122}, [254] = { 50, 255, 17, 122}, [255] = { 75, 256, 18, 122}, [256] = { 100, 257, 19, 122}, [257] = { 125, 258, 20, 122}, [258] = { 150, 259, 21, 122}, [259] = { 175, 260, 22, 122}, [260] = { 200, 261, 23, 122}, [261] = { 200, 262, 24, 122}, -- Ino -- [272] = { 25, 272, 799, 122}, [272] = { 50, 273, 2, 122}, [273] = { 75, 274, 3, 122}, [274] = { 100, 275, 4, 122}, [275] = { 125, 276, 5, 122}, [276] = { 150, 277, 6, 122}, [277] = { 175, 278, 7, 122}, [278] = { 200, 279, 8, 122}, -- Sai -- [315] = { 25, 315, 625, 122}, [315] = { 50, 316, 624, 122}, [316] = { 75, 317, 623, 122}, [317] = { 100, 318, 622, 122}, [318] = { 125, 319, 621, 122}, [319] = { 150, 320, 620, 122}, -- Chouji -- [295] = { 25, 295, 635, 122}, [295] = { 50, 296, 634, 122}, [296] = { 75, 297, 633, 122}, [297] = { 100, 298, 632, 122}, [298] = { 125, 299, 631, 122}, [299] = { 150, 300, 630, 122}, [300] = { 175, 301, 616, 122}, [301] = { 200, 302, 615, 122}, -- Shino -- [285] = { 25, 285, 53, 122}, [285] = { 50, 286, 54, 122}, [286] = { 75, 287, 55, 122} } local t = { -- voc = {da vocação, até a vocação}, o lookType será = X [1] = {voc = {1,15}, lookType = 261}, [2] = {voc = {19,33}, lookType = 761}, [3] = {voc = {35,44}, lookType = 86}, [4] = {voc = {47,54}, lookType = 364}, [5] = {voc = {58,64}, lookType = 336}, [6] = {voc = {70,73}, lookType = 122}, [7] = {voc = {80,88}, lookType = 84}, [8] = {voc = {94,101}, lookType = 83}, [9] = {voc = {110,118}, lookType = 362}, [10] = {voc = {128,142}, lookType = 52}, [11] = {voc = {165,174}, lookType = 82}, [12] = {voc = {180,186}, lookType = 76}, [13] = {voc = {193,201}, lookType = 798}, [14] = {voc = {211,217}, lookType = 85}, [15] = {voc = {228,234}, lookType = 366}, [16] = {voc = {412,418}, lookType = 182}, [17] = {voc = {239,247}, lookType = 208}, [18] = {voc = {254,261}, lookType = 363}, [19] = {voc = {295,301}, lookType = 390}, [20] = {voc = {272,278}, lookType = 9} } local tempo = 15 -- em segundos function onSay(cid, words, param, channel) local p = getPlayerPosition(cid) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") doSendMagicEffect(p, CONST_ME_POFF) return true end param = param:lower() local voc = config[getPlayerVocation(cid)] local outfit = getCreatureOutfit(cid) if getPlayerStorageValue(cid, 23481) - os.time() > 0 then doPlayerSendCancel(cid, "Você tem que esperar " .. tempo .. " segundos para usar o comando novamente.") doSendMagicEffect(p, CONST_ME_POFF) return true end if getPlayerStorageValue(cid, 8974555) == -1 then doPlayerSendCancel(cid, "Você não é da Akatsuki!") doSendMagicEffect(p, CONST_ME_POFF) return true end if setAkatsuki(cid, t) == nil then return true end if param == 'on' then outfit.lookType = setAkatsuki(cid, t) doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, "Você virou um Akatsuki!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 23481, tempo + os.time()) return true elseif param == 'off' then outfit.lookType = voc[3] doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, "Você voltou ao normal!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 23481, tempo + os.time()) return true end end function setAkatsuki(cid, table) local vocs = getPlayerVocation(cid) for i, v in pairs(table) do if v.voc[1] <= vocs and v.voc[2] >= vocs then return v.lookType end end return nil end Só mudar as storages Creditos @Dwarfer link do post É a parte que eu mais me complico ( Storage ) , mudo tudo ? Para a Storage do Akatsuki System ?
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.