Ok well im dun asking for stuff i want im going to learn #c and stop being a damn lazy nub.... Ok i looked at some guides... and did i do this correct?
If i did not can u help me correct it? Its a nub NPC.. but it will give me the point how to use link,end,text.. and CSocket.. and Link Back...
Code:
#region TEST NCP
case 10008://TEST
if (LinkBack == 0)
{
Text("Would you like to buy a DB for 100CPs?", CSocket);
Link("Sure, I guess", 1, CSocket);
Link("No Thanks", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.CPs >= 100)
{
CPs(-100, CSocket);
AddItem(1088000, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
}
else
{
Text("Im sorry you do not have the required amount of cps", CSocket);
Link("Okay", 255, CSocket);
End(CSocket);
}
break;
}
#endregion