Register for your free account! | Forgot your password?

You last visited: Today at 11:41

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

Advertisement



[Help] 5165 NPC Help

Discussion on [Help] 5165 NPC Help within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 01/14/2010, 16:36   #16
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Ahh forgot about that. Also make sure you save the character to database/ini or else it might rollback on ppl if they dc before something else saves their character.
pro4never is offline  
Old 01/14/2010, 22:41   #17
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Alright thanks for your help, maybe ill try fix it some other time when i learn abit more XD
xScott is offline  
Old 01/17/2010, 08:57   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Actually if you guys look at his code what he is doing wrong is placing {'s at the wrong places.
He has a control 1 inside of control 0 which it shouldn't be.
He has it like this;
if (Control == 0)
{
Stuff blahblah
if(Control == 1)
{

}
}
When it should be like
if (control == 0)
{
}
if (control == 1)
{
}


Arcо is offline  
Old 01/21/2010, 03:10   #19
 
vgcman1500's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 51
Received Thanks: 47
Quote:
Originally Posted by xScott View Post
ugh i just cant get it to work ><
Go to npc.txt in oldcodb and search the npc id and if there two delete one and might work
vgcman1500 is offline  
Old 01/21/2010, 08:56   #20
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by vgcman1500 View Post
Go to npc.txt in oldcodb and search the npc id and if there two delete one and might work
That's not it at all.
He isn't using brackets right.
Arcо is offline  
Old 05/11/2011, 10:44   #21
 
elite*gold: 0
Join Date: Jan 2011
Posts: 7
Received Thanks: 0
@xScott
I think this: (could be wrong)
1) does the npc talk when you click on it? If yes, then good.
2) The npc won't make the attribute points change:
Now, I believe it should be: GC.MyChar.Agi += 275;
(you might be missing the '+' sign.), i'll test ur code right now to see whats wrong.

EDIT<<<<
Ok, i just tested your npc and you simply missed out on the + sign as stated above.
I also edited your npc to make run/look better but deleting some of the brackets you had.
So, here is the full working NPC (credits to xScott ofcourse, i just touched it up a bit)

Code:
#region Stats
                            case xxxx:
                                {
                                    if (Control == 0)
                                    {
                                        if (GC.MyChar.Level >= 120 && GC.MyChar.Reborns >= 1)
                                        {
                                            GC.AddSend(Packets.NPCSay("Hey, are you the type of person who Allots all your points to HP? "));
                                            GC.AddSend(Packets.NPCSay("If your sick of Realloting your points to weild seperate gear then i can help you. "));
                                            GC.AddSend(Packets.NPCSay("Remember, You have to be promoted to the highest promotion to do this! "));
                                            GC.AddSend(Packets.NPCSay("Required Statuses to Boost Attribute points, Strength Point classes: Trojan, Warrior, Water "));
                                            GC.AddSend(Packets.NPCSay("Required Statuses to Boost Attribute points, Aggility Point classes: Ninja, Archer "));
                                            GC.AddSend(Packets.NPCSay("This will cost 1290CPs"));
                                            GC.AddSend(Packets.NPCLink("Strength Attribute Points", 1));
                                            GC.AddSend(Packets.NPCLink("Aggility Attribute Points", 2));
                                            GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else  //not right level
                                        {
                                            GC.AddSend(Packets.NPCSay("Im sorry but this option is only aloud for players that exceed level 120, Come back when your stronger!"));
                                            GC.AddSend(Packets.NPCLink("Oh, Sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.Job == 15 || GC.MyChar.Job == 25 || GC.MyChar.Job == 135 && GC.MyChar.CPs >= 1290) //checks if its a tro,war or water & has 1290
                                        {
                                            GC.MyChar.CPs -= 1290;
                                            GC.MyChar.Str += 175;
                                            GC.AddSend(Packets.NPCSay("There you go, You now have 176 Strength. Come back if you reallot your Attribute Points again!"));
                                            GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Im sorry, But you are not a TrojanMaster, WarriorMaster or WaterSaint."));
                                            GC.AddSend(Packets.NPCLink("Sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.Job == 55 || GC.MyChar.Job == 45 && GC.MyChar.CPs >= 1290) //checks if ninja or archer & cps
                                        {
                                            GC.MyChar.CPs -= 1290;
                                            GC.MyChar.Agi += 275;
                                            GC.AddSend(Packets.NPCSay("There you go, You now have 176 Strength. Come back if you reallot your Attribute Points again!"));
                                            GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Im sorry, But you are not a NinjaMaster or ArcherMaster."));
                                            GC.AddSend(Packets.NPCLink("Sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
noblewarrior is offline  
Reply


Similar Threads Similar Threads
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
need help 5165
03/07/2010 - CO2 Private Server - 3 Replies
i need code alex 2 rb full plz for 5165:)
[Help]5165
02/08/2010 - CO2 Private Server - 0 Replies
Okay I know I know, I am a noob at coding and crap. So my problems are... 1. Invalid jump -.- so gay, it wont let me disconnect 2. i have all packets and shiz for breeder or whateva and the npcs still say "i dont have anything coded or whateva, my id is 1234" 3. How do i change npc names that are already made. For example, Say i want to change an npc i just made called Warehouseman to ChingChong. 4. I have no clue whatsoever on how to start my website. i have gone to http://(myipaddress)/...
about 5165
02/07/2010 - CO2 Private Server - 2 Replies
i need leveling is normal not fast i take level 137 in 20 mint only
IP Ban in 5165
12/21/2009 - CO2 Private Server - 3 Replies
I cannot for the life of me get it implemented Any help?



All times are GMT +1. The time now is 11:42.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.