antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Slender_Man

Dar Voz Aos Npc.S Metin2

11 posts in this topic

boas cyber

axei algo interessante na epvp e decidi vir postar

bem pelo que percebi serve para dar voz aos npc como a geral o ferreiro vendedores de armas etc

quem sabe não encontremos aqui boas vozes para os nossos servidores =)

aqui um video

http-~~-//www.youtube.com/watch?feature=player_embedded&v=sxIt9TgvuTo

a quest

-- Talk-System by Fearquest talk beginstate start begin  function data()			local n = {	-- Mapindex, Mp3 name, x, y, länge der mp3	-- rot	{1, 'gemi', 678, 565, 12},	{1, 'schmied', 672, 556, 23},	{1, 'banker', 675, 561, 10},	{1, 'aranjo', 687, 475, 12},	{1, 'desdorfplatzes', 647, 582, 3},	{1, 'event', 645, 571, 7},	{1, 'event', 615, 618, 7},	{1, 'heillehrer', 654, 548, 9},	{1, 'kklehrer', 622, 556, 8},	{1, 'kopfgeld', 635, 591, 13},	{1, 'mine', 582, 578, 9},	{1, 'mklehrer', 625, 555, 8},	{1, 'oma', 633 ,622, 7},	{1, 'bogen', 633, 553, 7},	{1, 'drachenschami', 651, 549, 11},	{1, 'magiesura', 647, 550, 7},	{1, 'nahkampf', 629, 554, 8},	{1, 'waffensura3', 644, 551, 10},	-- gelb	{21, 'gemi', 590, 689, 12},	{21, 'schmied', 594, 692, 23},	{21, 'banker', 596, 694, 10},	{21, 'aranjo', 554, 597, 12},	{21, 'desdorfplatzes', 633, 640, 3},	{21, 'event', 620, 639, 7},	{21, 'heillehrer', 657, 595, 9},	{21, 'kklehrer', 623, 594, 8},	{21, 'kopfgeld', 637, 629, 13},	{21, 'mine', 717, 633, 9},	{21, 'mklehrer', 627, 594, 8},	{21, 'oma', 588, 633, 7},	{21, 'bogen', 635, 595, 7},	{21, 'drachenschami', 653, 595, 11},	{21, 'magiesura', 649, 595, 7},	{21, 'nahkampf', 631, 595, 8},	{21, 'waffensura3', 645, 595, 10},	-- blau	{41, 'gemi', 381, 693, 12},	{41, 'schmied', 393, 692, 23},	{41, 'banker', 377, 692, 10},	{41, 'aranjo', 343, 560, 12},	{41, 'desdorfplatzes', 383, 640, 3},	{41, 'event', 372, 647, 7},	{41, 'heillehrer', 443, 656, 9},	{41, 'kklehrer',  444 ,623, 8},	{41, 'kopfgeld', 399, 643, 13},	{41, 'mine', 336, 770, 9},	{41, 'mklehrer', 444, 627, 8},	{41, 'oma', 417, 671, 7},	{41, 'bogen', 444, 635, 7},	{41, 'drachenschami', 443, 652, 11},	{41, 'magiesura', 443, 648, 7},	{41, 'nahkampf', 444, 631, 8},	{41, 'waffensura3', 443, 644, 10},	-- Dämonenturm	{65, 'damonenturm', 532, 596, 10}   }			return n		end  --- Ab hier nichts mehr ändern !!!!  -----------------------------------------------------  when login begin   pc.setqf('talk_block', 0)   loop_timer('talk_check', 1)  end  function is_near(x,y,range)   get_x = pc.get_local_x()   get_y = pc.get_local_y()   x1 = x-range   y1 = y-range   x2 = x+range   y3 = y+range   if (get_x &--#62; x1 and get_x &--#60; x2) and (get_y &--#62; y1 and get_y &--#60; y3) then	return true   else	return false   end  end  when talk_check.timer with pc.getqf('talk_block') == 0 and get_time() &--#62; pc.getqf('talk_duration') begin   local n = talk.data()   for i = 1, table.getn(n) do	if pc.get_map_index() == n[i][1] then	 if talk.is_near(n[i][3], n[i][4], 3) == true then	  cmdchat('npctalk '..n[i][2]..'.mp3')	  pc.setqf('talk_block', 1)	  timer('npc_is_talk', n[i][5])	 end	end   end  end  when npc_is_talk.timer with pc.getqf('talk_block') == 1 begin   cmdchat('lastmusic')   pc.setqf('talk_block', 0)   pc.setqf('talk_duration', get_time()+60*2)  end  when logout with pc.getqf('talk_block') == 1 begin   cleartimer('npc_is_talk')   pc.setqf('talk_block', 0)  endendend

e onde aplicar

O cliente abre a game.py e adicione:

def __ServerCommand_Build(self):  serverCommandList={
"npctalk"   : self.__npctalk,   "lastmusic"   : self.__lastmusic,
Em seguida, o fundo ainda, as duas funções puras:
def __npctalk(self, lied):  snd.FadeOutAllMusic()  musicInfo.SaveLastPlayFieldMusic()  snd.FadeInMusic("talk/" + lied)def __lastmusic(self):  snd.FadeOutAllMusic()  snd.FadeInMusic("BGM/" + musicInfo.fieldMusic
Os arquivos de som vêm falar diretório /.Você também pode personalizá-lo, é claro

creditos :Fear *_*
retirado da epvp
cumps

o que dizia no topico
Olá,
depois de uma longa ler junto, eu pensei que também lançar algo.

É um sistema completamente novo de comunicação com os NPCs.
Você corre para o NPC, logo que você chega no próximo ele começa a falar com você, então ele realmente fala isso significa que você tem que ter o som ligado.

Vos solte o pacote inteiro aqui, a Quest + + Clientkram sons.
Você está convidado a também expandir o sistema, eu tenho a busca por escrito para que seja sons e você pode facilmente inserir na tabela o seu próprio NPC.Eu acho que é auto-explicativo.

Exemplo de vídeo (versão muito antiga, mas funciona basicamente o mesmo)

Share this post


Link to post
Share on other sites
antiblock
diamwall

PS : Pessoalmente não testei, mais há gente com erros no syserr.

Share this post


Link to post
Share on other sites

também não testei =/ mas axei interessante pode ser que alguém aqui na cyber uze e poste depois como implementar

Share this post


Link to post
Share on other sites
Gente com erros no syserr? Coisa mais facil de meter lol

Share this post


Link to post
Share on other sites

Gente com erros no syserr? Coisa mais facil de meter lol

Que eu quis dizer é que algumas pessoas tá tendo problema com alguns erros no syserr e que não está funcionando bem, mais como disse não testei.

Share this post


Link to post
Share on other sites

Fixe era em português, existe maneira de mudar? Se for preciso faço eu as vozes ahhaha e disponibilizo.

Share this post


Link to post
Share on other sites

eu penso que podem mudar para pt só fazer os ficheiros mp3 em pt xD depois mudar para o que a quest diz

Share this post


Link to post
Share on other sites

eu penso que podem mudar para pt só fazer os ficheiros mp3 em pt xD depois mudar para o que a quest diz

eu penso que podem mudar para pt só fazer os ficheiros mp3 em pt xD depois mudar para o que a quest diz

Sim basta vc fazer uma gravação ou como achar melhor em pt/br ou como quiser, só digo uma coisa isso é muito fix não sei como isso saiu free, então vamos aproveitar.

Share this post


Link to post
Share on other sites

Alguém me pode ajudar a tentar por isso sfv!!!

Share this post


Link to post
Share on other sites

Alguém me pode ajudar a tentar por isso sfv!!!

Hydratic, Hydratic, Hydratic

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now