CoEmu

08/21/2009 08:54 1supertao#1
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...?
08/21/2009 20:35 xellios#2
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
08/21/2009 21:04 1supertao#3
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
08/21/2009 21:07 f0am#4
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 :D but anyway

are you still with sage gaming
08/21/2009 21:14 xellios#5
#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 ;/?
08/21/2009 21:21 1supertao#6
I have NOO clue.. hmm.. ya ima look around ... on Guilds... and ill post what i get here...
08/21/2009 21:22 f0am#7
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 :D
08/21/2009 21:28 xellios#8
Uhm i just gave him that lmao?..

EDIT:
IF he just bothered to TEST it ..
08/21/2009 21:28 kinshi88#9
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.
08/21/2009 21:36 xellios#10
No no no kinshi.. he is asking for a complete fully done without even bothering to get up and use his lazy ass mind CODE TO DO THAT! When do people finally listen .. :S >: P
08/21/2009 21:47 1supertao#11
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..
08/21/2009 21:51 xellios#12
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.
08/21/2009 22:00 1supertao#13
Quote:
public static void Input(string text, int LinkBack, ClientSocket CSocket)
And is this the void that sends it right? and to where?
08/22/2009 02:24 samehvan#14
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