![]() |
|
|
|
|
#1 | |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
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?
|
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Hmm good info. o.o
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
Nobody knows how this functions are working?...
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
might
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Feb 2006
Posts: 27
|
wow.... its amazing, where are you find it? Good share...
Sorry for my bad english |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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... - флаг вам в руки
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
12... its not enough?
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
dont know... not enough information about this shit...
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
And what is manor_territory?...
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
fields...
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
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) |
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Apr 2006
Posts: 76
|
Quote:
func_call 146 // func[Castle_GetCropPrice] func_call 152 // func[Castle_PostCropPurchase] It's from Digital's post about ai.obj breakdown =) |
|
|
|
|
|
#14 | ||
|
Архивный участник
Join Date: Feb 2006
Posts: 27
|
Quote:
Question: Atacked handler is work with "if(myself.sm.hp <= 0)"?))) |
||
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jul 2005
Posts: 96
|
Yes, work perfectly, as with alive mob.
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Feb 2006
Posts: 27
|
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??? |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Apr 2006
Posts: 76
|
Up. Please answer to Napoleon's question. It's very important.
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Apr 2006
Posts: 70
|
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 |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Apr 2006
Posts: 76
|
Everybody know this 8)
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|