Renanhideki 3 Posted November 20, 2018 (edited) alguem teria uma quest ( evento ) que as palavras aparecem cruzadas o players tem que decifrar e se acertar , ganha um premio? Edited November 21, 2018 by Renanhideki infringindo as regras com Caps Lock (see edit history) Share this post Link to post Share on other sites
1 Marcos Pinheiro 22 Posted November 23, 2018 Uma quest assim é bem complexa, dificilmente alguém a fará de graça Share this post Link to post Share on other sites
1 Karbust 1,143 Posted November 23, 2018 Experimenta esta função: https://forums.coronalabs.com/topic/14036-string-manipulation/ Se fizeres um array com várias palavras possíveis, selecionas uma ao calhas, baralhas as letras e pedes o input ao utilizador, se o input coincidir com a original, dá um prémio ou o que quiseres, caso contrário, faz outra coisa qualquer... 1 .ukitobi reacted to this Share this post Link to post Share on other sites
1 Dilong 0 Posted December 24, 2018 Seria mas o menos asi Spoiler quest event33 begin state start begin when 20091.chat."GM Event" with pc.is_gm() begin local x = select("Activar","Cancelar") if x == 1 then crono = tonumber(input) if crono > 24 then say_reward("error, maximo 24hs") return end if crobo < 1 then say_reward("minimo una hora") return end game.set_event_flag("event34",1) server_timer("event35",60*60*crono) notice("test event") elseif x == 2 then game.set_event_flag("event34",0) clear_server_timer("event35") end end when event35.server_timer begin game.set_event_flag("event34",0) notice_all("evento terminado") end when kill with not npc.is_pc() and game.get_event_flag("event34")==1 begin local mobs = {101,102,103,104} for i=1,table.getn(mobs) do if npc.get_race()==mobs[i] then local s = number(1, 100) if s <= 5 then game.drop_item_with_ownership(19,1) end end end end when 20091.chat."Event" with game.get_event_flag("event34")==1 begin say_title("Npc:") say("texto") if pc.count_item(19)< 1 then say_reward("error") return end local check,check2 = mysql_direct_query("SELECT texto_falso, texto_real, utilizado FROM player.event3 WHERE utilizado = 0 ") say_reward(""..check2[1].texto_falso.."") local escriba = input() if escriba == check2[1].texto_real then say("Ok") mysql_direct_query("UPDATE player.event3 SET utilizado = 1 WHERE texto_real = '"..escriba.."'") pc.remove_item(19,1) pc.give_item2(nuevoitem,1) else say("No") pc.remove_item(19,1) end end end end sql Spoiler SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for event3 -- ---------------------------- DROP TABLE IF EXISTS `event3`; CREATE TABLE `event3` ( `texto_falso` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, `texto_real` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, `utilizado` int(8) NULL DEFAULT NULL, PRIMARY KEY (`texto_falso`, `texto_real`) USING BTREE ) ENGINE = MyISAM CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1; Share this post Link to post Share on other sites
0 Renanhideki 3 Posted November 23, 2018 (edited) 4 horas atrás, Marcos Pinheiro disse: Uma quest assim é bem complexa, dificilmente alguém a fará de graça dificil tambem achar alguem que faça pagando kkk . voce sabe quem faz? 2 horas atrás, Karbust™ # PT disse: Experimenta esta função: https://forums.coronalabs.com/topic/14036-string-manipulation/ Se fizeres um array com várias palavras possíveis, selecionas uma ao calhas, baralhas as letras e pedes o input ao utilizador, se o input coincidir com a original, dá um prémio ou o que quiseres, caso contrário, faz outra coisa qualquer... Obrigado . Edited November 23, 2018 by morfo2 Double Post (see edit history) Share this post Link to post Share on other sites
0 ruizinho-o 9 Posted November 23, 2018 Pagar por isso? Explica melhor a quest que eu faço te isso. Share this post Link to post Share on other sites
0 Renanhideki 3 Posted November 23, 2018 32 minutos atrás, ruizinho-o disse: Pagar por isso? Explica melhor a quest que eu faço te isso. a quest é um evento ela funciona da seguinte maneira , eu ativo o evento o player tem que matar bosses de nivel respectivo , com porcetagem pouca mas dropa um item, ele entrega o item ao npc , e o npc lança uma frase por exemplo : Os Orcs são Fortes sO srcO ãos streoF se ele acertar a frase correta ganha um premio . se me ajudar serei muito grato. Share this post Link to post Share on other sites
0 .ukitobi 42 Posted December 9, 2018 Se fosse a ti pensava em contactar alguém para te fazer isso pago, ninguém se vai dar ao trabalho de escrever isso à borla. Share this post Link to post Share on other sites
0 Karbust 1,143 Posted December 9, 2018 7 horas atrás, Renanhideki disse: alguem ? Custa muito usar a função que te dei? 2 horas atrás, .ukitobi disse: Se fosse a ti pensava em contactar alguém para te fazer isso pago, ninguém se vai dar ao trabalho de escrever isso à borla. Wtf, pagar por uma simples? Isso é preguiça de fazer, uma vez que já lhe dei a função... Share this post Link to post Share on other sites
0 .ukitobi 42 Posted December 9, 2018 7 minutes ago, Karbust™ # PT said: Custa muito usar a função que te dei? Wtf, pagar por uma simples? Isso é preguiça de fazer, uma vez que já lhe dei a função... Ele não pediu a função só. OFF: Obrigado pela função, vai dar jeito. Share this post Link to post Share on other sites
0 Karbust 1,143 Posted December 9, 2018 11 minutos atrás, .ukitobi disse: Ele não pediu a função só. OFF: Obrigado pela função, vai dar jeito. Com a função basta meia dúzia de coisas para a usar, qual é a dificuldade? Ele está é à espera que alguém lhe faça a papinha... 1 .ukitobi reacted to this Share this post Link to post Share on other sites
0 Renanhideki 3 Posted December 11, 2018 Em 09/12/2018 at 13:43, Karbust™ # PT disse: Com a função basta meia dúzia de coisas para a usar, qual é a dificuldade? Ele está é à espera que alguém lhe faça a papinha... obrigado pela função ... não manjo de quest . por isso estava atras de alguem que pudesse fazer pra mim . Share this post Link to post Share on other sites
alguem teria uma quest ( evento )
que as palavras aparecem cruzadas o
players tem que decifrar e se acertar , ganha um premio?
Edited by Renanhidekiinfringindo as regras com Caps Lock (see edit history)
Share this post
Link to post
Share on other sites