I realize that I'm garbage at figuring these things out, but could/would anyone tell me where to edit what the NPCs say when you click on them? anyone?
if (CurrentNPC == UID)
if (CurrentNPC == 119928)
{
SendPacket(General.MyPackets.NPCSay("Hi, I'm the example NPC.")); [COLOR="seagreen"]//simply what the NPC says.//Opening speach, but not enough, we need options.[/COLOR]
SendPacket(General.MyPackets.NPCLink("Really?", [COLOR="Blue"]1[/COLOR])); [COLOR="seagreen"]//the number at the end in blue is the control number. Whenever you create an option, you need a control number to access the next window.[/COLOR]
SendPacket(General.MyPackets.NPCLink("Sorry!", [COLOR="Blue"]255[/COLOR])); [COLOR="seagreen"]//control 255 automatically closes the window.[/COLOR]
SendPacket(General.MyPackets.NPCSetFace(30)); [COLOR="seagreen"]//the NPC face, not required, but nice to have.[/COLOR]
SendPacket(General.MyPackets.NPCFinish()); [COLOR="seagreen"]//ends the options for the npc.
}[/COLOR]
if (CurrentNPC == 10101010)
{
if (MyChar.RBCount >1)
{
SendPacket(General.MyPackets.NPCSay("You can't get first reborn two times moron."));
SendPacket(General.MyPackets.NPCLink("Sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
If (MyChar.Level >=120
{
SendPacket(General.MyPackets.NPCSay("Want to get reborn? Then give me a CelestialStone"));
SendPacket(General.MyPackets.NPCLink("Take it, just make me a noob again.", 1));
SendPacket(General.MyPackets.NPCLink("No way, I worked hard for this stone.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
if (CurrentNPC == 119928)
{
if (Control == 1) [COLOR="SeaGreen"]//Remember the control you added to the option? Here it is at work...[/COLOR]
{
SendPacket(General.MyPackets.NPCSay("Yes, I am the example NPC."));
SendPacket(General.MyPackets.NPCLink("For real?", 5));
SendPacket(General.MyPackets.NPCLink("Liar, Goodbye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 5)
{
SendPacket(General.MyPackets.NPCSay("Yes, I'll prove it... Bring me Meteor, and I'll give you a MeteorTear"));
SendPacket(General.MyPackets.NPCLink("Give me a meteor.", 7));
SendPacket(General.MyPackets.NPCLink("BS, I'm out of here.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 7)
{
if (MyChar.InventoryContains(ItemID, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(ItemID));
MyChar.AddItem("ItemID-0-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
}
else
{
SendPacket(General.MyPackets.NPCSay("How stupid do you think I am? Think you can cheat me that easy?"));
SendPacket(General.MyPackets.NPCLink("Sorry o.o", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}