omg ur npc is so messed up why have u added useles shit "/par" o.O
here is the working npc
Quote:
#region sohaib npc
case 300091:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Welcome to the pinoySeller, we sell +7 and +8 stones here.By Nazih "));
GC.AddSend(Packets.NPCLink("Cool let me in.", 1));
GC.AddSend(Packets.NPCLink("Haa Ok Then", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Are you interested in any of these Items?"));
GC.AddSend(Packets.NPCLink("+7 stone - 5100 Cps", 2));
GC.AddSend(Packets.NPCLink("+8 stone - 20000 Cps", 3));
GC.AddSend(Packets.NPCLink("LifeFuit basket - 100 CPs", 4));
GC.AddSend(Packets.NPCLink("No, thanks.", 255));
GC.AddSend(Packets.NPCSetFace(22));
GC.AddSend(Packets.NPCFinish());
}
if (GC.MyChar.Level <= 69)
{
GC.AddSend(Packets.NPCSay("Welcome to the pinoySeller, we sell special items here !! But ur not have lvl 70 yet!"));
GC.AddSend(Packets.NPCLink("Damn.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if (GC.MyChar.CPs >= 5100)
{
GC.MyChar.CPs -= 5100;
GC.MyChar.AddItem(730007);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 3)
{
if (GC.MyChar.CPs >= 20000)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.AddItem(730008);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
if (GC.MyChar.CPs >= 100)
{
GC.MyChar.CPs -= 100;
GC.MyChar.AddItem(723725);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
Note... he just said breeder as an example so he'd know how to change prices and stuff himself...
But yah..
If it's a SHOP you edit the shop.dat file (guides have been posted, search), if it's an npc you edit the code itself to change the cost, perform a check to see if the user has enough money/cp
[Question] for coding part ... 12/31/2009 - Dekaron Private Server - 2 Replies If skill name part or etc. files passes over 255 line at present, error becomes.
Is it that is so because byte coding is measure?
[QUESTION] Coding Portals 06/29/2009 - CO2 Private Server - 25 Replies Can someone like give me a hint how to code Portals into the source?
Coding Question Only Answers NO FLAMING 07/05/2008 - Conquer Online 2 - 2 Replies Ok I am still working on my pvp server to make it a lvl server so my question is how to delet all commands? exepct skills and profs,job but the stuff and lvl commands if u need more info just ask
AND THIS POST IS MADE TO GET AN ANSWER NOT TO GET FLAMED LIKE
"wath a noob coder" and shit thank u any way.
Other Question IS i got the lvl rates to work but how to add drops if needed more info pm me
Question About Coding... 07/03/2008 - Conquer Online 2 - 12 Replies Ok I Need Sum Help With A PvP Server It Has infinity Stamina taths noth the probleem but HERC is (they spam it like hell ) How Could Our Team Delet Skill "Herc" or make the command admin Thx For Help If u Wanne Join Us go TO DragonCO :P