|
You last visited: Today at 16:13
Advertisement
WareHouse ID of your House
Discussion on WareHouse ID of your House within the CO2 Private Server forum part of the Conquer Online 2 category.
06/20/2012, 02:35
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
WareHouse ID of your House
I have manage to add House systems
Now I am going to add WareHouse in the House system, can anyone have idea on how to add it just a clue to lead me on how to code this one....
|
|
|
06/20/2012, 05:37
|
#2
|
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
|
I have a table in my database for the warehouse. It'll be set to the NPC's ID. So if I put it in the market warehouse, and that NPCs id is say, 44, then the warehouse will be 44.
So when you place the itembox in the house it'll have a ID, just use that ID.
It's extremely simple.
|
|
|
06/20/2012, 05:45
|
#3
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Totally missed this topic. But yes, as Kinshi said, the ID is exactly the same as the NPC ID. Just remember to send the GeneralData packet just like you do with all other warehouses. It's best to use an additional handler to work with your NPCs, to make it dynamic like you had to do with the maps to get houses working. Adding the IDs manually is useless.
|
|
|
06/20/2012, 06:26
|
#4
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
thanks
|
|
|
06/20/2012, 06:29
|
#5
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
No problem. Good luck getting houses working, since that's one of the more ignored features imo.
|
|
|
06/20/2012, 14:52
|
#6
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
it's kinda hard making Dynamic Npcs
|
|
|
06/20/2012, 15:03
|
#7
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Not really. The NPCs don't have to exist in the database at all, but are simply spawned based on the unique map ID of the map.
|
|
|
06/20/2012, 16:47
|
#8
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
yes I know but I have created some function in form of static and the map npc is not Need to convert them to static in order to work, I might ruin the project anyway I will just have to try ....
|
|
|
06/20/2012, 21:35
|
#9
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
There's no difference between static and dynamic npcs... They should be using the same NPC ID regardless of their dynamic map ID and therefor will result in the same warehouse ID.
Now the trick is to make sure you display the items from the correct owner, THAT is where the dynamic map ID comes into play (allowing spouses to use your house and item box)
|
|
|
06/21/2012, 03:48
|
#10
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
thanks pro,,,, i have now the Idea I use same ID for the WareHouse for all Owner of it ...
and I want to talk to you in Private if its okay for you coz I just dont want to post code here... just have little error which make me crazy .....
#edit : Warehouse house system is now fix... i have manage to do it by my self....anyway Thanks for giving some clue..... pro4never
, .Kinshi and Zeroxelli
here is the result
|
|
|
 |
Similar Threads
|
Warehouse.
01/11/2010 - Conquer Online 2 - 3 Replies
I was wondering if they still have a warehouse crack so we could open the warehouse without the password. I forgot my warehouse password and obviously i dont have a valid email for the wh..So can someone help me out here?
|
[help] House problem *make a seperate house for each character*
06/06/2009 - CO2 Private Server - 2 Replies
Ok so I made a house code like you would see in another post but they way I made it seems like everyone would be teleported to the same house. Here's an example of it.
Simple house...
if (MyChar.InventoryContains(721170, 1))
{
MyChar.Teleport(1098, 32, 40);
}
The way it's put you can see it looks like everyone would be teleported to the same place. I haven't tried to see...
|
Help with warehouse
04/17/2008 - Conquer Online 2 - 3 Replies
Need a program to unlock the warehouse please.
|
Warehouse Pw
09/01/2006 - Conquer Online 2 - 1 Replies
is there anyway to hack a warehouse password. is there any program
|
All times are GMT +1. The time now is 16:14.
|
|