Ae Galera essa é a quest que eu tava querendo fazer eu mesmo fiz deve tah meui ruim pq foi a primeira ki eu fiz
No NPSDialog.cs vc coloka isso:
e no NPC.txt vc coloka isso:
c vcs gostaram deem thanks ae to com -2 thanks xD
Eu so o Virapha do 4botters so pra avisar que eu naum copiei
No NPSDialog.cs vc coloka isso:
- Código:
#region PowerEXPBall
case 5849612:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello,Wanna get a PowerEXPBall for free!?"));
GC.AddSend(Packets.NPCLink("Yep.", 1));
GC.AddSend(Packets.NPCLink("Nope.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("First you'll need to bring me a HeavenRune.You can get a HeavenRune from RuneVendor at 385,249"));
GC.AddSend(Packets.NPCLink("I'm in.!", 2));
GC.AddSend(Packets.NPCLink("I've got the Rune.!", 3));
GC.AddSend(Packets.NPCLink("Are you crazy!?!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
if (GC.MyChar.InventoryContains(729969, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(729969));
GC.MyChar.AddItem(723744);
GC.AddSend(Packets.NPCSay("Congratulations!,You have earned a PowerEXPBall"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
Console.WriteLine("PowerEXPBall quest used by" + GC.MyChar.Name + "!");
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, you don't have HeavenRune!."));
GC.AddSend(Packets.NPCLink("OK", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
#endregion
#region RuneVendor
case 5849613:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello,Wanna get a HeavenRune?"));
GC.AddSend(Packets.NPCLink("Yep.", 1));
GC.AddSend(Packets.NPCLink("Nope.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("First you'll need to bring me a Emerald"));
GC.AddSend(Packets.NPCLink("I'm in.!", 2));
GC.AddSend(Packets.NPCLink("I've got the Emerald.!", 3));
GC.AddSend(Packets.NPCLink("Are you crazy!?!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
if (GC.MyChar.InventoryContains(1080001, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1080001));
GC.MyChar.AddItem(729969);
GC.AddSend(Packets.NPCSay("Here is your HeavenRune"));
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 the Emerald!."));
GC.AddSend(Packets.NPCLink("OK", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
#endregion
e no NPC.txt vc coloka isso:
- Código:
5849612 1260 2 43 1002 446 348
5849613 1210 2 59 1002 385 249
c vcs gostaram deem thanks ae to com -2 thanks xD
Eu so o Virapha do 4botters so pra avisar que eu naum copiei