I will not re-write this to any other sources, that is up to you. I did in the simplest way, which will make it easy for you others to re-write.
Code:
#region Shirley //both NPC's are needed.
case 20000: //this is a random number, same with the other NPC, change it to what ever you have.
{
if (LinkBack == 0)
{
Text("If I cannot hear from my brother, I would rather die than live loney", Client);
Link("Can I help you?", 1, Client);
Link("I have news!", 4, Client);
Link("Oh, another poor girl.", 255, Client);
}
else if (LinkBack == 1)
{
Text("My parents died when I was a child. My brother brought me up. I have not heard from him since he joined the army last year.", Client);
Link("How can I help you?", 2, Client);
Link("I am helpless.", 255, Client);
}
else if (LinkBack == 2)
{
Text("My brothers name is Ryan. He gave me this Jade for my 10th birthday. Would you take it to him, please?", Client);
Link("Sure, I must find him.", 3, Client);
Link("Sorry, I am to busy.", 255, Client);
}
else if (LinkBack == 3)
{
AddItem(721210, 0, 0, 0, 0, 0, Client);
Text("Please help me find my brother!", Client);
}
else if (LinkBack == 4)
{
if (InventoryContains(721211, Client))
{
Text("When I was young, I liked the Windbell very much. My brother often told me that I should take care of myself whatever happened.", Client);
Link("Wish you happiness", 5, Client);
}
else
{
Text("You do not have what I seek!", Client);
Link("Sorry, I shall come back later.", 255, Client);
}
}
else if (LinkBack == 5)
{
Text("I must live happily as my brother wished. Thanks for your help, I give you may favourite earring. Do you like it?", Client);
Link("Awesume! Thank you!", 6, Client);
}
else if (LinkBack == 6)
{
RemoveItem(721210, Client);
AddItem(117345, 0, 0, 0, 0, 0, Client); //this should be a super L47 earring, you may change it to what ever you want.
}
}
break;
#endregion #region SoldierLeader
case 13543:
{
if (LinkBack == 0)
{
if (InventoryContains(721210, Client))
{
Text("You are looking for Ryan? Sorry, he sacrificed his life on his first duty. This is his item. Please give it to his relatives", Client);
Link("Okay.", 1, Client);
Link("Sorry, I don't know him.", 255, Client);
}
else
{
Text("Hello! I am the leader of the soldiers in Ape Mountain.", Client);
Link("Cool.", 255, Client);
}
}
else if (LinkBack == 1)
{
RemoveItem(721210, Client);
AddItem(721211, 0, 0, 0, 0, 0, Client);
Text("Nobody wants to be a soldier, but we must defend our homeland from invasion. Many soldiers have sacrificed their lives.", Client);
Link("What a troubled world!", 255, Client);
}
}
break;
#endregion






