|
You last visited: Today at 20:36
Advertisement
[HELP] NPC give items +12
Discussion on [HELP] NPC give items +12 within the CO2 Private Server forum part of the Conquer Online 2 category.
10/09/2010, 03:56
|
#1
|
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
|
[HELP] NPC give items +12
i got this code but its a complete error if anyone could tell me what the proper coding for this code is i can make my npc
GC.MyChar.AddItem("134109-12-12-7-255-3-3");//PineRobe
btw thats Arco's code
EDIT: #Request Close
I will make items given LVL 130 myself
FOUND NPC THANKS ALL LINK FOR ANYONE ELSE WANT NPC:
|
|
|
10/09/2010, 04:01
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
The hell?
That's not my code.
GC.MyChar.AddItem(410339, 12, 7, 255, 13,13);
Seems like it would be my code.
|
|
|
10/09/2010, 04:39
|
#3
|
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
|
Quote:
Originally Posted by Аrco
The hell?
That's not my code.
GC.MyChar.AddItem(410339, 12, 7, 255, 13,13);
Seems like it would be my code.
|
sorry i cant take credit for this code but you posted it heres link

if its not yours my bad i was looking around and i found your post 
edit: thanks arco i can make my npc now   
EDIT2: alright i did the best i could without knowledge of this i based it off Arcos codein the quote
here is the best i could do but there is still errors
Code:
#region +12 items
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want Full + 12 Gears?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Pick your class."));
GC.AddSend(Packets.NPCLink("Trojan", 2));
GC.AddSend(Packets.NPCLink("Warrior", 3));
GC.AddSend(Packets.NPCLink("Archer", 4));
GC.AddSend(Packets.NPCLink("Taoist", 5));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if (GC.MyChar.Inventory.Count < 29)
{
GC.MyChar.AddItem(130109, 12, 12, 7, 255, 13, 13);//Conquest Armor
GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
GC.MyChar.AddItem(118109, 12, 12, 7, 255, 13, 13);//MagicCoronet
GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
GC.MyChar.AddItem(420339, 12, 12, 7, 255, 13, 13);//KingOfSword
GC.MyChar.AddItem(480339, 12, 12, 7, 255, 13, 13);//KingsClub
GC.MyChar.AddItem(410339, 12, 12, 7, 255, 13, 13);//BuriedBlade
}
else
{
GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
GC.AddSend(Packets.NPCLink("Okay", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 3)
{
if (GC.MyChar.Inventory.Count < 28)
{
GC.MyChar.AddItem(131109, 12, 12, 7, 255, 13, 13);//PhoenixArmor
GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
GC.MyChar.AddItem(111109, 12, 12, 7, 255, 13, 13);//ConquestHelmet
GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
GC.MyChar.AddItem(420339, 12, 12, 7, 255, 13, 13);//KingOfSword
GC.MyChar.AddItem(480339, 12, 12, 7, 255, 13, 13);//KingsClub
GC.MyChar.AddItem(410339, 12, 12, 7, 255, 13, 13);//BuriedBlade
GC.MyChar.AddItem(900109, 12, 12, 7, 255, 13, 13);//DragonShield
}
else
{
GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
GC.AddSend(Packets.NPCLink("Okay", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
if (GC.MyChar.Inventory.Count < 30)
{
GC.MyChar.AddItem(133109, 12, 12, 7, 255, 13, 13);//PhoenixJerkin
GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
GC.MyChar.AddItem(113109, 12, 12, 7, 255, 13, 13);//PhoenixHat
GC.MyChar.AddItem(150249, 12, 12, 7, 255, 13, 13);//Tornado
GC.MyChar.AddItem(120249, 12, 12, 7, 255, 13, 13);//Thunder
GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
GC.MyChar.AddItem(500329, 12, 12, 7, 255, 13, 13);//ShadowBow
GC.MyChar.AddItem(1050002, 0, 0, 0, 0, 0, 0);//SpeedArrow
}
else
{
GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
GC.AddSend(Packets.NPCLink("Okay", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 5)
{
if (GC.MyChar.Inventory.Count < 31)
{
GC.MyChar.AddItem(134109, 12, 12, 7, 255, 3, 3);//PineRobe
GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);//120 Earring
GC.MyChar.AddItem(114109, 12, 12, 7, 255, 3, 3);//CraneCap
GC.MyChar.AddItem(152259, 12, 12, 7, 255, 3, 3);//Lightening
GC.MyChar.AddItem(121249, 12, 12, 7, 255, 3, 3);//SunShine
GC.MyChar.AddItem(201009, 12, 12, 7, 255, 103, 103);//HeavenFan
GC.MyChar.AddItem(160243, 12, 12, 7, 255, 13, 13);//Blizzard
GC.MyChar.AddItem(202009, 12, 12, 7, 255, 123, 123);//StarTower
GC.MyChar.AddItem(421339, 12, 12, 7, 255, 3, 3);//KingOfBacksword
}
else
{
GC.AddSend(Packets.NPCSay("Go clear your inventory, you don't have any room."));
GC.AddSend(Packets.NPCLink("Okay", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
break;
}
#endregion
|
|
|
10/09/2010, 17:17
|
#4
|
elite*gold: 0
Join Date: Jun 2010
Posts: 50
Received Thanks: 10
|
the id for Blizzard should be 16024 9 for super
your missing the case at start.
Code:
#region +12 items
case NpcID:
{
if (Control == 0)
{
one to many }
Code:
}
break;
}
#endregion
and GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);// not needed
Code:
( ID, Plus, bless, ench, soc1, soc2)
|
|
|
10/09/2010, 23:50
|
#5
|
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
|
lol i have seen like 10(less/more) threads from u about help/how..... i have never asked for anything about 5165 i was just trying to figure things by myself and i was a noob with c# like u but i learned some things so the advice from me to u is spend more time with it and i am sure u will l;earn more coz the npc's in tanel's source r the easiest things to do
ah before posting anything i was reading some posts about 5165 and with some of em i fixed my isssues... idk what will u think about it i wrote taht coz i seen lot of threads from u about some simple things i guess
|
|
|
10/10/2010, 00:19
|
#6
|
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
|
Quote:
Originally Posted by Macnoo
the id for Blizzard should be 16024 9 for super
your missing the case at start.
Code:
#region +12 items
case NpcID:
{
if (Control == 0)
{
one to many }
Code:
}
break;
}
#endregion
and GC.MyChar.AddItem(117109, 12, 12, 7, 255, 13, 13);// not needed
Code:
( ID, Plus, bless, ench, soc1, soc2)
|
thanks but i already knew about the case i didnt add it the extra 12 i thought was for Super i guess i was wrong
Quote:
Originally Posted by Adziunia
lol i have seen like 10(less/more) threads from u about help/how..... i have never asked for anything about 5165 i was just trying to figure things by myself and i was a noob with c# like u but i learned some things so the advice from me to u is spend more time with it and i am sure u will l;earn more coz the npc's in tanel's source r the easiest things to do
ah before posting anything i was reading some posts about 5165 and with some of em i fixed my isssues... idk what will u think about it i wrote taht coz i seen lot of threads from u about some simple things i guess
|
yeah i know ive been posting alot its that whenever i attempt to make it its always wrong like this npc i tried coding it myself it turned out shitty whenever i try to fix something it screws it up even more i know i post too much even about the simplest things il go post on another website or something i guess like the composer in my server says im too far away to compose and i tried fixing my server so that you can deleted characters which caused the database hashtable problem and then when i tried fixing the guy who makes 1 and 2soc in armor he says you dont have the materials but i have them in my inventory i gues i sort of fixed him because randomly he'll accept that you have the items in you inventory but he's still not working 100%, then when i tried adding a npc who sold +12 horses i fucked up my server so i post just to make sure i did the code right because im too stupid to know anything about this
|
|
|
10/10/2010, 03:18
|
#7
|
elite*gold: 0
Join Date: Jun 2010
Posts: 50
Received Thanks: 10
|
@biohazardous
the extra 12 i thought was for Super i guess i was wrong
thats just for when you use in command , the item Quality when using the items ID is done by the last number. 9 being super
@Adziunia
i do it the same way as you have. i have learnt much just from read threads and all the replys in them, even if i dont need what the thread is about to me if it helps me learn then its all good in my book.
|
|
|
 |
Similar Threads
|
[Tutorial]How to give items/stats by default
03/15/2011 - Dekaron Private Server - 10 Replies
Have you ever wanted to give an item(s) to every character as soon as it is created?
Well, I am here to show you how!
First we will open up the MSSQL's Enterprise Manager, and we will take a lot at the user_character table in the character database.
Have you ever noticed the characters in there? Well, that is what we are looking for. They all have an user_no of 19999999999991, so you can find them by searching for that user_no in user_character table.
Ok, first lets take a look at...
|
Kenwod give me back my items!
08/22/2010 - 9Dragons Trading - 28 Replies
Give me the items you stole for me/you dont are a trustable guy after i give you the items you change the pasword and now i dont have anytin because a scammer who all now who is! scamed me!
Clean your name give me the 600 def set !
|
Tons of items to give
04/10/2010 - 9Dragons - 26 Replies
Ok i gave gathered quite of bit items which i can dupe and give away more coming on server 5
Refined Weapons:
LM hermit Bracers +10,11,12
LM hermit Spear +12
LM hermit Axe +12
EC WD +12 Sword
EC WD +12 Bracer
RL WD sword +11
EC WD staff +12
|
[Release] Give Items NPC!!
06/29/2009 - CO2 PServer Guides & Releases - 18 Replies
Search for
CurrentNPC = NPCID;
Add Below
if (CurrentNPC == 790)//Give items NPC
{
|
All times are GMT +1. The time now is 20:37.
|
|