Ir para conteúdo

Featured Replies

Postado

Olá, eu estou querendo por pra aparecer akatsuki no look de um membro da akatsuki, e pra ele perder a akatsuki e retornar para a vocação antiga quando morrer x vezes

Quem me ajudar agradeço.

Script System Akatsuki:

-- 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 = 200 -- Level preciso pra entra para akatsuki
local itemid = 5943 -- id do coração
local quantidade = 6 -- quantos hearts e preciso
local bonushp = 20000 -- quanto de bonus de life vai ganha
local bonusmp = 20000 -- quanto de bonus de mana vai ganha
local experience = 10 -- Experience rates no caso 2x a experiencia do seu servidor.
local config = {
--[Vocation] = ( Nova Vocation, New Outfit )
-- Naruto --
[1] = { 1001, 1054},
[2] = { 1001, 1054},
[3] = { 1001, 1054},
[4] = { 1001, 1054},
[5] = { 1001, 1054},
[6] = { 1001, 1054},
[7] = { 1001, 1054},
[8] = { 1001, 1054},
[9] = { 1001, 1054},
[10] = { 1001, 1054},
[11] = { 1001, 1054},
[12] = { 1001, 1054},
[13] = { 1001, 1054},
[14] = { 1001, 1054},
[15] = { 1001, 1054},
-- Sasuke --
[17] = { 1002, 1039},
[18] = { 1002, 1039},
[19] = { 1002, 1039},
[20] = { 1002, 1039},
[21] = { 1002, 1039},
[22] = { 1002, 1039},
[23] = { 1002, 1039},
[24] = { 1002, 1039},
[25] = { 1002, 1039},
[26] = { 1002, 1039},
-- Lee --
[27] = { 1003, 1062},
[28] = { 1003, 1062},
[29] = { 1003, 1062},
[30] = { 1003, 1062},
[31] = { 1003, 1062},
[32] = { 1003, 1062},
[33] = { 1003, 1062},
[34] = { 1003, 1062},
[35] = { 1003, 1062},
[36] = { 1003, 1062},
[37] = { 1003, 1062},
[38] = { 1003, 1062},
-- Shikamaru --
[39] = { 1004, 1051},
[40] = { 1004, 1051},
[41] = { 1004, 1051},
[42] = { 1004, 1051},
[43] = { 1004, 1051},
[44] = { 1004, 1051},
[45] = { 1004, 1051},
[446] = { 1004, 1051},
[447] = { 1004, 1051},
[448] = { 1004, 1051},
[449] = { 1004, 1051},
[450] = { 1004, 1051},
-- Neji --
[46] = { 1005, 1067},
[47] = { 1005, 1067},
[48] = { 1005, 1067},
[49] = { 1005, 1067},
[50] = { 1005, 1067},
[51] = { 1005, 1067},
[52] = { 1005, 1067},
[53] = { 1005, 1067},
[54] = { 1005, 1067},
-- Tenten --
[55] = { 1006, 1048},
[56] = { 1006, 1048},
[57] = { 1006, 1048},
[58] = { 1006, 1048},
[59] = { 1006, 1048},
[60] = { 1006, 1048},
[61] = { 1006, 1048},
[62] = { 1006, 1048},
[63] = { 1006, 1048},
-- Hinata --
[64] = { 1007, 1044},
[65] = { 1007, 1044},
[66] = { 1007, 1044},
[67] = { 1007, 1044},
[68] = { 1007, 1044},
[69] = { 1007, 1044},
[70] = { 1007, 1044},
[71] = { 1007, 1044},
[72] = { 1007, 1044},
[73] = { 1007, 1044},
[74] = { 1007, 1044},
[75] = { 1007, 1044},
-- Kakashi --
[76] = { 1008, 1053},
[77] = { 1008, 1053},
[78] = { 1008, 1053},
[79] = { 1008, 1053},
[80] = { 1008, 1053},
[81] = { 1008, 1053},
[82] = { 1008, 1053},
[83] = { 1008, 1053},
[884] = { 1008, 1053},
[885] = { 1008, 1053},
[886] = { 1008, 1053},
[887] = { 1008, 1053},
[888] = { 1008, 1053},
[889] = { 1008, 1053},
[890] = { 1008, 1053},
-- Killer Bee --
[84] = { 1009, 1047},
[85] = { 1009, 1047},
[86] = { 1009, 1047},
[87] = { 1009, 1047},
[88] = { 1009, 1047},
[89] = { 1009, 1047},
[90] = { 1009, 1047},
[91] = { 1009, 1047},
[92] = { 1009, 1047},
[93] = { 1009, 1047},
[94] = { 1009, 1047},
[95] = { 1009, 1047},
-- Sakura --
[96] = { 1010, 1055},
[97] = { 1010, 1055},
[98] = { 1010, 1055},
[99] = { 1010, 1055},
[100] = { 1010, 1055},
[101] = { 1010, 1055},
[102] = { 1010, 1055},
[103] = { 1010, 1055},
[104] = { 1010, 1055},
[106] = { 1010, 1055},
[107] = { 1010, 1055},
[108] = { 1010, 1055},
[109] = { 1010, 1055},
[110] = { 1010, 1055},
-- Gaara --
[111] = { 1011, 1075},
[112] = { 1011, 1075},
[113] = { 1011, 1075},
[114] = { 1011, 1075},
[115] = { 1011, 1075},
[116] = { 1011, 1075},
[117] = { 1011, 1075},
[118] = { 1011, 1075},
[119] = { 1011, 1075},
[120] = { 1011, 1075},
[121] = { 1011, 1075},
[122] = { 1011, 1075},
-- Kiba --
[123] = { 1012, 1042},
[124] = { 1012, 1042},
[125] = { 1012, 1042},
[126] = { 1012, 1042},
[127] = { 1012, 1042},
[128] = { 1012, 1042},
[129] = { 1012, 1042},
[130] = { 1012, 1042},
[131] = { 1012, 1042},
-- Itachi --
[132] = { 1013, 1063},
[133] = { 1013, 1063},
[134] = { 1013, 1063},
[135] = { 1013, 1063},
[136] = { 1013, 1063},
[137] = { 1013, 1063},
[138] = { 1013, 1063},
[139] = { 1013, 1063},
[140] = { 1013, 1063},
[141] = { 1013, 1063},
-- Tsunade --
[175] = { 1014, 1038},
[176] = { 1014, 1038},
[177] = { 1014, 1038},
[178] = { 1014, 1038},
[179] = { 1014, 1038},
[180] = { 1014, 1038},
[181] = { 1014, 1038},
[182] = { 1014, 1038},
[183] = { 1014, 1038},
[184] = { 1014, 1038},
[185] = { 1014, 1038},
-- Madara --
[164] = { 1015, 1064},
[165] = { 1015, 1064},
[166] = { 1015, 1064},
[167] = { 1015, 1064},
[168] = { 1015, 1064},
[169] = { 1015, 1064},
[170] = { 1015, 1064},
[171] = { 1015, 1064},
[172] = { 1015, 1064},
[173] = { 1015, 1064},
[174] = { 1015, 1064},
-- Yamato --
[211] = { 1016, 1068},
[212] = { 1016, 1068},
[213] = { 1016, 1068},
[214] = { 1016, 1068},
[215] = { 1016, 1068},
[216] = { 1016, 1068},
-- Temari --
[231] = { 1017, 1057},
[232] = { 1017, 1057},
[233] = { 1017, 1057},
[234] = { 1017, 1057},
[235] = { 1017, 1057},
[236] = { 1017, 1057},
[237] = { 1017, 1057},
[238] = { 1017, 1057},
-- Kankuro --
[239] = { 1018, 1043},
[240] = { 1018, 1043},
[241] = { 1018, 1043},
[242] = { 1018, 1043},
[243] = { 1018, 1043},
[244] = { 1018, 1043},
[245] = { 1018, 1043},
[246] = { 1018, 1043},
[247] = { 1018, 1043},
-- Orochimaru --
[248] = { 1019, 1072},
[249] = { 1019, 1072},
[250] = { 1019, 1072},
[251] = { 1019, 1072},
[252] = { 1019, 1072},
[253] = { 1019, 1072},
[254] = { 1019, 1072},
[255] = { 1019, 1072},
[256] = { 1019, 1072},
}
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, 395897) == -1 then
            if getPlayerLevel(cid) >= level then
                selfSay('Tem certeza de que quer se juntar a Akatsuki?.', cid)
                talkState[talkUser] = 1
            else
                selfSay('Você nem sabe o nível que é pra entrar na akatsuki, suma da minha frente seu idiota.', 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..' {coraçao}.', cid)
    talkState[talkUser] = 2
end
 
if talkState[talkUser] == 2 and msgcontains(msg, 'coracao') then
    if getPlayerItemCount(cid, 5943) >= 6 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, 5943, 6)
        doCreatureAddMana(cid, getCreatureMaxMana(cid))
        setPlayerStorageValue(cid,395897,6)
        doPlayerSetExperienceRate(cid, experience) 
        selfSay('Parabéns agora você faz parte da Akatsuki.', cid)
        talkState[talkUser] = 0
    else
        selfSay('Não adianta me enganar, você não tem '..quantidade..' corações, vai atrás, e só volte com eles.', cid)
    end
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

  • 2 weeks later...
Postado

@DEKU KUNNNN 

Spoiler

local tab= {[1] = {395897, "Akatsuki"}}
function onLook(cid, thing, position, lookDistance)
    if isPlayer(thing.uid) then
    local type = getPlayerStorageValue(thing.uid, 89745)
    var = (type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Captain Anbu")
        for s,k in ipairs(tab) do
            if getPlayerStorageValue(thing.uid, k[1]) > 0 then
                var = k[2]
            end
        end
        doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "She" or "He").." is "..var)
    end
    return true
end

 

Inicialmente é para ser isso a parte do look. Se não conseguir adicionar me mande seu creaturescripts/showvoc.lua

VlVKQKC.png&key=d5c17620ae9567a1f898dd7a

 

 

 

  • 532144234_Logo_NTO_BLOOD_Finish_HIM_By_Antonio_Luckas(3).png.fd58d1af125a7e82ccdd751637e9ca93.png

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo