Tudo que Cazuza postou
-
Adeus
Sempre te achei um grande membro, que contribuia muito para o TK. Espero que volte, e nunca abandone o velho tibia
-
[TalkAction] Gerador de Outfit
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.
-
[TalkAction] Gerador de Outfit
@Absolute, para quem precisa criar NPCS é uma mão na roda.
-
(Resolvido)Ajuda com script facil
Tenta sem o .uid, só item Sinceramente era para funcionar.
-
[TalkAction] Gerador de Outfit
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.
-
(Resolvido)Ajuda com script facil
addEvent(doTransformItem, 25 * 1000,item.uid, ID_DO_ITEM_AQUI )
-
(Resolvido)Ajuda com script facil
Por que o addEvent, pega a posição na hora que tu clicou. E não 4 segundos depois...
-
Potion "Ahhhh..." em AZUL
@HallsSantos, hahaha. Valeu, ele ia morrer tentando e nunca ia conseguir.
-
(Resolvido)Ajuda com script facil
Testou os dois?
-
(Resolvido)Ajuda com script facil
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
-
Potion "Ahhhh..." em AZUL
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)
-
(Resolvido)Ajuda com script facil
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.
-
(Resolvido)Ajuda com script facil
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
-
(Resolvido)Ajuda com script facil
tentou com cid tambem?
-
(Resolvido)Ajuda com script facil
Acho que faltou 'cid'. addEvent(doPlayerSendTextMessage, 3 * 1000,cid, MESSAGE_EVENT_ADVANCE, 'The ring feels quite heavy now. Nothing else happens.')
- [PEDIDO] Problema com ObjectBuilder
- (Resolvido)[pedido] toda vez que logar voltar com a outfit inicial
-
[RPG] Emperia
@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.
-
[CreatureScript] Level Speed ao Atingir Determinado Level - REFORMULADO
De boas, só para ninguém ficar reclamando que não funciona depois, sendo que tu fez quase tudo. Apenas errou umas coisinhas.
-
[CreatureScript] Level Speed ao Atingir Determinado Level - REFORMULADO
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.
-
[Pedido] Explicação Server Save config.lua!
@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.
-
Teleport Avançado
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.
-
[Pedido] Explicação Server Save config.lua!
Por que geralmente no server save, se reinicia o servidor. Dai sim as mudanças entram em vigor.
-
[Pedido] Explicação Server Save config.lua!
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ã.
-
[Pedido] Explicação Server Save config.lua!
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.