![]() |
[RESEARCH] NASC functions for manor system
I found some functions, that we can use for create manor system. But how?...
Castle_SetCropDrop( item_id , drop_rate , some_level ); - add any items into some drop with some rate and some level! Castle_SetCropPrice( item_id , price ); - set price for item, that was added before with Castle_SetCropDrop(). Castle_DeleteCropDrop( item_id ); - delete item from crop drop. Castle_PostCropPurchase( c0 , item_id , item_count ); - what it does... It seems to be does nothing... i0=Castle_GetCropRate( item_id ); - get rate of drop (???) for item from crop drop. i0=Castle_GetCropPrice( item_id ); - get price for item from crop drop. i0=Castle_GetCropIncome(); - always returns 0... Hope that only for me... ) And in castledata we have: Quote:
But buyed crop items must appear in castle vault, how make it... Somebody have ideas? :) |
Hmm good info. o.o
|
Nobody knows how this functions are working?...
|
might :)
|
wow.... its amazing, where are you find it? Good share...
Sorry for my bad english |
There is one limitation for all Crop functions: max items per castle is 12.
Try it and look at Castle_Crop table in lin2world DB. IMHO: Hex is not allowed - most data stored in static memory of l2server process. In addition, Crop data stored in shared memory. If u can expand static arrays... - флаг вам в руки :) |
12... its not enough?
|
Quote:
~25 seed per catsle ~25 crops per catsle Each seed and each crop have some parameters And more and more... 12 is not enough :) |
dont know... not enough information about this shit...
|
And what is manor_territory?...
|
fields...
|
int Castle_GetCropRate(int itemID)
int Castle_GetCropPrice(int itemID) int Castle_GetCropIncome() --- int Castle_GetTaxIncome() --- i think very similar void Castle_SetCropPrice(int itemID, int price) void Castle_SetCropDrop(int itemID, int delta, int price, int level) void Castle_DeleteCropDrop(int itemID) void Castle_PostCropPurchase(CSharedCreatureData* c, int itemID, int count) |
Quote:
func_call 146 // func[Castle_GetCropPrice] func_call 152 // func[Castle_PostCropPurchase] It's from Digital's post about ai.obj breakdown =) |
Quote:
Question: Atacked handler is work with "if(myself.sm.hp <= 0)"?))) |
Yes, work perfectly, as with alive mob.
|
oooo tnh Lich, and second question
where i record skill_name_id (global)? because i using it in differend handler))) myself.i_ai4 = skill_name_id;??? its work??? |
Up. Please answer to Napoleon's question. It's very important.
|
I think that manor_territory it's a territory, where you must to farming with coda's, that u buy there.
P.S. Sry my eng... :P |
Everybody know this 8)
|
| All times are GMT. The time now is 21:45. |