Ir para conteúdo

Cazuza

Membro
  • Registro em

  • Última visita

Tudo que Cazuza postou

  1. Cazuza postou uma resposta no tópico em Playground (Off-topic)
    Sempre te achei um grande membro, que contribuia muito para o TK. Espero que volte, e nunca abandone o velho tibia
  2. Obrigado! Simples e útil não é mesmo? Não fiz random por que é basicamente para pegar a outfit que você está usando, para ser a do NPC.
  3. @Absolute, para quem precisa criar NPCS é uma mão na roda.
  4. Tenta sem o .uid, só item Sinceramente era para funcionar.
  5. Nome: Gerador de Outfit Função: Devido a minha necessidade de criar OUTFITS para meus NPCS, e sem querer demorar muito criei essa Talkaction. Exemplo: Por exemplo, você quer que seu NPC tenha a roupa que você está usando, ou uma outra qualquer. Porem você não quer perder tempo, então você digita: /outfit e irá aparecer no seu CHAT: <look type="128" head="117" body="5" legs="0" feet="116" addons="1" mount="0"/> Pronto, só copiar e colar no seu npc. Versão: Testada somente na "10.31". (OTX Server - Galaxy) Créditos: Kazuza - (eu) Por ter criado. "Pasta Servidor > Data > TalkActions> Scripts" crie "Outfit.lua". OBS: Se tiver montaria use este: function onSay(cid, words, param) r = getCreatureOutfit(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '<look type="'..r.lookType..'" head="'..r.lookHead..'" body="'..r.lookBody..'" legs="'..r.lookLegs..'" feet="'..r.lookFeet..'" addons="'..r.lookAddons..'" mount="'..r.lookMount..'"/>') return true end Senão, use este: function onSay(cid, words, param) r = getCreatureOutfit(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, '<look type="'..r.lookType..'" head="'..r.lookHead..'" body="'..r.lookBody..'" legs="'..r.lookLegs..'" feet="'..r.lookFeet..'" addons="'..r.lookAddons..'"/>') return true end "Pasta Servidor > Data > TalkActions" em talkactions.xml adicione: <talkaction log="yes" group="4" access="3" words="/outfit" event="script" value="outfit.lua"/> Qualquer coisa que não tenha intendido, comente.
  6. addEvent(doTransformItem, 25 * 1000,item.uid, ID_DO_ITEM_AQUI )
  7. Por que o addEvent, pega a posição na hora que tu clicou. E não 4 segundos depois...
  8. @HallsSantos, hahaha. Valeu, ele ia morrer tentando e nunca ia conseguir.
  9. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 13877 then return false end addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.') addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.') addEvent(doSendMagicEffect, 15 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN) addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.') local player = Player(cid) Item(item.uid):remove(1) Item(itemEx.uid):transform(22543) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.') player:getPosition():sendMagicEffect(getCreaturePosition(cid),39) return true end Tenta assim, se não der desisto. Ou: function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 13877 then return false end addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.') addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.') addEvent(doSendMagicEffect, 15 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN) addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.') local player = Player(cid) Item(item.uid):remove(1) Item(itemEx.uid):transform(22543) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.') player:getPosition():sendMagicEffect(toPosition,39) return true end
  10. Cara tem que mudar a função, meu deus. Ninguem reparou que a função ta errada? tenta assim: Troca: doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) Por este: doSendAnimatedText(itemEx.uid, "Aaah...", 5)
  11. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 13877 then return false end addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.') addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.') addEvent(doSendMagicEffect, 15 * 1000, cid, getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.') local player = Player(cid) Item(item.uid):remove(1) Item(itemEx.uid):transform(22543) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.') player:getPosition():sendMagicEffect(cid,39) return true end é para funcionar.
  12. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 13877 then return false end addEvent(doPlayerSendTextMessage, 5 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.') addEvent(doPlayerSendTextMessage, 15 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'The ring feels even heavier. You feel slightly stronger, however.') addEvent(doSendMagicEffect, 15 * 1000, cid, toPosition, CONST_ME_MAGIC_GREEN) addEvent(doPlayerSendTextMessage, 25 * 1000, cid, MESSAGE_EVENT_ADVANCE, 'You feel better, more energetic than ever before. The ring seems to wrap itself tighter around your finger.') local player = Player(cid) Item(item.uid):remove(1) Item(itemEx.uid):transform(22543) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The smooth string of mending coils around your whole arm as if it was to devour it.') player:getPosition():sendMagicEffect(cid,39) return true end
  13. tentou com cid tambem?
  14. Acho que faltou 'cid'. addEvent(doPlayerSendTextMessage, 3 * 1000,cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')
  15. Desinstala e baixa de novo ué.
  16. Tenho a estranha impressão que é o meu sistema, porém editado.
  17. Cazuza postou uma resposta no tópico em Suporte & Pedidos
    @Reds, sim a maioria está pronta. ( para um beta ). Não haverá sprites proprias, pois optei por não editar o cliente ainda. Atualmente sou apenas eu na equipe.
  18. De boas, só para ninguém ficar reclamando que não funciona depois, sendo que tu fez quase tudo. Apenas errou umas coisinhas.
  19. Isto: doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, info[l].pspeed) Poderia virar isto: doChangeSpeed(cid, info[l].pspeed + (-getCreatureSpeed(cid))) E isto está certo? info[l].info[l] não deveria ser? info[l].level[l] -- So fiquei na dúvida.
  20. @oiuhygwueuho, Nao comente algo que eu ja havia dito, voce ta flodando e isso nao é certo. Se for para explicar algo, explique certo e não errado como voce fez, nao ira salvar de 3 em 3 horas, mas sim as 3 da manha.
  21. Cazuza postou uma resposta no tópico em Suporte Tibia OTServer
    Nunca usei Globalstorages, não tenho muita ideia como usar. Não sabia que era para fazer um 'equilibrio', não devo ter lido deireito. Desculpe-me.
  22. Por que geralmente no server save, se reinicia o servidor. Dai sim as mudanças entram em vigor.
  23. Claro que precisa, o GlobalSave, é so para salvar o JOGO as 6 horas. Acho que tu não entendeu a funcionalidade dele. Ele funciona como um save normal, porem executa só as 6 da manhã. Tipo caso teu servidor seja desligado, ou caia, ou derrubem os players não serão salvos e o level será perdido, caso tenha sido antes das 6 da manhã.
  24. globalSaveEnabled = "yes" globalSaveHour = 6 shutdownAtGlobalSave = "no" cleanMapAtGlobalSave = "no" (Se quiser que limpe o mapa, põe sim. O resto ja ta certo) ----------------------------------------- E retira o save do globalevents, pronto.

Informação Importante

Confirmação de Termo