Register for your free account! | Forgot your password?

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

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

Advertisement



[Question]Equip adding codes for npc(5165)

Discussion on [Question]Equip adding codes for npc(5165) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
[Question]Equip adding codes for npc(5165)

Does anyone know what the code layout is to give items such as.. +0 -7 255 hp ect ect..

GC.MyChar.AddItem(421139, 12) << what would i add to that so they give the -7 255hp ect?
rocka7x is offline  
Old 12/05/2009, 18:23   #2
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
12 is +
then add blessed dmg in this case 7
then 255, which is the hp
then gems ex: 13(SDG)
secound gem: 13

So would be (421139, 12, 7, 255, 13, 13)
~*NewDuuDe*~ is offline  
Old 12/05/2009, 18:31   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
i tried that.. it gives this..

Error 1 No overload for method 'AddItem' takes '6' arguments
rocka7x is offline  
Old 12/05/2009, 18:33   #4
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
Oh, forgot about quality, add 7 before the 12, which is super.
~*NewDuuDe*~ is offline  
Old 12/05/2009, 18:42   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
still same error again..
rocka7x is offline  
Old 12/05/2009, 18:48   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by BERGHUIS1 View Post
12 is +
then add blessed dmg in this case 7
then 255, which is the hp
then gems ex: 13(SDG)
secound gem: 13

So would be (421139, 12, 7, 255, 13, 13)

No its supposed to be
(421139-12-7-255-13-13)

Quote:
Originally Posted by BERGHUIS1 View Post
Oh, forgot about quality, add 7 before the 12, which is super.
And no that last number of the itemID is the quality.
3-5=Normal
6=Refined
7=Unique
8=Elite
9=Super

@OP post your code here.
I'll try to fix it.
Arcо is offline  
Old 12/05/2009, 18:49   #7
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Can you show your whole Code?
-Shunsui- is offline  
Old 12/05/2009, 18:52   #8
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
Quote:
Originally Posted by Tiku View Post

No its supposed to be
(421139-12-7-255-13-13)
Meh, maybe I should have looked into a source :P
Haven't peeked into a public one for like 5 mounths now.
~*NewDuuDe*~ is offline  
Old 12/05/2009, 18:59   #9
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
basicly the whole code for the npc..

Quote:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("free items here."));
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("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 <= 0)
{
GC.AddSend(Packets.NPCSay("Welcome to the... 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, 0); //Robe
GC.MyChar.AddItem(117069, 0); //Earring
GC.MyChar.AddItem(152129, 0); //brac
GC.MyChar.AddItem(121129, 0); //Bag
GC.MyChar.AddItem(160139, 0); //boots
GC.MyChar.AddItem(202009, 0); //Star
GC.MyChar.AddItem(201009, 0); //Fan
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
rocka7x is offline  
Old 12/05/2009, 19:01   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by rocka7x View Post
basicly the whole code for the npc..
Code:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("free items here."));
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("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 <= 0)
{
GC.AddSend(Packets.NPCSay("Welcome to the... 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-0-0-0-0-0); //Robe
GC.MyChar.AddItem(117069-0-0-0-0-0); //Earring
GC.MyChar.AddItem(152129-0-0-0-0-0); //brac
GC.MyChar.AddItem(121129-0-0-0-0-0); //Bag
GC.MyChar.AddItem(160139-0-0-0-0-0); //boots
GC.MyChar.AddItem(202009-0-0-0-0-0); //Star
GC.MyChar.AddItem(201009-0-0-0-0-0); //Fan
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
Try it now.
you have the AddItem kinda screwed up.
Tell me if this works.

BTW:change those zeros to whatever you want according to my other post.
Arcо is offline  
Old 12/05/2009, 19:28   #11
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
kai.. no error.. other problem when i put any numbers in except 0.. it wont spawn the item...
rocka7x is offline  
Reply


Similar Threads Similar Threads
Adding lvl to lvl 200 in 5165
07/14/2010 - CO2 Private Server - 10 Replies
Can anyone guide me adding lvl in 5165 newest co server? i want to make lvl 200 hichest lvl. If this already release can anyone give me the link? and is there a release about enemy guild and ally guild in 5165 release? Thanks in advance.
[Help]Adding weapons & armors *5165*
06/22/2010 - CO2 Private Server - 0 Replies
Is it possible to add weapons and armors to 5165 sql servers? I read on this forum that it was not, but then loads of people have said it is possible to make 135 gear. Was just wondering if it was, and how it would be achieved server side, since i know client side. Thanks in advance to anyone who answers with a usefull comment, devilsmum edit: source is CoSX
[Help]Adding items..5165
05/10/2010 - CO2 Private Server - 1 Replies
im running on patch 5165 and i was wondering how do you add items to it because i kno how to add them to shopping mall and then when i click them and buy them(it will let me buy them)then when i right click for example(exemption token) is says they arent added yet
[Need Help]Adding new weps to 5165
03/09/2010 - CO2 Private Server - 10 Replies
I tried a lot of thins right now but i still haven't a good working lvl 135 blade in my source, can someone help me plz.
[Help]Adding New NPC in 5165 source
12/10/2009 - CO2 Private Server - 13 Replies
hello all epvpers i need help about adding new npc in 5165 source so any one know how to do it tell me or add my mail : [email protected]



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


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.