Register for your free account! | Forgot your password?

You last visited: Today at 15:23

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

Advertisement



CoEmu

Discussion on CoEmu within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
CoEmu

Can someone tell me how to create NPC Thats lets them type a comment.. and when they send the comment.. it goes to my email...?
1supertao is offline  
Old 08/21/2009, 20:35   #2
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Like this?
Quote:
Input("INputtttt ", 1, CSocket);
Quote:
public static void Input(string text, int LinkBack, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(LinkBack, 3, text));
}
#If you want to say thanks thank alex
xellios is offline  
Old 08/21/2009, 21:04   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
Well.. idk even know what that is.. i meant.. it to be like... if you click the NPC... it has a little chat box.... Kinda like when you make a guild name... and i want that message to go to a table in my database... or my email
1supertao is offline  
Old 08/21/2009, 21:07   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Quote:
Originally Posted by xellios View Post
Like this?




#If you want to say thanks thank alex

ur signature i think might be

live and conquer but anyway

are you still with sage gaming
f0am is offline  
Old 08/21/2009, 21:14   #5
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
#Off-topic
Yeah i do.

And super thingy u asked for something and you got it how hard could it be to make a function to insert something into a database ;/?
xellios is offline  
Old 08/21/2009, 21:21   #6
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
I have NOO clue.. hmm.. ya ima look around ... on Guilds... and ill post what i get here...
1supertao is offline  
Old 08/21/2009, 21:22   #7
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Quote:
Originally Posted by xellios View Post
#Off-topic
Yeah i do.

And super thingy u asked for something and you got it how hard could it be to make a function to insert something into a database ;/?

nah hes talking about you know how when you make a guild you get to type some guild name in, i think he wants that
f0am is offline  
Old 08/21/2009, 21:28   #8
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Uhm i just gave him that lmao?..

EDIT:
IF he just bothered to TEST it ..
xellios is offline  
Old 08/21/2009, 21:28   #9
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
You would have to set up an email client with an email server.
It's easier to just make it write to a text file.

Google is your friend here.
kinshi88 is offline  
Old 08/21/2009, 21:36   #10
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
No no no kinshi.. he is asking for a complete fully done without even bothering to get up and use his lazy *** mind CODE TO DO THAT! When do people finally listen .. :S >: P
xellios is offline  
Old 08/21/2009, 21:47   #11
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
xellios i already looked into it.. your code has nothing to do what i said.. im talking about a NPC.. and i did do something..
1supertao is offline  
Old 08/21/2009, 21:51   #12
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Dude dont let me laugh.. what about

If (LinkBack == 0)
{
Input("SHITZ", 1, CSocket);
}
=.=

Oh yea right i use it myself so it does work in fact.
xellios is offline  
Old 08/21/2009, 22:00   #13
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
Quote:
public static void Input(string text, int LinkBack, ClientSocket CSocket)
And is this the void that sends it right? and to where?
1supertao is offline  
Old 08/22/2009, 02:24   #14
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
u can use the service channel , when some player sends a msg through this channel (Service = 2014) then save the msg to a file or a data base table

if u decided the Data base option :-

1-create a table in ur Data base named for example Service
2-add 3 fields to that table (Id int(11) , Name varchar(16), Message varchar(255))
3-add the code at chat.cs if the Chat Channel is Service channel then
4-SQL command (u can use existing example at ur source) saves the name and the msg to that table
samehvan is offline  
Reply


Similar Threads Similar Threads
Help COEmu v2
06/27/2009 - CO2 Private Server - 3 Replies
How to make my account GM?:)
CoEmu
06/18/2009 - CO2 Private Server - 12 Replies
I keep forgeting the code, how do I make an item in CoEmu? /item JusticeKatana 9 12 7 255 2?
[Help] COEmu 2 on LAN
06/09/2009 - CO2 Private Server - 22 Replies
Hi, I manage to run the source sample provided here (thanks Andy and to all who was involved in making. You know who you are). I perfectly run the server locally on my computer, bu since then i have extra 4 pcs and my friends wants to play FB, I manage to install the client to the other 4 pcs editing the server.dat on theirs to the ip on my pc locally with an ip address of 192.168.0.187 (you know Dlink DHCP ip's) On my pc, server.dat sticks to 127.0.0.1 I edited the loginservers...
[Help] CoEmu
06/02/2009 - CO2 Private Server - 0 Replies
Help comands for PM charakter dont vork
Help with CoEmu v2!
05/31/2009 - CO2 Private Server - 11 Replies
Hello Elitepvpers, I can't login! This is my error: http://img46.imageshack.us/img46/1135/errorhxb.th .png Can someone help me?



All times are GMT +1. The time now is 15:25.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.