View Single Post
Old 26.05.2006, 20:09   #1
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default Breakdown of Castledata

Didn't see it around anywhere..
I don't have a detailed picture of it as well. But ill post what i know..
Please help spread the knowledge and let's complete this..

Legend:
Red text is unsure or as said / unsure comment
bolded = sure

castle_begin <-- begin
[gludio_castle] <-- castle name
1 <---castleID which can be found in castlename-e.dat
//residence_owner_id = -1 <-- owner id
residence_territory=<-- castle residense territory{{{x;y;z;z2};{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}}} <-- There are two Z's: Zmin and Zmax (the high sky doesn't "belong" to the castle, it's like areadata's coords, so it won't cover to the whole space from the polygon defined).
battlefield_territory<-- battlefield territorry={{{x;y;z;z2};{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}}}<---Battlefield defines the siege zone...basically the area thats like combat zone
headquarter_territory<-- headquarter of attacking clans territorry=
{{{x;y;z;z2};{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}};{{x ;y;z;z2};
{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}};
{{x;y;z;z2};{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}}}<--headquarter_territory is the area in which flags can be put down.
domain_territory = {}<-- dunno
manor_territory = {}<-- The productive area of the manorsystem?
owner_restart_point = {x;y;z}<-- where owner restarts; owner = owning clan.. is mass teleportation room
other_restart_village_list <-- other villeges to be restarted in; has to be non sieged town = {x;y;z}<-- as many as u wish
chao_restart_point_list <-- Siege Teleport List position for chaotic players in non sieged town = {x;y;z}<-- as many as u wish
banish_point_list<-- self explanatory = {{x;y;z};{x;y;z};{x;y;z};{x;y;z}} <-- has to be castle territory excluding water
mercenary_point_list = {} <-- <-- dunno
residence_guard_mapping =<--- List of Siege Mercenary Npc{{3960;sword;notmove;12301;15};....}<---- {{item id},{npc type};{move or notmove};{guard_id};{available sell amount for siege}}
where:
{item id} - mercenary ticket id
{npc type} - sword,bow,teleporter,cleric,wizard,pole
{guard_id} - npc id for summon for this ticket
for example:
3969;wizard;move;12310;5
this ticket 3696 will be wizard 12310 and he can move to target if needed. Only 5 wizards are available in one siege

owning_npc_list={{[chamberlain_saius];0};......}<-- These are the NPCs where the taxes are applied..as many as u want to put... syntax: {[npc_name]; % of taxes applied}
additional_npc_list = {} <--dunno
boss_npc_list = {}<-- for clanhall currently ..Maybe c5? (the raid boss under the castle that will attack siegers if not defeated before battle starts).
agit_list = {}<-- clanhall list? what syntax?
//bulletin_id = none <-- If Bulletin exists, correct id
next_siege = 2003/4/2/20/00 <-- default next time for siege, agit..doesn't require changes
siege_term = 7200 <-- Next siege time for Siege..in min
residence_state = initial <-- Status. Ititial, Idle, etc..
residence_gate_list = <-- Castle list of doors.. {[gate_name1];[gate_name2];[wall_name1];[wall_name2];[innerwall_name1];[inner_wall2];[castle_gate1];[castle_gate2];[castle_gate3];[castle_throne]}
breakable_wall_list = {[wall_name1];[wall_name2]}List of breakable walls
control_tower_list = <-- Castle control tower list{[gludio_life1_ctrltower];[gludio_life2_ctrltower];[gludio_life3_ctrltower]}
holything<-- self explanatory = {[gludio_holything];{x;y;z};16384;25.0;98.0} <-- 16384 - see direction, 25.0, 98.0 - collision
residence_grade = 3 <---Need Clan level for castle to be available for siege. Castle = 3 and above .. In official server, clan halls have "grade" (better grade means better items and upgrades, S lets leader ride wyvern).
tax_rate = 15 <--tax rate
tax_sysget_rate = 50 <--
tribute_rate = 30 <-- % of the taxes that parent castle obtains
agit_auction_min = 0<--- clanhall auction minimum bid
agit_deposit = 0<--- clanhall deposit paid from the adena in clan WH
agit_lease = 0<--- money to get the clanhall as a lease
agit_size = 0<---
agit_parent_castleid = 5<--- Castle that controls this castle (Aden)
agit_auction = 0 <--- For clanhall is 1; 1= yes, 0=no.
next_auction = 0/0/0/0 <-- for clanhall use
owner_restart_territory = self explanatory..{{x;y;z;z2};{x;y;z;z2};{x;y;z;z2};{x;y;z;z2}} <-- mass teleportation room territory
castle_end <-- castle end

castle_common_begin <-- begin
base_siege_time = 2003 / 4 / 2 / 20 / 0 <-- The default siege time when making a new server
reservable_siege_time = {{SAT;20};{SUN;16}} <-- days castle owners are allowed to pick for their siege
max_concurrent_siege = 3 <-- max ammount of castle sieges allowed to be running during one time period
castle_common_end <-- end

The above castle_common are the things applying to all castles


Share the knowledge.. i'll update 1st post with correct info as is shared.
Please do not flame.

//above post posted: 05/26/2006
//above is c1 castledata breakdown
//below is c4 castledata breakdown
//see above c1 breakdown to know better.
Code:
castle_begin //begin
[schtgart_castle] //castle_name
9 //id from castlename-e
siege //stating whether auction or siege. auction for agits.
residence_territory = {} //territory of residence.
battlefield_territory = {} //combat territory aka siege territory.
headquarter_territory = {} //where headquarter can be set up.
domain_territory = {} //always {} npcpos defines it already.
manor_territory = {} //always {} npcpos defines it already.
owner_restart_point_list = {} //owner restart_point_list..where owner pledge spawns if uses soe / escape / on death.
other_restart_village_list = {} //nearby town list where can restart at.
chao_restart_point_list = {} //chaotic mode restart list. on escape / death.
banish_point_list = {} //when banished from castle
mercenary_point_list  = {} //always {}
residence_guard_mapping = {} //redence guard aka mercs. format: {{item_id;sword/pole/bow/cleric/wizard;move/notmove;corresponding npc_id;int aka how many;{ssq type, can have 2 at max, separated by ;}}
owning_npc_list = {} //npcs belonging to castle, includes the corresponding town npcs too
additional_npc_list = {} //always {} can put some here too if u want.
boss_npc_list = {} // boss belonging to castle ;) needs ai for this to work ( rune_castle raid boss )
agit_list = {} //always {}
//bulletin_id = none 
next_siege = 2003/4/2/20/00 //default siege time
siege_term = 7200 // time in mins, default.
residence_state = initial //default
residence_gate_list = {} //gate list including walls; format: {{[door_name];0};so on}}
breakable_wall_list = {} //always {}
control_tower_list = {} //all control towers belonging to castle; damage / life; format: {[ctrl_tower_name];[so on]}
holything = {} //holything for castle. format: {{[holything_name];{x;y;z};facing north/south/waste/east;collision;collision}}
residence_grade = 2 //residence_grade all child castles grade = 2 master = 1. only 2 castles are master: rune_castle & aden_castle.
//for agits, grades depends
tax_rate = 15 //what rate tax can be set at.
tax_sysget_rate = 40 //default
tribute_rate = 25 //% of the taxes that parent castle obtains
agit_auction_min = 0 //always 0
agit_deposit = 0 //always 0
agit_lease = 0 //always 0
agit_size = 0 //always 0
agit_parent_castleid = 8 //id of master castle
agit_auction = 0 //default
next_auction = 0/0/0/0 //default
owner_restart_territory = {} //where owner restarts, mass teleportation room.
battle_royal_flag_point_list = {} //default
final_flag_point_list = {} //default
final_open_door_list = {} //default
castle_end //end
Code:
castle_common_begin //see c1
base_siege_time = 2003 / 4 / 2 / 20 / 0 //see c1
reservable_siege_time = {{SAT;20};{SUN;16}} //see c1
max_concurrent_siege = 4 //see c1
castle_common_end //see c1
tpuNIsher is offline