[Release]Easier Npc System for LOTF

11/26/2009 18:22 Arcо#16
Quote:
Originally Posted by Korvacs View Post
Why are the methods placed in client.cs?
Because I placed it in the *.cs in which the Npc functions are in.
11/27/2009 09:47 Santa#17
Quote:
Originally Posted by Tiku View Post
Don't just say it.
Press it.
I'd appreciate it.
What difference does it make if hes says it in person or presses it, all it shows is that you don't really care about people saying thanks and all you want is number...


Oh and btw, this is stupid, now every 5165 server i log on is going to have the same face for EVERY npc.
11/27/2009 10:04 UnoAmigos#18
Finally..."release" thread by a noobie.... :D
11/27/2009 17:25 stiggydude#19
Quote:
Originally Posted by StarBucks View Post
What difference does it make if hes says it in person or presses it, all it shows is that you don't really care about people saying thanks and all you want is number...


Oh and btw, this is stupid, now every 5165 server i log on is going to have the same face for EVERY npc.
actually, no this can be edited with one other thing. here watch.

Quote:
public void Say(string text)
{
GC.AddSend(Packets.NPCSay(text));
}
public void Link(string text, byte option)
{
GC.AddSend(Packets.NPCLink(text, option));
}
public void Done(string text)
{
GC.AddSend(Packets.NPCLink(text, 255));
}
public void Face(string text)
{
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
now instead of just having
Say
Link
Done

you will include face under it.
11/27/2009 17:37 Basser#20
why is there an string (called text) in the face void?
I would either;
- Change the Face(string text) to Face(int face) and than make the user give the number.
or
- Combine the Done and Face void if you don't let the user choose the face.
If you pick the first option, make sure you make face + some number (11 I guess?) because of TQ's weird structures, you could also add the +11 in the packet itself, but would be harder for the person that follows this guide.

Anyway, nice guide I guess, I personally think this is very easy to add, but surprisingly, nobody used these things at LOTF.
Probably because people only care about features, not efficiency of the source.
11/27/2009 21:53 Korvacs#21
Quote:
Originally Posted by Tiku View Post
Because I placed it in the *.cs in which the Npc functions are in.
Does LOTF use a thread per client system?
11/27/2009 22:36 |BasicCoder|#22
The only problem i get is with AddSend it be comes a error know how to fix it =\
11/27/2009 23:50 damianpesta#23
Quote:
Originally Posted by |BasicCoder| View Post
The only problem i get is with AddSend it be comes a error know how to fix it =\
lol and you're calling yourself a coder.
11/28/2009 01:29 |BasicCoder|#24
Quote:
Originally Posted by damianpesta View Post
lol and you're calling yourself a coder.
I mess around with the basics nothing special
Stop flaming me for asking a question
11/28/2009 08:46 ~Yuki~#25
Quote:
Originally Posted by Korvacs View Post
Does LOTF use a thread per client system?
Nope ^^
12/04/2009 21:25 sawickas#26
For 1565 It dont woark :D
12/04/2009 22:09 ~*NewDuuDe*~#27
Quote:
Originally Posted by sawickas View Post
For 1565 It dont woark :D
You could do an attempt on it yourself, lol.