Postado Outubro 11, 2018 6 anos Em 17/02/2018 em 12:35, Sttorm disse: local saga = { -- Naruto --- [1] = {840,91,841,676,842,40,842,40,305,677,686,179,683,397,607,752,875}, -- [ID DA VOCATION] = { ID DAS OUTFITS EM ORDEM } } local level = 5 -- 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 Mais essa script ta configurada para vir uma nova vocation a cada 5 leveis isso? eu queria colocar no meu servidor tipo 1 saga level 50, 2 saga level 150, e assim por diante teria como adicionar isso na script ou arrumar?
Postado Outubro 11, 2018 6 anos Autor 4 horas atrás, Hektor disse: Nessa linha aqui ó : local level = 5 -- Limite para liberar uma saga nova
Postado Outubro 11, 2018 6 anos Agora, C H R O N I C L E disse: Nessa linha aqui ó : local level = 5 -- Limite para liberar uma saga nova ta e como vou colocar tipo quero q a saga 1 seja lvl 50 a saga 2 seja lvl 150 como vou mudar isso?
Postado Outubro 12, 2018 6 anos Autor 1 hora atrás, Hektor disse: ta e como vou colocar tipo quero q a saga 1 seja lvl 50 a saga 2 seja lvl 150 como vou mudar isso? ai teria que editar a script.
Postado Outubro 12, 2018 6 anos Agora, C H R O N I C L E disse: ai teria que editar a script. e pq tipo tem a vocation do lee ela tem 27 saga ok mais dae tem tipo kakashi e gaara dae tem so 6 dae nao da pra ser em 50 em 50 entende!
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.