Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:18

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

Advertisement



[Source 5165] - BigginerPack[Coding] Help!

Discussion on [Source 5165] - BigginerPack[Coding] Help! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 65
Received Thanks: 1
[Source 5165] - BigginerPack[Coding] Help!

Hello,
I want to make a NPC standing in TwinCity, he gives the player a Begginer Pack that contains whatever items I want to to be inside it, how can I make that?

First, I should make the NPC (in NPCDialog.cs)

#region npcname
case 1270:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Welcome to Conquer Online, I will give you a Begginer Pack to help you in your journey."));
GC.AddSend(Packets.NPCLink("Please give me.", 1);
GC.AddSend(Packets.NPCLink("No thanks, I don't need it.", 255);
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());


And then, after that, how can I make the begginer pack, and make choose what items I want to be inside it?
BlackCitadel is offline  
Old 04/10/2011, 22:21   #2
 
leow505's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 53
Received Thanks: 4
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("I can gift you with some gear of specified profesion"));
GC.AddSend(Packets.NPCLink("FireTao L70 pack", 2));
GC.AddSend(Packets.NPCLink("WaterTao L70 pack", 3));
GC.AddSend(Packets.NPCLink("Warrior L70 pack", 4));
GC.AddSend(Packets.NPCLink("Trojan L70 pack", 5));
GC.AddSend(Packets.NPCLink("Archer L70 pack", 6));
GC.AddSend(Packets.NPCLink("Ninja L70 pack", 7));
GC.AddSend(Packets.NPCLink("Weps pack L70", 8));
GC.AddSend(Packets.NPCLink("No, thanks.", 255));
GC.AddSend(Packets.NPCSetFace(15));
GC.AddSend(Packets.NPCFinish());
}

else if (GC.MyChar.Level <= 69)
{
GC.AddSend(Packets.NPCSay("Welcome to the Conquer-Sx, we sell special items here that you cant find anywere else!! 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)
{


GC.MyChar.AddItem(134069, 12); //Robe
GC.MyChar.AddItem(117069, 12); //Earring
GC.MyChar.AddItem(152129, 12); //brac
GC.MyChar.AddItem(121129, 12); //Bag
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
if (Control == 3)
{
GC.MyChar.AddItem(134069, 12); //Robe
GC.MyChar.AddItem(117069, 12); //Earring
GC.MyChar.AddItem(152129, 12); //brac
GC.MyChar.AddItem(121129, 12); //Bag
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}

if (Control == 4)
{
GC.MyChar.AddItem(131069, 12); //Robe
GC.MyChar.AddItem(117069, 12); //Earring
GC.MyChar.AddItem(120129, 12); //Neck
GC.MyChar.AddItem(150139, 12); //Ring
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 5)
{
GC.MyChar.AddItem(130069, 12); //Robe
GC.MyChar.AddItem(117069, 12); //Earring
GC.MyChar.AddItem(120129, 12); //Neck
GC.MyChar.AddItem(150139, 12); //Ring
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 6)
{
GC.MyChar.AddItem(133049, 12); //Robe
GC.MyChar.AddItem(117069, 12); //Earring
GC.MyChar.AddItem(120129, 12); //Neck
GC.MyChar.AddItem(150139, 12); //Ring
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 7)
{
GC.MyChar.AddItem(135069, 12); //Robe
GC.MyChar.AddItem(112069, 12); //Earring
GC.MyChar.AddItem(120129, 12); //Neck
GC.MyChar.AddItem(150139, 12); //Ring
GC.MyChar.AddItem(160139, 12); //boots
GC.MyChar.AddItem(202009, 12); //Star
GC.MyChar.AddItem(201009, 12); //Fan
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
else if (Control == 8)
{
GC.MyChar.AddItem(421139, 12); //BS
GC.MyChar.AddItem(420139, 12); //S
GC.MyChar.AddItem(410139, 12); //B
GC.MyChar.AddItem(480139, 12); //C
GC.MyChar.AddItem(561139, 12); //W
GC.MyChar.AddItem(560139, 12); //SP
GC.MyChar.AddItem(601139, 12); //k
GC.MyChar.AddItem(500129, 12); //Bo
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}

break;
}
#endregion
leow505 is offline  
Old 04/10/2011, 22:29   #3
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
You guys,next time,use CODE when you are sending codes.
F i n c h i is offline  
Old 04/10/2011, 23:08   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 65
Received Thanks: 1
No, I want the begginer pack to contain what I want.
For example in level 5 it contains 50 CPs , 2 ExpBalls
In Level 10 it contains 60 CPs and 3 ExpPotions.
In Level 15 when I Right-Click it I get 100 CPs and Elite Armor....

How can I do that?
BlackCitadel is offline  
Old 04/10/2011, 23:22   #5
 
elite*gold: 0
Join Date: Sep 2006
Posts: 42
Received Thanks: 14
first you need to code the packs in character.cs , then u need to create a npc that gives u the packs

first in character.cs add like this:

then u can maybe code the pack to be untradeable:

and then in dropanitem.cs u can code to cant drop like this:
and then u can code a npc that gives u the pack

Sorry for my english :S
sagitarius2118 is offline  
Reply


Similar Threads Similar Threads
Sx-Team Source (Here) 5165 the best source in the world
06/01/2011 - CO2 PServer Guides & Releases - 56 Replies
that is my source and all file u will need it to make best server 5165 - it have all my released codes and all my updated work and all released work to another people edited good codes - so that source dont have error and have all u want in source Client Files 5165 client : Conquer-SX patch to run RaceSteeds : Conquer-Sx Conquer.exe & Server.dat Working in 5165 CLient : Conquer-Sx Source Files
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



All times are GMT +1. The time now is 04:19.


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.