Register for your free account! | Forgot your password?

You last visited: Today at 08:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[GUIDE] adding voice to your npcs

Discussion on [GUIDE] adding voice to your npcs within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #1
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
[GUIDE] adding voice to your npcs

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.
LordGragen. is offline  
Thanks
2 Users
Old 07/02/2013, 07:01   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
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...
Spirited is offline  
Old 07/02/2013, 08:59   #3
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
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.
LordGragen. is offline  
Old 07/02/2013, 09:11   #4
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
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++

InfamousNoone is offline  
Old 07/02/2013, 09:19   #5
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
Quote:
Originally Posted by InfamousNoone View Post
lol infamous, i was trolling in the other post lol,
LordGragen. is offline  
Old 07/02/2013, 09:33   #6
 
~Crystaline's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
Quote:
Originally Posted by LordGragen. View Post
lol infamous, i was trolling in the other post lol,
Since when you learned how to troll?
~Crystaline is offline  
Thanks
1 User
Old 07/02/2013, 10:12   #7
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
Quote:
Originally Posted by ~Crystaline View Post
Since when you learned how to troll?
Today
LordGragen. is offline  
Old 07/02/2013, 11:32   #8
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
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)
_DreadNought_ is offline  
Old 07/02/2013, 11:37   #9


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Nothing to see here people, move along...
Korvacs is offline  
Thanks
4 Users
Old 07/02/2013, 11:56   #10
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
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.
LordGragen. is offline  
Old 07/03/2013, 09:16   #11
 
×Holo's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 286
Received Thanks: 71
-"No, you didn't!", -"Yes, I did!"
×Holo is offline  
Thanks
1 User
Old 07/03/2013, 10:35   #12
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
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.
LordGragen. is offline  
Old 07/03/2013, 10:40   #13
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
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
InfamousNoone is offline  
Thanks
1 User
Old 07/03/2013, 11:10   #14
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
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 *** 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.
LordGragen. is offline  
Old 07/03/2013, 13:13   #15

 
Arby's Avatar
 
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,036
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
Arby is offline  
Closed Thread


Similar Threads Similar Threads
[Help] Custom Faces, Adding NPCs
04/02/2013 - Fiesta Online - 6 Replies
Hello everyone! Currently I working on a sever, trying to learn some aesthetic stuff such as modding faces/clothes and such. Ive been searching this forum but I havent found anything relative, and also almost every thread is in german e.e How do I add my custom faces into the game? same with costumes. How do I add an npc into the game? and how do I add my items in there? Thank you very much, Regardz~
[Guide]Adding Npcs
09/02/2009 - CO2 PServer Guides & Releases - 20 Replies
Ok heres a simple guide on how to add npcs into the database.its very simple(theres a video at the end) Step 1: Go to the npcs table in the database.Click Browse,And sort by uid and find the last number and add1 and also write this down. Step 2: Go back to the beggining of your npc table.Click insert.Ok now type in the number your wrote down in the UID table.(Note there will be a pic when we click save at the end.) Step 3: The type is what people have trouble with.The type is what...
[NEED HELP] adding npcs on PowerSourceCo
08/24/2009 - CO2 Private Server - 2 Replies
hello everyone! =) well.. i created a conquer server, but when i tried to add a npc, or edit one, i found myself in a strnge situation, i tried to follow the guide "how to work has a pro on LOFT server" by emme. but, i can add the npc, but i cant make it talk, or give items, its like a statue O.o hope someone can helpme, thank you, saryogan



All times are GMT +1. The time now is 08:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.