- Código:
#region Egg Quest npc 1
case 462378:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello, Im the starter nps for the Egg Quest of PGCO "));
GC.AddSend(Packets.NPCLink("I want to start the quest", 1));
GC.AddSend(Packets.NPCLink("O im to rich for this nub quest", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Vá Em Lab4 coords 151 178 "));
GC.AddSend(Packets.NPCLink("Give me the egg!", 2));
GC.AddSend(Packets.NPCLink("I dnt want to start the Quest!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if (GC.MyChar.InventoryContains(729934, 1))
{
GC.AddSend(Packets.NPCSay("I have gaven you the egg! already dnt try and cheat me!"));
GC.AddSend(Packets.NPCLink("I wnt try again!.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.MyChar.AddItem(729934);
GC.AddSend(Packets.NPCSay("I have gaven you the egg take it to that npc!"));
GC.AddSend(Packets.NPCLink("I will do so.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
#region Egg Quest npc 2
case 34345:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello,Iv'e been looking for this egg named SpecialEgg Do you have it?"));
GC.AddSend(Packets.NPCLink("Yes i have them", 1));
GC.AddSend(Packets.NPCLink("O no i dnt!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Vá para Twin City coords! 473,312 of Tc!"));
GC.AddSend(Packets.NPCLink("Give me the egg!", 2));
GC.AddSend(Packets.NPCLink("I dnt want to start the Quest!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if (GC.MyChar.InventoryContains(729934, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(729934));
GC.MyChar.AddItem(729937);
GC.AddSend(Packets.NPCSay("I have given you the egg take it to that npc!"));
GC.AddSend(Packets.NPCLink("I will do so.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, you don't have required egg."));
GC.AddSend(Packets.NPCLink("OK", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
#region Egg Quest npc 3
case 232234:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello,Iv'e been looking for this egg named RubyEgg Do you have it? "));
GC.AddSend(Packets.NPCLink("Yes i have them", 1));
GC.AddSend(Packets.NPCLink("O no im to rich for this nub quest", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Vá para DesertCity coords 491,620"));
GC.AddSend(Packets.NPCLink("Give me the egg!", 2));
GC.AddSend(Packets.NPCLink("I dnt want to start the Quest!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if (GC.MyChar.InventoryContains(729937, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(729937));
GC.MyChar.AddItem(729926);
GC.AddSend(Packets.NPCSay("I have gaven you the egg take it to that npc!"));
GC.AddSend(Packets.NPCLink("I will do so.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, you don't have required egg."));
GC.AddSend(Packets.NPCLink("OK", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
#region Egg Quest npc 4
case 232235:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello,Iv'e been looking for this egg named TepidEgg Do you have it? "));
GC.AddSend(Packets.NPCLink("Yes i have it", 1));
GC.AddSend(Packets.NPCLink("O no im to rich for this nub quest", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("For this egg ili give you 15k cps! Congratz for completeing the quest!"));
GC.AddSend(Packets.NPCLink("Give me the eggs!", 2));
GC.AddSend(Packets.NPCLink("I dnt want to start the Quest!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
if (GC.MyChar.InventoryContains(729926, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(729926));
GC.MyChar.CPs += 15000;
GC.AddSend(Packets.NPCSay("Congratulations!,You have earned 15k cps you can do this quest a unlimated amount of times a day! And rember to vote!"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
Console.WriteLine("Egg quest npc used by" + GC.MyChar.Name + "!");
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, you don't have required egg!."));
GC.AddSend(Packets.NPCLink("OK", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
#endregion
Creditos 4 Bhotters