Register for your free account! | Forgot your password?

You last visited: Today at 00:15

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


WareHouse ID of your House

Reply
 
Old   #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....



marlyandedsel is offline  
Old 06/20/2012, 05:37   #2
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 254
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.


.Kinshi is offline  
Old 06/20/2012, 05:45   #3
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,139
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.
Zeroxelli is offline  
Old 06/20/2012, 06:26   #4
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
thanks


marlyandedsel is offline  
Old 06/20/2012, 06:29   #5
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,139
No problem. Good luck getting houses working, since that's one of the more ignored features imo.
Zeroxelli is offline  
Old 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
marlyandedsel is offline  
Old 06/20/2012, 15:03   #7
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,139
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.
Zeroxelli is offline  
Old 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 ....
marlyandedsel is offline  
Old 06/20/2012, 21:35   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,310
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)
pro4never is offline  
Old 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


marlyandedsel is offline  
Reply



« Important | Guild Name »

Similar Threads
Warehouse.
01/11/2010 - CO2 Main - Discussions / Questions - 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 PServer - Discussions / Questions - 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...
Help with warehouse
04/17/2008 - CO2 Main - Discussions / Questions - 3 Replies
Need a program to unlock the warehouse please.
Warehouse Pw
09/01/2006 - CO2 Main - Discussions / Questions - 1 Replies
is there anyway to hack a warehouse password. is there any program



All times are GMT +2. The time now is 00:15.


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

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