Ir para conteúdo

Refe

Conde
  • Total de itens

    645
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que Refe postou

  1. if not look then doSetItemAttribute(pb,"addon",0) end if look > 0 then doSetCreatureOutfit(pk, {lookType = look}, -1) end Deixa assim if look = 0 then doSetItemAttribute(pb,"addon",0) end if look > 1 then doSetCreatureOutfit(pk, {lookType = look}, -1) end else
  2. refaz o tutorial, dei uma atualizada.
  3. Explica direito arruma o goback. local pksz = getCreatureSummons(cid)[1] local pksc = getPlayerSlotItem(cid, 8).uid local pkss = getItemAttribute(bolaloka,"addon") if not pkss then doSetItemAttribute(pksc,"addon",0) end if pkss > 0 then doSetCreatureOutfit(pksz, {lookType = pkss}, -1) end para local pksz = getCreatureSummons(cid)[1] local pksc = getPlayerSlotItem(cid, 8).uid local pkss = getItemAttribute(pksc,"addon") if not pkss then doSetItemAttribute(pksc,"addon",0) end if pkss > 0 then doSetCreatureOutfit(pksz, {lookType = pkss}, -1) end
  4. Depois eu vou fazer uma modificaçao, e quando poe outro addon o primeiro some.
  5. Troca em movement/surf.lua: local balla = getPlayerSlotItem(cid, 8).uid local balladdon = getItemAttribute(balla,"addon") if not balladdon then doSetItemAttribute(balla,"addon",0) end if balladdon > 0 then doSetCreatureOutfit(cid, {lookType = balladdon}, -1) end Por: local pk = getCreatureSummons(cid)[1] local balla = getPlayerSlotItem(cid, 8).uid local balladdon = getItemAttribute(balla,"addon") if not balladdon then doSetItemAttribute(balla,"addon",0) end if balladdon > 0 then doSetCreatureOutfit(pk, {lookType = balladdon}, -1) end
  6. Se tiver alguma dúvida só comentar aqui, que eu faço um tutorial
  7. TFS 0.3.6
  8. Qual versão do tíbia ?
  9. Na verdade, eu não ligo para quem usa PDA, por isso eu não estou adaptando meus sistemas nem nada, tudo aqui é para o PDE que é open source, e tem como tirar o limite dos efeitos, sistemas mais elaborados, etc..
  10. Da uma revisada
  11. Edita a parte do order no actions Valeu pelo rep 100
  12. Troca: local addonfly = getPlayerSlotItem(cid, 8).uid local addofly = getItemAttribute(addonfly,"fly") if not addofly then doSetItemAttribute(addonfly,"addon",0) end if addofly > 0 then doSetCreatureOutfit(cid, {lookType = addofly}, -1) end Por: local addonfly = getPlayerSlotItem(cid, 8).uid local addofly = getItemAttribute(addonfly,"addonfly") if not addofly then doSetItemAttribute(addonfly,"addonfly",0) end if addofly > 0 then doSetCreatureOutfit(cid, {lookType = addofly}, -1) end
  13. Eu estou postando vários sistemas e tutoriais para o PDE. @Topic Adicionado: Lista de tutorias para o PDE
  14. É mais adaptada para o lado do PDA, então é mais simples, só retirar os bugs @Topic Atualizado lista de sistemas
  15. Hoje vou postar mais um sistema para o PDE Sistema da vez: Pokébolas com maior chance de catch dependendo do tipo do pokemon! Também vou ensinar a adicionar pokébolas Não pensei em um nome melhor, então vou chamar de: Ball System Adicionando novas Pokebolas: Pokébolas com maior chance de catch dependendo do tipo do pokemon! Créditos: @Ceetros (talvez ? ) @zipter98 (tive a ideia no tópico do @@Bluester, para acessar clique aqui)
  16. function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o nick.") return true end local t = string.explode(param, ",") t[2] = tonumber(t[2]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o numero de dias.") return true end local pid = cid if(t[1]) then pid = getPlayerByName(t[1]) if(not pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Nickname " .. t[1] .. " Nao encontrado.") return true end end if(t[2] > 365) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "So pode adicionar 365 Dias.") return true end sender = getPlayerByName(cid) doAddVipDays(pid, t[2]) doPlayerSendTextMessage(cid, "Voce Adicionou ".. t[2] .." dias de vip para ".. t[1]) doPlayerSendTextMessage(pid, sender .." adicionou ".. t[2] .." dias de vip para você.") return true end
  17. @@zNegativeX lib/order: Actions/order: Pois é, é bem fácil adaptar.
  18. Um momento. function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o nick.") return true end local t = string.explode(param, ",") t[2] = tonumber(t[2]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Falta o numero de dias.") return true end local pid = cid if(t[1]) then pid = getPlayerByNameWildcard(t[1]) if(not pid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Nickname " .. t[1] .. " Nao encontrado.") return true end end if(t[2] > 365) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "So pode adicionar 365 Dias.") return true end sender = getPlayerByNameWildcard(cid) doAddVipDays(pid, t[2]) doPlayerSendTextMessage(cid, "Voce Adicionou ".. t[2] .." dias de vip para ".. t[1]) doPlayerSendTextMessage(pid, sender .." adicionou ".. t[2] .." dias de vip para você.") return true end
  19. Você não modificou os arquivos como diz o tutorial ?
  20. Valeu, @@Bluester
  21. Vou listar os bugs, agora só vou postar os sistemas separados.
  22. o comando tem que ter nick, dias
  23. Põe seu order.lua no pastebin. @Topic Addons.lua arrumado para surf
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...