[HELP]Cps NPC

03/03/2009 19:30 fearmeh#1
i need help.. i want to make a npc which tells: exchange 2kk silvers for 2k cps
then if u give the npc 2,000,000 silvers it gives u 2,000 cps
03/03/2009 20:31 cazzon717#2
Hey,
Depending on your source this should work, it dont work with TQ Binarys

So place this into NpcSay.

Code:
if (CurrentNPC == 74547)
{
SendPacket(General.MyPackets.NPCSay("I can exchange 2,000,000 silvers into 2,000  cps.  Do you want to trade?"));
SendPacket(General.MyPackets.NPCLink("Yes", 1));
SendPacket(General.MyPackets.NPCLink("No", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Next Place this into NPCDo,

Code:
if (CurrentNPC == 74547)
{
if (Control == 1)
{
if (MyChar.Silvers >= 2000000)
{
MyChar.Silvers -= 2000000;
MyChar.CPs += 2000;
Drop(); //dont need this but i use it to refresh the client
}
}
}
Spawn the npc with UID : 74547

Hope this helped
03/03/2009 21:07 fearmeh#3
ty
03/03/2009 21:10 fearmeh#4
and does any1 know it too for tq binarys?
03/03/2009 21:12 PeTe Ninja#5
here try this one , you dont need to drop your client for this one and i think it will work better

Code:
                            if (CurrentNPC == 7501)
                            {
                                SendPacket(General.MyPackets.NPCSay("Do you need Conquer Points? Give me 2M Silvers and ill give you 2k Cps"));
                                SendPacket(General.MyPackets.NPCLink("Ok Sweet", 1));
                                SendPacket(General.MyPackets.NPCLink("No Thanks, Rip Off Much!", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
and the controls

Code:
                            if (CurrentNPC == 7501)
                            {
                                if (Control == 1)
                                {
                                    if (MyChar.Silvers >= 2000000)
                                    {
                                        MyChar.Silvers -= 2000000;
                                        MyChar.CPs += 2000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));

                                    }
                                }
                            }
no i didnt copy off anything i just made it in like 2 minutes if it dont work it then tell me but it should ><

BTW

this is for LOTF
03/04/2009 08:35 Alex0071988#6
hey can someone add my id :[Only registered and activated users can see links. Click Here To Register...],cuz i want to asck something about this npc
03/04/2009 14:42 galdik#7
fearmeh part2 link below (I think)