Postado Junho 23, 2018 6 anos Olá, meu script !saga que adquiri aqui no TK quando a pessoa reloga a talkactions buga mas não da erro nenhum na distro (se criar o personagem ou criar scroll e usar o comando ele não buga mas se relogar ele não funciona ai tem que relogar dnv pra desbugar) Script: Mostrar conteúdo oculto local saga = { -- [ID DA VOC] = { Naruto }, [1] = { 1103, 1093, 1141, 1140, 1139, 1095, 1094, 1092, 1128, 1133, 1131, 1129, 1138, 1137, 1148}, -- [ID DA VOC] = { Sasuke }, [2] = { 1408, 1406, 1398, 1405, 1404, 1403, 1402, 1401, 1409, 1396}, } local level = 50 -- 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 Junho 23, 2018 6 anos por King Laker (veja o histórico de edições) Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Junho 24, 2018 6 anos Se não da nenhum erro no Server Log fica mais difícil ajudar, só algum programador para tentar entender onde está o erro. Se você me apresentar algum erro na distro vou conseguir te ajudar! ?
Postado Junho 24, 2018 6 anos Autor @Cricket Não da nenhum erro mesmo, só quando o cara reloga dps de criar acc ou usar o pergaminho de vocação ele não consegue transformar ai tem que relogar.. é chato isso Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
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.