[GUIDE] adding voice to your npcs

07/01/2013 14:07 LordGragen.#1
Hello guys, i been working on this npc voice system long time already, and since i am not going to use it coz dont have allot voice actors and no time, so here is what i was using Feel free to share use or w.e

The code is simple coding, feel free to re build it coz i know its not coded the best way and it can be much better.

Code:
_String _string = new _String(true);
                                                _string.UID = client.Entity.UID;
                                                _string.TextsCount = 2;
                                                _string.Type = _String.Sound;
                                                _string.Texts.Add("voice/get_out.wav");
                                                _string.Texts.Add("1");
                                                client.Send(_string);
Code:
 public byte[] ToArray()
        {
            ushort entirelength = 19;
            foreach (string list in Texts)
                entirelength += (ushort)(list.Length + 1);
            byte[] buffer = new byte[entirelength];
            WriteUInt16((ushort)(entirelength - 8), 0, buffer);
            WriteUInt16(1015, 2, buffer);
            WriteUInt32(UID, 4, buffer);
            buffer[8] = Type;
            Buffer = buffer;
            WriteStringList(Texts, 9, Buffer);
            return Buffer;
        }
credit to (Nocturnal) who helped me make it, long time ago.
credit to (Fang) who fixed a small bug in my voice system.
07/02/2013 07:01 Spirited#2
Small bug... I gave you two the packet usage details and then you used it in a for loop to repeat it four times to play a sound. It almost made me cry. Anyways, I take no credit for this - it's not exactly my code, and the packet structure and usage of it is public. Hopefully you've gotten a lot better since then...
07/02/2013 08:59 LordGragen.#3
Quote:
Originally Posted by Fаng View Post
Small bug... I gave you two the packet usage details and then you used it in a for loop to repeat it four times to play a sound. It almost made me cry. Anyways, I take no credit for this - it's not exactly my code, and the packet structure and usage of it is public. Hopefully you've gotten a lot better since then...

i got a bit better on it, started making simple programs like you said,

simple things like multi chat learning how people are connecting to the server, but
taking it a bit slow, after searching on google i learned its better to learn

php,html,css first then going on c# c++
so i am taking 2 hours a day covering php and html, i am hoping to get into c# and start doing some major things in the future, but for now no biggy.
07/02/2013 09:11 InfamousNoone#4
Quote:
Originally Posted by Fаng View Post
Small bug... I gave you two the packet usage details and then you used it in a for loop to repeat it four times to play a sound. It almost made me cry. Anyways, I take no credit for this - it's not exactly my code, and the packet structure and usage of it is public. Hopefully you've gotten a lot better since then...
Quote:
Originally Posted by LordGragen. View Post
20?, girl? and looking good?


Yup i am University Teacher,

i teach php,c#,java,c++

:awesome::awesome::awesome:
:confused:
07/02/2013 09:19 LordGragen.#5
Quote:
Originally Posted by InfamousNoone View Post
:confused:
lol infamous, i was trolling in the other post lol,
07/02/2013 09:33 ~Crystaline#6
Quote:
Originally Posted by LordGragen. View Post
lol infamous, i was trolling in the other post lol,
Since when you learned how to troll? :awesome:
07/02/2013 10:12 LordGragen.#7
Quote:
Originally Posted by ~Crystaline View Post
Since when you learned how to troll? :awesome:
Today :eek::eek:
07/02/2013 11:32 _DreadNought_#8
Quote:
Originally Posted by Fаng View Post
Small bug... I gave you two the packet usage details and then you used it in a for loop to repeat it four times to play a sound. It almost made me cry. Anyways, I take no credit for this - it's not exactly my code, and the packet structure and usage of it is public. Hopefully you've gotten a lot better since then...
Honestly, I don't think he has.

Had to delete him off skype due to his constant retardedness(Yes, I just said retardedness) (Yes, I know that's not a word, biach)
07/02/2013 11:37 Korvacs#9
Nothing to see here people, move along...
07/02/2013 11:56 LordGragen.#10
Quote:
Originally Posted by _DreadNought_ View Post
Honestly, I don't think he has.

Had to delete him off skype due to his constant retardedness(Yes, I just said retardedness) (Yes, I know that's not a word, biach)
Its kinda funny how i ignore you and yet you still try to talk about me lol,
your 15 years old kid that's why i don't want to insult you.

And about deleting from Skype, i didn't know who deleted who first coz i deleted you also, but i don't care,

your just a kid you need to grow up a bit, so when you do then come start acting like a big boy, now go on... drink your milk and go to bed.
07/03/2013 09:16 ×Holo#11
-"No, you didn't!", -"Yes, I did!"
07/03/2013 10:35 LordGragen.#12
i will request for this thread to be closed so people don't go off topic,

anyone who likes to use the code or find out how i did long time ago your welcome to.
07/03/2013 10:40 InfamousNoone#13
iono about u, but I judge people based on their learning curves, not their ages..
if dread's 15, he prob' knows more than I did when I was 15 lol
07/03/2013 11:10 LordGragen.#14
Quote:
Originally Posted by InfamousNoone View Post
iono about u, but I judge people based on their learning curves, not their ages..
if dread's 15, he prob' knows more than I did when I was 15 lol
that is not m Point Infamouse,

my point is that his only 15 years old and yet he keep talking trass, cussing insulting and i am older then him, thats why i am trying my best to not insult him coz his just a kid,

yes his 15 and he knows more about c# then me that does not mean he need to insult me?


I am mma/karate teacher so what should i kick his ass 24/7 just coz i have the skills?

I am doing my best to learn here and my English is only 50% since i did not born in America.
07/03/2013 13:13 Arby#15
Quote:
Originally Posted by LordGragen. View Post
i will request for this thread to be closed so people don't go off topic,

anyone who likes to use the code or find out how i did long time ago your welcome to.
#closed