|
You last visited: Today at 09:11
Advertisement
Learner Gots some Q's.
Discussion on Learner Gots some Q's. within the CO2 Private Server forum part of the Conquer Online 2 category.
06/24/2009, 11:55
|
#1
|
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
|
Learner Gots some Q's.
Ok well im just started to get into this coding stuff and i have coded a Npc to give me +1 items. I have no problem with that stuff now. My questions are:
1. How do i change the stuff the mobs drop?
2. How do i determine what the Npc case is?(read somewhere but it didnt make sense)
3. I followed the Wuxing over guide but it doesnt take +1 stones, what do i do? If someone could point me in the right direction or help me through that would be nice.
4. When coding a npc i saw how to take money and cps but how do i take Items? The same kind of setup?
5. How do i get the items to do something. Like get the +1Stonepack to give me 5 stones if right clicked?
Code:
case 723712://+1Stonepack
{
AddItem(730001, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(730001, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(730001, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(730001, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(730001, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
break;
}
Is that How i would do that? or is there an easier way?
6. How do i change what is being sold in the shops?
7. How do i code a Npc to take a item and give me items in return?
8. I copyed the Db tocps code editted it put it into a case and now it doesnt work. I get an error saying "Control cannot fall through from one case label ('10062:') to another". Any Help?
Any other helpful hints or tips you think i would need/want would be greatly appreciated.
duddz
|
|
|
06/24/2009, 14:44
|
#2
|
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
|
To change the shops you simply open your shop.dat in BOTH YOUR CONQUER 2.0 FOLDER AND COEMU SOURCE(Game server>bin>Debug)
and edit the item ids in the shops... you have to change the item amount of the shop when youre done if you added or took away anything and both shopp.dats must be the same.
|
|
|
06/24/2009, 15:24
|
#3
|
elite*gold: 0
Join Date: Aug 2007
Posts: 187
Received Thanks: 45
|
Most of these questions and be answered if you use the Search button.
E.G.
2) Use the search button
3) Make sure you completed guide correctly
4)  (Something along those lines)
5)
|
|
|
06/24/2009, 18:31
|
#4
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Question 2: You determine the NPC case by the following I'll put a little example
NPC ID: Any non taken number in MySQL
Npc Type: Any non taken number in MySQL (Also the Case ID)
Sub Type: What the NPC looks like (find in Conquer 2.0 Client folder/ini/npc find the NPC you want and the number then ADD a 0 after that number)
Example: WindSage [Type= 833] <--- Change that to 8330
So lets make a WindSage NPC (Ninja Master)
NPC ID = 4000 <--- Random Number (not taken)
NPC Type= 4500 <--- Random Number (not taken)
Sub Type = 8330
So it would look like that if that helps
|
|
|
06/24/2009, 19:20
|
#5
|
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
|
The way you put the +1stone pack to add +1stones did not work for me.
So i tested something and it worked.
I used the same format as the db scroll and met scrolls
Code:
case 723712: // +1stonepack
{
if (CSocket.Client.Inventory.Count <= 35)
{
for (int i = 0; i < 5; i++)
{
Struct.ItemInfo SubItem = new Struct.ItemInfo();
SubItem.Bless = SubItem.Enchant = SubItem.Position =
SubItem.Color = SubItem.Soc1 = SubItem.Soc2 = 0;
SubItem.Plus = 1;
SubItem.Dura = 1;
SubItem.ItemID = 730001;
SubItem.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(SubItem, CSocket);
while (!created)
{
SubItem.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(SubItem, CSocket);
}
CSocket.Client.Inventory.Add(SubItem.UID, SubItem);
CSocket.Send(ConquerPacket.ItemInfo(SubItem.UID, SubItem.ItemID, SubItem.Plus, SubItem.Bless, SubItem.Enchant, SubItem.Soc1, SubItem.Soc2, SubItem.Dura, SubItem.MaxDura, SubItem.Position, SubItem.Color));
}
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You used the +1StonePack ans obtained 5 +1Stones!", Struct.ChatType.Top));
}
else
{
Delete = false;
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Not enough space in inventory.", Struct.ChatType.Top));
}
break;
}
|
|
|
06/24/2009, 19:58
|
#6
|
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
|
Quote:
Originally Posted by Akarama
To change the shops you simply open your shop.dat in BOTH YOUR CONQUER 2.0 FOLDER AND COEMU SOURCE(Game server>bin>Debug)
and edit the item ids in the shops... you have to change the item amount of the shop when youre done if you added or took away anything and both shopp.dats must be the same.
|
Thank you. Didnt realize it would be that simple.
Quote:
Originally Posted by Andrew.A
Most of these questions and be answered if you use the Search button.
E.G.
2) Use the search button
3) Make sure you completed guide correctly
4)  (Something along those lines)
5) 
|
I know that. I used the Cp admin guide to figure out my code for stone packs.
Quote:
Originally Posted by n0mansland
Question 2: You determine the NPC case by the following I'll put a little example
NPC ID: Any non taken number in MySQL
Npc Type: Any non taken number in MySQL (Also the Case ID)
Sub Type: What the NPC looks like (find in Conquer 2.0 Client folder/ini/npc find the NPC you want and the number then ADD a 0 after that number)
Example: WindSage [Type= 833] <--- Change that to 8330
So lets make a WindSage NPC (Ninja Master)
NPC ID = 4000 <--- Random Number (not taken)
NPC Type= 4500 <--- Random Number (not taken)
Sub Type = 8330
So it would look like that if that helps
|
So im looking at the code, How do i code it then, like theres the case 4000 i guess but where does the 4500, and 8330 go?
Quote:
Originally Posted by Akarama
The way you put the +1stone pack to add +1stones did not work for me.
So i tested something and it worked.
I used the same format as the db scroll and met scrolls
Code:
case 723712: // +1stonepack
{
if (CSocket.Client.Inventory.Count <= 35)
{
for (int i = 0; i < 5; i++)
{
Struct.ItemInfo SubItem = new Struct.ItemInfo();
SubItem.Bless = SubItem.Enchant = SubItem.Position =
SubItem.Color = SubItem.Soc1 = SubItem.Soc2 = 0;
SubItem.Plus = 1;
SubItem.Dura = 1;
SubItem.ItemID = 730001;
SubItem.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(SubItem, CSocket);
while (!created)
{
SubItem.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(SubItem, CSocket);
}
CSocket.Client.Inventory.Add(SubItem.UID, SubItem);
CSocket.Send(ConquerPacket.ItemInfo(SubItem.UID, SubItem.ItemID, SubItem.Plus, SubItem.Bless, SubItem.Enchant, SubItem.Soc1, SubItem.Soc2, SubItem.Dura, SubItem.MaxDura, SubItem.Position, SubItem.Color));
}
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You used the +1StonePack ans obtained 5 +1Stones!", Struct.ChatType.Top));
}
else
{
Delete = false;
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Not enough space in inventory.", Struct.ChatType.Top));
}
break;
}
|
What didnt work? Like when you right clicked it? Or when trying to use them?
|
|
|
06/24/2009, 20:05
|
#7
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Ok
SubType = WHAT the npc LOOKS like
NPC Type = Case ID (Random Number thats not taken in MySQL
Sub Type = What the npc looks like
all the rest of the columns are easy to figure out
You add all that in MySql database
tqnpcs
and
npcs
sql database
|
|
|
06/24/2009, 20:09
|
#8
|
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
|
when i right clicked it.
but when i use my code it works fine
|
|
|
06/24/2009, 21:55
|
#9
|
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
|
Quote:
Originally Posted by n0mansland
Ok
SubType = WHAT the npc LOOKS like
NPC Type = Case ID (Random Number thats not taken in MySQL
Sub Type = What the npc looks like
all the rest of the columns are easy to figure out
You add all that in MySql database
tqnpcs
and
npcs
sql database
|
Oooo i See, Well i meant of Existing Npcs
Quote:
Originally Posted by Akarama
when i right clicked it.
but when i use my code it works fine
|
Thats weird It works for me. Did you put it in ItemUse.cs?
|
|
|
06/24/2009, 22:48
|
#10
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Quote:
Originally Posted by duddz
Oooo i See, Well i meant of Existing Npcs
Thats weird It works for me. Did you put it in ItemUse.cs?
|
Well its the same thing either way... For npcs already in it look at their NPC Type and thats the Case ID then start off you code
|
|
|
06/25/2009, 00:14
|
#11
|
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
|
I did put it in itemuse
|
|
|
06/25/2009, 12:14
|
#12
|
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
|
Quote:
Originally Posted by Akarama
I did put it in itemuse
|
Hmm. Weird.
|
|
|
06/25/2009, 17:14
|
#13
|
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
|
whatever ill just use that code, doesnt matter. lol i taught myself how to get npcs to give you items XD
|
|
|
06/25/2009, 21:22
|
#14
|
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
|
Im just gonna go with my way. Your way was confusing. But it looks like you Kinda used the CP Admin release and based it off that? i based it off a Npc that gives you free +12 items
|
|
|
 |
Similar Threads
|
TG-Cabal Private Gots New Trans Skills!
08/29/2010 - Cabal Private Server - 1 Replies
TG :: Cabal Online :: Cabal Home Page
the server is off for 1-2 hours so he can add the skills :D.
u have to download the Patch for the new skills but after that u Go to Port Lux
instrator so id just say Type /pl2!!!
:awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome: :awesome:
|
I gots a question
08/27/2009 - Grand Chase - 12 Replies
When i scan i get 0 addresses and i have no idea why :[
im using US grand chase NAGC
|
New Learner
06/13/2009 - Say Hello - 1 Replies
Hi all, i'm newbies here, i like to learn, read and listen :)
|
newbie learner
01/14/2009 - Say Hello - 0 Replies
hi to all,
just curious about hacking and bypassing stuffs :D
|
Sample of memory search in PW for memory bot learner
02/25/2008 - Perfect World - 6 Replies
im learning how to make a memory bot as of know.. im expirience in pixel botin but the mob seacrh for it is quite slow.. ill be using au3 and the include nomadmemory.au3 from nomad in au3 forum. credits to him...
this is my sample of my memory script: it will be good for who wants to learn memory botin and has no available bot in their respective server
#include <Memory.au3>
Global $Pointer = d pointer in 4bytes in whch its store the modId when clicked just search in hex format in 4bytes...
|
All times are GMT +1. The time now is 09:14.
|
|