Register for your free account! | Forgot your password?

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

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

 

[Question]Equip adding codes for npc(5165)

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   #2
 
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   #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   #4
 
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   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 20
Received Thanks: 2
still same error again..
rocka7x is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
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   #7
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 319
Can you show your whole Code?
-Shunsui- is offline  
Old   #8
 
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   #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   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
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   #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



« Previous Thread | Next Thread »

Similar Threads
Adding lvl to lvl 200 in 5165
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?...
10 Replies - CO2 PServer - Discussions / Questions
[Help]Adding weapons & armors *5165*
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...
0 Replies - CO2 PServer - Discussions / Questions
[Help]Adding items..5165
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...
1 Replies - CO2 PServer - Discussions / Questions
[Need Help]Adding new weps to 5165
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.
10 Replies - CO2 PServer - Discussions / Questions
[Help]Adding New NPC in 5165 source
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]
13 Replies - CO2 PServer - Discussions / Questions



All times are GMT +2. The time now is 19:09.


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

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