SilentCry 0 Posted April 6, 2013 Boas comunidade Cyber-Gamers . Venho aqui pedir ajuda no seguinte assunto: Eu queria um NPC que reinicia-se skills e muda-se de Sexo . Se alguém me poder ajudar Pfv . Cumps MysTic Share this post Link to post Share on other sites
SINVAL o.O 728 Posted April 6, 2013 Mudar de reino quest change_empire beginstate start beginwhen 20090.chat."Mudar de reino" with game.get_event_flag("c_e") >0 beginlocal count = pc.get_change_empire_count() ;if count >= 1 thensay("Não podes mudar de reino")say("")returnendsay_reward("Mudar de Reino")say("")say("Para mudares de reino, deves satisfazer o seguinte:")say("-Não podes ser dono de uma guild.")say("-Não podes pertencer a uma guild.")say("-Não podes estar casado.")say("-A mudança tem um custo de 500k.")say("")say_reward("Queres mesmo mudar de reino?")say("")local s = select("Mudar de Reino", "Não mudar")if s == 1 thenchange_empire.move_pc()endendwhen 71054.use beginsay_reward("Mudaste de reino com sucesso.")say("Os lideres do novo reino dão as boas-vindas!")if get_time() < pc.getqf("next_use_time") thensay("Não podes mudar de reino ainda..")say("")if pc.is_gm() thensay("GM¬°¤F´ú¸Õ¥i¥H³]©w®É¶¡")say("")local s = select("*«·s³]©w", "¨ú®ø")if s == 1 thensay("®É¶¡ªì©l¤Æ¤F")pc.setqf("next_use_time", 0)endendreturnendif change_empire.move_pc() == true thenpc.setqf("next_use_time", get_time() + 86400 * 7)endendfunction move_pc()if pc.is_engaged() thensay("És casado.")say("Não podes mudar de reino.")say("")return falseendif pc.is_married() thensay("És casado.")say("Não podes mudar de reino.")say("")return falseendif pc.is_polymorphed() thensay("Estás metamorfizado.")say("Não podes mudar de reino.")say("")return falseendif pc.has_guild() thensay("Estás numa Guild.")say("Não podes mudar de reino.")say("")return falseendif pc.money < 500000 thensay("Não tens yang suficiente...")say_reward("Para mudares de reino, precisas 500k yang.")say("")return falseendsay("Vais para que reino?")local s = select("Reino vermelho", "ReinO Amarelo", "Reino Azul", "Cancelar")if 4==s thenreturn falseendsay("")say("Queres realmente mudar de reino?")say_reward("É mesmo o que queres?!")say("")local a = select("Mudar", "Não mudar")if 2== a thenreturn falseendlocal ret = pc.change_empire(s)local oldempire = pc.get_empire()if ret == 999 thensay("Mudas-te com sucesso de reino.")say("Por favor volta a entrar na conta.")say("")pc.change_gold(-500000)pc.remove_item(71054) ;char_log(0, "CHANGE_EMPIRE",string.format("%d -> %d", oldempire, s))return trueelseif ret == 1 thensay("Já pertences a esse reino.")say("Escolhe outro por favor.")say("")say("")elseif ret == 2 thensay("Para puderes mudar de reino,")say("terás de sair da tua guild.")say("")say("")elseif ret == 3 thensay("Para puedres mudar de reino,")say("terás de te divorciar")say("")endendreturn falseendendendMudar de Sexoquest item_change_sex begin state start begin when 9012.chat."Trocar de Sexo?" begin if pc.get_level() < 50 then say_title("Troca de Sexo:") say_reward("Deves ser, pelo menos, Nível 50!") say("") say("Não tens nível necessário para isso.") say("Tente novamente quando estiveres level 50 ou mais!") say("") return; end if pc.is_engaged() then say_title("Troca de Sexo:") say_reward("Estás Casado, logo não podes mudar") say_reward("de sexo. Quando estiveres solteiro,") say_reward("Podes trocar.") say("") ----"12345678901234567890123456789012345678901234567890"| say("Se voçê divorciar, poderás") say("mudar de sexo!") say("") return; end if pc.is_married() then say_title("Troca de Sexo:") say_reward("Apenas Solteiros Podem Mudar de Sexo!") say("") ----"12345678901234567890123456789012345678901234567890"| say("Se voçê divorciar poderás") say("mudar o teu sexo!") say("") return; end if pc.is_polymorphed() then say_title("Troca de Sexo:") say_reward("Estás Transformado!") say("") say("Quando voltares ao normal podes") say("efetuar a troca de sexo.") say("") return end if get_time() < pc.getqf("next_time") then say_title("Troca de Sexo:") say_reward("Ainda não podes mudar de sexo") say_reward("o tempo após a mudança anterior") say_reward("ainda não acabou.") say("") ----"12345678901234567890123456789012345678901234567890"| say("Só podes mudar de sexo cada 3 Dias.") say("") if pc.is_gm() then say(string.format(" %s", time_to_str(pc.getqf("next_time")))) say("") say("Como és GM podes colocar o tempo a 0") local s = select("Quero Fazer Isso", "Não Deixa") if s == 1 then say("Colocaste o Tempo de Espera a 0") pc.setqf("next_time", 0) end end return; end say_title("Troca de Sexo:") say("Estás prestes a mudar o teu sexo") say("") say("Isto irá afectar a tua") say("vida sentimental e o teu") say("quotidiano.") wait() say_title("Troca de Sexo:") say("Lembra-te que só podes mudar de sexo") say("cada 3 dias.") say_reward("As pessoas casadas não podem mudar o seu sexo.") say_reward("As pessoas transformadas também não.") say("Queres Proceder à Troca?") say("") local s=select( "Quero!", "Não quero!") if 1==s then say("Troca de Sexo") say("Feito!") say("") say_reward("Selecione sua personagem e ja ira ter trocado o Sexo!") say("") pc.remove_item("71048",1) pc.setqf("next_time", get_time() + 86400 * 3) pc.change_sex() local m_sex = pc.get_sex() if m_sex == 0 then char_log(0, "CHANGE_SEX", "F -> M") else char_log(0, "CHANGE_SEX", "M -> F") end elseif 2==s then say("Tudo Bem!") end end endend 1 SilentCry reacted to this Share this post Link to post Share on other sites
SilentCry 0 Posted April 6, 2013 ઽiท√αℓ Um muito Obrigado levas http://cyber-gamers.org/public/style_emoticons/default/451960.gif Não sabes nenhuma quest para reniciar as skills ? Share this post Link to post Share on other sites
SINVAL o.O 728 Posted April 6, 2013 quest skill_reset2 beginstate start beginwhen NPC.chat."Redefinição de habilidade" with pc.level <= 31 beginlocal cost = 10000 + pc.level * 4000local s = 0local STAT_RESET_SAY1="Olá, Caro Player[ENTER]".."Estou muito cansado ....[ENTER][ENTER]".."Mas eu sei que uma técnica[ENTER]".."para resetar suas habilidades[ENTER]".."Mas Claro tem um pequeno custo.[ENTER]"local STAT_RESET_SAY2="[ENTER]".."De alguma forma eu tenho que ganhar o meu dinheiro![ENTER]".."Custa-lhe apenas Gold.[ENTER]"say(STAT_RESET_SAY1)wait()say(STAT_RESET_SAY2)s = select("Sim", "não", "de volta")if s==1 thenlocal STAT_RESET_DETAIL_SAY1="A reposição não é[ENTER]".."para desfazer![ENTER]".."Vai Ficar sem o seu Gold permanente[[ENTER]".."perder![ENTER]".."[ENTER]"local STAT_RESET_DETAIL_SAY2="Então eu faria Eu ainda[ENTER]".."considerar novamente,[ENTER]".."antes de mim em tal[ENTER]".."Modificação[ENTER][ENTER]".."Você quer isso?[ENTER]".."Vai custar-lhe Gold.[ENTER]"say(STAT_RESET_DETAIL_SAY1)wait()say(STAT_RESET_DETAIL_SAY2)s = select("Weiter")[img]http://cyber-gamers.org/public/style_emoticons/<#EMO_DIR#>/451960.gif[/img]endif s == 2 thenif pc.money < cost thensay("Falta gold.")elsepc.changegold(-cost)pc.set_skill_group(0)endendendendend Share this post Link to post Share on other sites
purabrisa 31 Posted April 6, 2013 when NPC.chat."Redefinição de habilidade" with pc.level <= 31 begin Onde Diz "NPC.chat", você substitui pelo codigo do npc. Exemplo: when 9006.chat."Redefinição de habilidade" with pc.level <= 31 begin9006 = Senhora do Casamento Abraços. 1 SilentCry reacted to this Share this post Link to post Share on other sites
SilentCry 0 Posted April 6, 2013 PureBrisa , sim eu sei . http://cyber-gamers.org/public/style_emoticons/default/lol.gifJá o tinha feito mas não funcionou . Share this post Link to post Share on other sites
purabrisa 31 Posted April 6, 2013 local cost = 10000 + pc . level * 4000local s = 0local STAT_RESET_SAY1 ="Idosa:[ENTER][ENTER]" .."Olá, você está no lugar certo.[ENTER]" .."Seus olhos mostram muitas batalhas.[ENTER]" .."Eu faço as pessoas se esqueceram das[ENTER]" .."habilidades assim eles podem recomeçar.[ENTER]" .."...[ENTER]"local STAT_RESET_SAY2 ="[ENTER]" .."Você quer esquecer as suas habilidades?[ENTER]" .."Vai Custar " .. cost .. " Gold.[ENTER]"say ( STAT_RESET_SAY1 )wait ( )say ( STAT_RESET_SAY2 )s = select ( "Regrida minhas habilidades" , "Não faça isso" )if s == 1 thenlocal STAT_RESET_DETAIL_SAY1 ="A regressão funciona com[ENTER]" .."apenas suas habilidades![ENTER]" .."Eu cobrarei uma taxa de Gold permanente[[ENTER]" .."![ENTER]" .."[ENTER]"local STAT_RESET_DETAIL_SAY2 ="Hm...[ENTER]" .."Vou fazer oque você me pediu,[ENTER]" .."mas, fique sabendo que não há[ENTER]" .."retorno.[ENTER][ENTER]" .."Deseja regredir suas habilidades ?[ENTER]" .."Vai Custar " .. cost .. " Gold.[ENTER]"say ( STAT_RESET_DETAIL_SAY1 )wait ( )say ( STAT_RESET_DETAIL_SAY2 )s = select ( "Próximo" ) + 1endif s == 2 thenif pc . money &--#60; cost thensay ( "Você não possui Gold suficiente!" )elsepc . changegold ( - cost )pc . set_skill_group ( 0 )endend Minha Quest! Tenhu ela aqui! Tutorial: Você vai Criar três arquivos iguais esses: dento do arquivo .script você coloca os dados acima no spoiler. 1 SilentCry reacted to this Share this post Link to post Share on other sites
SilentCry 0 Posted April 6, 2013 PuraBrisa , Já consegui, um muito Obrigado levas http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
SilentCry 0 Posted April 7, 2013 Bom dia de novo comunidade da Cyber-gamers , alguem me pode arranjar uma quest para dar habilidades passivas Pfv . Leva http://cyber-gamers.org/public/style_emoticons/default/451960.gif Cumps MysTic Share this post Link to post Share on other sites