Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.04.2006, 20:46   #1
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default [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:
castle_begin
[gludio_castle]
1
//residence_owner_id = -1
residence_territory = {{{-20370;106804;-6827;1172};{-15723;106720;-6827;1172};{-15708;113862;-6827;1172};{-20394;113770;-6827;1172}}}
battlefield_territory = {{{-23842;105415;-5601;2398};{-14902;105487;-5601;2398};{-14319;116830;-5601;2398};{-24008;116786;-5601;2398}}}
headquarter_territory = {{{-22198;114423;-4536;-2536};{-16245;114339;-4536;-2536};{-16150;117396;-4536;-2536};{-22190;117369;-4536;-2536}};{{-20732;108644;-4556;-2556};{-23293;108628;-4556;-2556};{-23311;111659;-4556;-2556};{-20724;111786;-4556;-2556}};{{-13739;110269;-4074;-2074};{-15546;110232;-4074;-2074};{-15565;113263;-4074;-2074};{-13811;113303;-4074;-2074}}}
domain_territory = {}
manor_territory = {}
owner_restart_point = {-16350;109380;-1784}
So we can set and get items and its price for manor system.
But buyed crop items must appear in castle vault, how make it...
Somebody have ideas?
nucer is offline  
Old 18.04.2006, 23:08   #2
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

Hmm good info. o.o
Eanae is offline  
Old 19.04.2006, 11:49   #3
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

Nobody knows how this functions are working?...
nucer is offline  
Old 19.04.2006, 14:03   #4
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

might
archy is offline  
Old 19.04.2006, 15:07   #5
Napo1eon
Архивный участник
 
Join Date: Feb 2006
Posts: 27
Default

wow.... its amazing, where are you find it? Good share...
Sorry for my bad english
Napo1eon is offline  
Old 19.04.2006, 15:09   #6
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

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... - флаг вам в руки
kvoxi is offline  
Old 19.04.2006, 15:12   #7
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

12... its not enough?
humordwarf is offline  
Old 19.04.2006, 15:21   #8
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by humordwarf
12... its not enough?
not, becoze:
~25 seed per catsle
~25 crops per catsle
Each seed and each crop have some parameters
And more and more...
12 is not enough
kvoxi is offline  
Old 19.04.2006, 15:28   #9
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

dont know... not enough information about this shit...
humordwarf is offline  
Old 19.04.2006, 15:40   #10
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

And what is manor_territory?...
nucer is offline  
Old 19.04.2006, 15:56   #11
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

fields...
humordwarf is offline  
Old 20.04.2006, 06:14   #12
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

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)
humordwarf is offline  
Old 21.04.2006, 10:45   #13
Darkraven
Архивный участник
 
Join Date: Apr 2006
Posts: 76
Default

Quote:
Originally Posted by Napo1eon
wow.... its amazing, where are you find it? Good share...
Sorry for my bad english
func_call 145 // func[Castle_GetCropRate]
func_call 146 // func[Castle_GetCropPrice]
func_call 152 // func[Castle_PostCropPurchase]

It's from Digital's post about ai.obj breakdown =)
Darkraven is offline  
Old 21.04.2006, 13:54   #14
Napo1eon
Архивный участник
 
Join Date: Feb 2006
Posts: 27
Default

Quote:
Originally Posted by Darkraven
Quote:
Originally Posted by Napo1eon
wow.... its amazing, where are you find it? Good share...
Sorry for my bad english
func_call 145 // func[Castle_GetCropRate]
func_call 146 // func[Castle_GetCropPrice]
func_call 152 // func[Castle_PostCropPurchase]

It's from Digital's post about ai.obj breakdown =)
i found it.... tnh...
Question:
Atacked handler is work with "if(myself.sm.hp <= 0)"?)))
Napo1eon is offline  
Old 21.04.2006, 18:08   #15
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Yes, work perfectly, as with alive mob.
lich is offline  
Old 22.04.2006, 06:48   #16
Napo1eon
Архивный участник
 
Join Date: Feb 2006
Posts: 27
Default

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???
Napo1eon is offline  
Old 23.04.2006, 13:32   #17
Darkraven
Архивный участник
 
Join Date: Apr 2006
Posts: 76
Default

Up. Please answer to Napoleon's question. It's very important.
Darkraven is offline  
Old 23.04.2006, 14:37   #18
Xelat
Архивный участник
 
Join Date: Apr 2006
Posts: 70
Default

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
Xelat is offline  
Old 23.04.2006, 17:08   #19
Darkraven
Архивный участник
 
Join Date: Apr 2006
Posts: 76
Default

Everybody know this 8)
Darkraven is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:08.