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?
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.
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.
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
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?
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
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...