Pode criar um Npc que vender os Voucher ou seja o DarkHorn 5 +13 8 +14 10 +15
LEVA THANKS!
LEVA THANKS!
#region DarkHornVendor
case 410019:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello "+ GC.MyChar.Name +" are you interessed buy this rare"));
GC.AddSend(Packets.NPCSay("item call DarkHorn. Is very expencive"));
GC.AddSend(Packets.NPCLink("I wanna buy", 1));
GC.AddSend(Packets.NPCLink("I dont wanna", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Ok my friend is 40k cps for une DarkHorn"));
GC.AddSend(Packets.NPCLink("I buy une", 2));
GC.AddSend(Packets.NPCLink("Is to expencive", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 2)
{
if (GC.MyChar.CPs >= 40000)
{
GC.MyChar.CPs -= 40000;
GC.MyChar.AddItem(790001);
GC.AddSend(Packets.NPCSay("Ty my friend if you wanna buy more only press buy"));
GC.AddSend(Packets.NPCLink("Buy", 2));
GC.AddSend(Packets.NPCLink("I dont need anymore", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sorry buy this item is not for poor ppl"));
GC.AddSend(Packets.NPCLink("Oh i see", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion