Postado Maio 5, 2018 7 anos Ola gente tudo bom?Eu estava pensando em algo para se fazer em relação a sistemas, e não achei nada de interessante... Até que encontrei 4 Sprite's de umas Wand's, cujo autor eu não tenho conhecimento !Dai eu pensei... Porque não fazer uma Wand que possui diversos elementos? Pois então cá estou eu kkExplicando como funcionará o sistema: dasdsa.mp4 OBS: Desculpe por essa msg no meio do vídeo, é que só consegui gravar assim...Sem mais delongas vamos ao sistema:data/actions/scripts/wand_elements.lua local config = { id1 = 32050, id2 = 32049, id3 = 32048, id4 = 32047, } function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) player:registerEvent("Wand_Elements") local title = "Select your element!" local message = "Here you can select the element of your wand, however, you must wait 3 seconds, between one exchange and another." local window = ModalWindow(1000, title, message) window:addButton(100, "Confirm") window:addButton(101, "Cancel") window:addChoice(1, "Wand Energy") window:addChoice(2, "Wand Ice") window:addChoice(3, "Wand Earth") window:addChoice(4, "Wand Fire") window:setDefaultEnterButton(100) window:setDefaultEscapeButton(101) local Item = player:getSlotItem(CONST_SLOT_LEFT) if Item.itemid == config.id1 or Item.itemid == config.id2 or Item.itemid == config.id3 or Item.itemid == config.id4 then window:sendToPlayer(player) end return true end Adicione a tag em Actions: <!-- Wand Elements --> <action fromid="32047" toid="32050" script="wand_elements.lua" /> data/creaturescripts/scripts/wand_elements.lua function onModalWindow(player, modalWindowId, buttonId, choiceId) player:unregisterEvent("Wand_Elements") local config = { [1] = {32047,'Energy Wand'}, -- {ID do item, 'nome do item'} [2] = {32048,'Ice Wand'}, [3] = {32049,'Earth Wand'}, [4] = {32050,'Fire Wand'}, } if modalWindowId == 1000 then if buttonId == 100 then player:removeItem(player:getSlotItem(CONST_SLOT_LEFT).itemid, 1) player:addItem(config[choiceId][1], 1) player:sendTextMessage(MESSAGE_INFO_DESCR, "You have changed the element of your wand to: {"..config[choiceId][2].."}.") end end end Adicione a tag em Creaturescripts: <!-- Wand Elements --> <event type="modalwindow" name="Wand_Elements" script="wand_elements.lua"/> Pronto, feito isso o sistema está utilizável já: Download das Sprites utilizadas:Explicando o que você deve modificar:Em actions: local config = { id1 = 32050, -- ID DO ITEM id2 = 32049, id3 = 32048, id4 = 32047, } Tag do action <action fromid="32047" toid="32050" script="wand_elements.lua" /> Em creaturescripts: local config = { [1] = {32047,'Energy Wand'}, [2] = {32048,'Ice Wand'}, [3] = {32049,'Earth Wand'}, [4] = {32050,'Fire Wand'}, } { ID do item, 'nome do item' }*Creditos:EUZINHOO E o cara que crio as SPR Editado Maio 5, 2018 7 anos por tataboy67 (veja o histórico de edições) Meus trabalhos: [Movements] TFS 1.1+ Area Hardcore [Movements] TFS 1.1+ Tile Party [Action] TFS 1.1+ Bau diário [Action] TFS 1.1+ Guild Dungeon Lever [Talkactions] TFS 0.3.6 / 0.4 Quest Hunt por Tempo Contato: Discord: Tataboy67#4934
Postado Maio 6, 2018 7 anos Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Spoiler Congratulations, your content has been approved! Thank you for your contribution, we of Tibia King we are grateful. Your content will help many other users, you received +1 REP. [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Maio 7, 2018 7 anos Ideia bem interessante meu rapaz. Abre um leque de opções para uma mente criativa. Parabéns! O tempo é um abismo tão profundo como mil noites….A morte não é o pior…é bem mais cruel ser incapaz de morrer… A ausência do amor é a dor mais abjeta que existe… LoucaJuventude.Blogspot.com.br
Postado Outubro 19, 2018 6 anos Funcionar em servidor 8.60 ? se sim teria como usar somente uma wand? e mudar os elementos dela ? !!! se possivel poder mudar o shootype
Postado Outubro 19, 2018 6 anos Autor @KillerWatts Apenas em versões 9.60 +... Mas depois eu posso fazer 1 com versões anteriores ... Meus trabalhos: [Movements] TFS 1.1+ Area Hardcore [Movements] TFS 1.1+ Tile Party [Action] TFS 1.1+ Bau diário [Action] TFS 1.1+ Guild Dungeon Lever [Talkactions] TFS 0.3.6 / 0.4 Quest Hunt por Tempo Contato: Discord: Tataboy67#4934
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.