Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 04:53

  • Please register to post and access all features, it's quick, easy and FREE!


[REQUEST]Npc That switch silvers for cps.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 23
Received Thanks: 2
[REQUEST]Npc That switch silvers for cps.

Hello, Well i need an npc that switches silvers for cps and cps for silvers.I made sure that searched before i posted this also advanced search but if theirs still a guide for it out their it will be greatly appreciated if you post it here for me xD And if i typo in anything sorry :/

Ty in Advance



-Instinct is offline  
Old 07/19/2009, 05:39   #2
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
this isnt to flame you but code it your self npcs are the easy ones to even do.


Pete1990 is offline  
Old 07/19/2009, 05:42   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by Pete1990 View Post
this isnt to flame you but code it your self npcs are the easy ones to even do.
I would but im learning as am going so if someone posts somthing i should learn from it.
-Instinct is offline  
Old 07/19/2009, 05:51   #4
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
look at other npcs in ur source u will find one to look off of.


Pete1990 is offline  
Old 07/19/2009, 05:58   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by Pete1990 View Post
look at other npcs in ur source u will find one to look off of.
Thx for the suggestion Pete but im still new to this so i need some help so yeah..
-Instinct is offline  
Old 07/19/2009, 06:10   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Kk all you need is this


NPC Dialog
NPC Control
Send Packets for CPs
Checking CPs
If & Else for CP Checking
f0am is offline  
Old 07/19/2009, 06:11   #7
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
take cpadmin and change the DB code for silver ....

and them put the cps u wnat and another things ^^
12tails is offline  
Thanks
1 User
Old 07/19/2009, 06:12   #8
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
What source are you using if its coemu ill Give you a little bit but will not do the whole thing
hunterman01 is offline  
Thanks
1 User
Old 07/19/2009, 06:39   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
here is bro ( if is LOTF source )
Search for
if (CurrentNPC == 1010)
and above it add
Quote:
if (CurrentNPC == 354784)
{
SendPacket(General.MyPackets.NPCSay("Text"));
SendPacket(General.MyPackets.NPCLink("CPS", 1));
SendPacket(General.MyPackets.NPCLink("No money.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
them search for: if (CurrentNPC == 1010) again... it must take you to the npc controls....them add it above: if (CurrentNPC == 1010)

Quote:
if (CurrentNPC == 354784)
{
if (MyChar.Silvers >= the ammount u wan't to remove gold from inventory to take cps u wan't to)
{
MyChar.Silvers -= the same value as u put before;
MyChar.CPs += the cpos u wan't to take whith it;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
}
}
if i'm wrong in something.... post it.... but i tryed and works fine
12tails is offline  
Thanks
1 User
Old 07/19/2009, 06:40   #10
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Here....As requested on MSN

*EDITED FIXED

Code:
                            #region Trader
                            if (CurrentNPC == 1200)
                            {
                                SendPacket(General.MyPackets.NPCSay("Hey kid, Want to trade?"));
                                SendPacket(General.MyPackets.NPCLink("CPs for Silvers", 1));
                                SendPacket(General.MyPackets.NPCLink("Silvers for CPs", 2));
                                SendPacket(General.MyPackets.NPCLink("Bak Off BiTch!", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                            #endregion
Code:
#region Trader

                            if (CurrentNPC == 1200)
                            {
                                if (Control == 1)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Pick.."));
                                    SendPacket(General.MyPackets.NPCLink("500k Silvers [215]", 3));
                                    SendPacket(General.MyPackets.NPCLink("5M Silvers [2150]", 4));
                                    SendPacket(General.MyPackets.NPCLink("nVm!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 2)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Pick.."));
                                    SendPacket(General.MyPackets.NPCLink("215 CPs [500k]", 5));
                                    SendPacket(General.MyPackets.NPCLink("2150 CPs [5M]", 6));
                                    SendPacket(General.MyPackets.NPCLink("nVm!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 3)
                                {
                                    if (MyChar.CPs >= 215)
                                    {
                                        MyChar.CPs -= 215;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        MyChar.Silvers += 500000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Get the hell out! Stupid Thief!"));
                                        SendPacket(General.MyPackets.NPCLink("Oh ShiT!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                                if (Control == 4)
                                {
                                    if (MyChar.CPs >= 2150)
                                    {
                                        MyChar.CPs -= 215;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        MyChar.Silvers += 5000000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Get the hell out! Stupid Thief!"));
                                        SendPacket(General.MyPackets.NPCLink("Oh ShiT!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                                if (Control == 5)
                                {
                                    if (MyChar.Silvers >= 500000)
                                    {
                                        MyChar.CPs += 215;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        MyChar.Silvers -= 500000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Get the hell out! Stupid Thief!"));
                                        SendPacket(General.MyPackets.NPCLink("Oh ShiT!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                                if (Control == 6)
                                {
                                    if (MyChar.Silvers >= 5000000)
                                    {
                                        MyChar.CPs += 2150;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        MyChar.Silvers -= 5000000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Get the hell out! Stupid Thief!"));
                                        SendPacket(General.MyPackets.NPCLink("Oh ShiT!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }

                            }

                            #endregion
f0am is offline  
Thanks
2 Users
Old 07/19/2009, 06:42   #11
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Honestly it is one of the easiest npcs out there 0.0
hunterman01 is offline  
Old 07/19/2009, 06:43   #12
 
elite*gold: 0
Join Date: Jul 2009
Posts: 178
Received Thanks: 9
Kk we got it thanks
#request Close
PS im with -instinct
xXxTwiztedKidxXx is offline  
Old 07/19/2009, 09:12   #13
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
#Closed


kinshi88 is offline  
Closed Thread



« 4135 Client? | [Help] PkTournament »

Similar Threads
Where u buy ur Dil/Coppers/Silvers
07/27/2010 - Dekaron - 7 Replies
Can anyone tell me where they buy Dil/Coppers/Silvers the old site i bought them dont have any one stock and don't seem to support 2moons anymore. thnx
WTS 100 silvers SIZ
04/23/2010 - Dekaron Trading - 0 Replies
pm me
Silvers [SIZ]
04/23/2010 - Dekaron Trading - 1 Replies
ok its simpple i have 300 silvers for sell.I sell it for cheap.I accept dill only pm me.Its realy cheap
WTS 50 silvers on Siz Server
01/15/2010 - Dekaron Trading - 5 Replies
Like it said in the topic.. I'm selling my last 50 silvers on Siz Server if anyone interested. I'm accepting dils or paypal on Siz only. If you buy with paypal the payment will be processed via invoice.



All times are GMT +2. The time now is 04:53.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.