|
You last visited: Today at 12:50
Advertisement
Hmm can anybody help me with this?
Discussion on Hmm can anybody help me with this? within the CO2 Private Server forum part of the Conquer Online 2 category.
10/08/2009, 01:24
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Hmm can anybody help me with this?
Ok see here this is what I need help changing.
For LOTF the basic NPC setup is this:
Code:
if (CurrentNPC == 390)
{
SendPacket(General.MyPackets.Say("Do you wish to propose to your sweetheart?"));
SendPacket(General.MyPackets.Say("Remember that marriage is a serious commitment, do not enter into it lightly."));
SendPacket(General.MyPackets.NPCLink("Yes I want to propose", 1));
SendPacket(General.MyPackets.NPCLink("Nooo I'm not ready", 255));
SendPacket(General.MyPackets.SetFace(30));
SendPacket(General.MyPackets.Finish());
}
Can anybody help me set it up so it will look like this:
Code:
if (CurrentNPC == 390)
{
Say("Do you wish to propose to your sweetheart?"));
Say("Remember that marriage is a serious commitment, do not enter into it lightly."));
Link("Yes I want to propose", 1));
Link("Nooo I'm not ready", 255));
Face(30));
Finish());
}
Help would be greatly appreciated.
Thanks alot!
|
|
|
10/08/2009, 01:46
|
#2
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
|
What exactly do you want help with?
|
|
|
10/08/2009, 01:49
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Zion~
What exactly do you want help with?
|
For somebody to help me set it up like the second example I showed.
|
|
|
10/08/2009, 02:06
|
#4
|
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
|
Quote:
Originally Posted by Tiku
Ok see here this is what I need help changing.
For LOTF the basic NPC setup is this:
Code:
if (CurrentNPC == 390)
{
SendPacket(General.MyPackets.Say("Do you wish to propose to your sweetheart?"));
SendPacket(General.MyPackets.Say("Remember that marriage is a serious commitment, do not enter into it lightly."));
SendPacket(General.MyPackets.NPCLink("Yes I want to propose", 1));
SendPacket(General.MyPackets.NPCLink("Nooo I'm not ready", 255));
SendPacket(General.MyPackets.SetFace(30));
SendPacket(General.MyPackets.Finish());
}
Can anybody help me set it up so it will look like this:
Code:
if (CurrentNPC == 390)
{
Say("Do you wish to propose to your sweetheart?"));
Say("Remember that marriage is a serious commitment, do not enter into it lightly."));
Link("Yes I want to propose", 1));
Link("Nooo I'm not ready", 255));
Face(30));
Finish());
}
Help would be greatly appreciated.
Thanks alot!
|
Here is a way simpler way.
Place these in I'm guessing client.cs
Code:
public void Say(string text)
{
SendPacket(General.MyPackets.NPCSay(text));
}
public void Link(string text, byte option)
{
SendPacket(General.MyPackets.NPCLink(text, option));
}
public void Exit(string text)
{
SendPacket(General.MyPackets.NPCLink(text, 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
public void NoRoom()
{
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
1. NPC with enough room for a exit saying
Code:
Say("Want free cps?");
Link("Yes!", 1);
Exit("No");
2. NPC withOUT enough room for exit saying
Code:
Say("Want free cps?");
Link("Possibly", 1);
Link("Maybe", 2);
Link("Oh Yeah", 3);
Link("Could Be", 4);
Link("Me Love You long time!", 5);
Link("Newb", 6);
Link("I make sexy time with your mother.", 7);
NoRoom();
np
|
|
|
10/08/2009, 02:37
|
#5
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
|
Quote:
Code:
Say("Want free cps?");
Link("Possibly", 1);
Link("Maybe", 2);
Link("Oh Yeah", 3);
Link("Could Be", 4);
[COLOR="Magenta"][B][SIZE="3"]Link("Me Love You long time!", 5);[/SIZE][/B][/COLOR]
Link("Newb", 6);
[COLOR="Purple"][B][SIZE="3"]Link("I make sexy time with your mother.", 7);[/SIZE][/B][/COLOR]
NoRoom();
|
lol'd
But its me lob you lang time!
|
|
|
10/08/2009, 02:47
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
[QUOTE=Empty Project;3173678][B]Here is a way simpler way.
Place these in I'm guessing client.cs
Code:
public void Say(string text)
{
SendPacket(General.MyPackets.NPCSay(text));
}
public void Link(string text, byte option)
{
SendPacket(General.MyPackets.NPCLink(text, option));
}
public void Exit(string text)
{
SendPacket(General.MyPackets.NPCLink(text, 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
public void NoRoom()
{
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
See I know whats needed to make that work.
I just do not know where to put those.
I can never get the hang of it.
But mine is like this
Code:
public void Finish()
{
SendPacket(General.MyPackets.NPCFinish());
}
public void Face()
{
SendPacket(General.MyPackets.NPCSetFace(30));
}
|
|
|
10/08/2009, 03:30
|
#7
|
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
|
[quote=Tiku;3173752]
Quote:
Originally Posted by Empty Project
[B]Here is a way simpler way.
Place these in I'm guessing client.cs
Code:
public void Say(string text)
{
SendPacket(General.MyPackets.NPCSay(text));
}
public void Link(string text, byte option)
{
SendPacket(General.MyPackets.NPCLink(text, option));
}
public void Exit(string text)
{
SendPacket(General.MyPackets.NPCLink(text, 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
public void NoRoom()
{
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
See I know whats needed to make that work.
I just do not know where to put those.
I can never get the hang of it.
But mine is like this
Code:
public void Finish()
{
SendPacket(General.MyPackets.NPCFinish());
}
public void Face()
{
SendPacket(General.MyPackets.NPCSetFace(30));
}
|
lol use mine and go at the very end of client.cs right BEFORE the last } and put it there.
|
|
|
All times are GMT +2. The time now is 12:50.
|
|