Welcome Npc Script/setup for TwiztedKid:
Code:
case 211092: //Welcomer npc *MODIFIED*//
{
if (LinkBack == 0)
{
Text("\nHey " + CSocket.Client.Name, CSocket);
Text("\nWelcome to AlchemyCo. Everything is still in an early stage ", CSocket);
Link("How do I get items?", 1, CSocket);
Link("New Features?", 2, CSocket);
Link("Is Guild war Working?", 3, CSocket);
Link("Nevermind!", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
{
Text("\nIf u need items, Please talk to Pedlar. ", CSocket);
Text("\nShe will give you full +12 2 socket items", CSocket);
Link("I have more questions.", 0, CSocket);
Link("Thanks.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 2)
{
{
Text("\nMagicGates functioning perfectly!", CSocket);
Text("\nFreeItem Npc 90 pct functional (gives +12 2 sockets, max lvl and skills) ", CSocket);
Text("\nNewMap being tested with difficult mobs. Please go there via MagicGates", CSocket);
Link("I have more questions.", 0, CSocket);
Link("Ok, thanks!.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 3)
{
{
Text("GW is not working unfortunately. Nor are most skills", CSocket);
Link("Aww, I have more questions.", 0, CSocket);
Link("Ok, thanks!.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
break;
}
In the database (using navicat or similar program) under npcs
Code:
211092 211092 2610 1002 427 366 2 0
211092 = npc id (for tracking, must be unique!)
221092 = npc script (does not need to be unique!)
2610 = npc appearance/name (client side!) (take off last digit, 261 in npc.ini)
1002 = map
etc
If you don't have face defined place this down near the bottom of npctalk (where all the other public static's are
Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
}