I've modified Grotto npc for some of you. This one let's you choose, Grotto 1 or Grotto 3. Also, this is my first npc.
If you're here to flame me, then just Alt + F4 . I ain't gonna take shiz from any of you. If you don't like my release/updates.. Then, please.. Just keep all the gibberish to yourself.
Alright let's begin.
-------------------------------------------
Go to your OLDCODB and find NPCs.txt and Add this
Code:
100001 4194 2 0 1000 472 645
Next, open your database (Your NewestCOServer project)
Go to NPCDialog.cs and search for default: <-- Then above it paste this
Code:
#region FrozenGrotto
case 100001:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("The Frozen Grotto was once a beautiful and peaceful place, till the Evil powers arrived and destroyed everything. Do you wanna help me to save it?"));
GC.AddSend(Packets.NPCLink("Of course! Send me to the First Floor!", 1));
GC.AddSend(Packets.NPCLink("I'm a badass, Send me to the Next Floor!", 2));
GC.AddSend(Packets.NPCLink("I'm sorry. I'm not the right man/woman to help you.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 2000)
{
GC.MyChar.CPs -= 2000;
GC.MyChar.Teleport(1762, 61, 255);
GC.AddSend(Packets.NPCSay("Here we are. Becareful of the Evil lord's minion."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sorry. You don't have enough of CP's to be teleported there. It costs 2 000 CPs to use my magic to get you there."));
GC.AddSend(Packets.NPCLink("Damn. I'll be right back.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
if (GC.MyChar.CPs >= 2000)
{
GC.MyChar.CPs -= 2000;
GC.MyChar.Teleport(9996, 386, 453);
GC.AddSend(Packets.NPCSay("Here we are. May the god's will, be with you."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sorry. You don't have enough of CP's to be teleported there. It costs 2 000 CPs to use my magic to get you there."));
GC.AddSend(Packets.NPCLink("Damn. I'll be right back.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
break;
#endregion
Regards, Secrets-man.
P.S : If you cry about that how you don't have monsters or you disconnect etc.. Then go to this post :






