im looking for someone that can help me to Fix this problem an i hope that im gonna find him here
i want to add an NPC somewhere in my privet server let me know if im doing it the right way and if not plzzzz i need to know right way to do it ......HOW DID I DO IT .
OK here is the thing i went to the file that calld NPCDialog.Cs opened it than scrolling down to the end of the codes and right where it says #endregion i added the following code
Code:
#region Celestial tao
case 21155:
{
{
GC.AddSend(Packets.NPCSay("Heya do u want to rellot your points!?"));
GC.AddSend(Packets.NPCLink("Yep!.", 200));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 200)
{
GC.AddSend(Packets.NPCSay("Alright I'll need an DragonBall."));
GC.AddSend(Packets.NPCLink("Okay here is it.", 201));
GC.AddSend(Packets.NPCLink("Its too expensive.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 201)
{
if (GC.MyChar.Reborns > 0)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
Game.Item DB = null;
foreach (Game.Item I in GC.MyChar.Inventory)
if (I.ID == 1088000)
{ DB = I; break; }
if (DB != null)
{
int AllAtributes = GC.MyChar.Str +
GC.MyChar.Agi +
GC.MyChar.Spi +
GC.MyChar.Vit + GC.MyChar.StatPoints;
GC.MyChar.Str = 0;
GC.MyChar.Agi = 0;
GC.MyChar.Spi = 0;
GC.MyChar.Vit = 1;
GC.MyChar.StatPoints = (ushort)(AllAtributes - 1);
GC.MyChar.CurHP = 1;
GC.MyChar.RemoveItem(DB);
GC.AddSend(Packets.NPCSay("Okay, Done."));
GC.AddSend(Packets.NPCLink("Thank you.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You dont have the dragonball..."));
GC.AddSend(Packets.NPCLink("Ahh.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("Your not reborn...Come back when you are reborned."));
GC.AddSend(Packets.NPCLink("Alright.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
21155 8360 2 67 1002 440 370
and finally its time to test it so i started the server went to where i added the npc and clicked on him it says the WTFF is going on it says I DONT DO ANYTHING USEFUL YET MY ID IS 21155
an i dont know how to Fix it and whenever i try to change any of the things that is in the NPCDialog.Cs like the words that the nps shuold say it dosent change it and I EVEN tryed to delete the NPCDialog.Cs file and still the NPCS that i want to change is still talking and giveing me the same lines when i click on them and the ones that im adding they NEVER WORKS ((((((
so i really need some help down here
WHT IS THE RIGHT WAY TO DO IT !!!!







