parameter_define_begin
(content)
parameter_define_end
Each class can use custom constant's. You can define types - string, int, float, waypointstype, waypointdelaystype. Example,
Quote:
int residence_id 2
float MoveToTarget_BoostValue 5.00000
string fnHi "silvia001.htm"
|
This contants can use in all class tree - from this class to last parent class.
Same constants define and in npcdata.txt
Code:
npc_ai={[silvia];{[fnHi]=[silvia001.htm]};...
1) If parameter define in npcdata.txt then this constant will be have value as in npcdata.txt (value inherint npcdata definition).
2) If npcdata have not this definition, AI class will be use value from parameter_define area.
3) If npcdata have param, but AI class (full tree structure for this class) have not this param in parameter_define area, then npcserver show error in console:
Code:
06/18/2007 14:07:xx.xx2, Npc[silvia] doesn't have parameter[fnHi]. failed to set
3.1) parameter must be have same name like in AI.obj (lowcase, highcase). Example: If you have 'fnhi' in npcdata.txt, but have 'fnHi' in AI.obj, then npcserver show same error
Code:
06/18/2007 14:07:xx.xx2, Npc[silvia] doesn't have parameter[fnhi]. failed to set
property_define_begin
(content)
where
property_define_begin - start word for properties
property_define_end - end word for properties
This area can have two definitions - teleport list (
telposlist) for gatekeeper and merchant buy/sell (
buyselllist) for shops
Example:
Code:
telposlist_begin RaidBossList20_29
{"Madness Beast (lv20)"; -54096; 84288; -3512; 0; 0 }
telposlist_end
buyselllist_begin SellList5
{3960; 20; 0.000000; 0 }
buyselllist_end
where
telposlist_begin - start word for teleport list definitions
RaidBossList20_29 - name of teleport list
telposlist_end - end word for teleport list definitions
each property can have more then one teleport list, but teleportname must be unique in this property. Example,
Code:
telposlist_begin RaidBossList20_29
{"Madness Beast (lv20)"; -54096; 84288; -3512; 3000; 5 }
telposlist_end
telposlist_begin RaidBossList20_30
{"Madness Beast ANother (lv21)"; -54111; 22222; -3333; 0; 0 }
telposlist_end
Where in
{"Madness Beast (lv20)"; -54096; 84288; -3512; 0; 0 }
"Madness Beast (lv20)" - name of place. What you see in GK dialoge.
-54096; 84288; -3512; - X, Y, Z coordinates where you will be after selected this place
3000 - price for teleport. Can be only positive (or 0, for free teleport).
5 - parent castle name for this teleport location. If goes on the siege of castle with number 5 (Aden), then you will not be able to teleport, until siege goes on.
Note. If your teleport coordinates wrong, l2server show red error
Code:
container NULL pos[X, Y, Z]..."
Solution: find this bad X,Y and fix to correct.
Code:
buyselllist_begin SellList5
{3960; 20; 0.000000; 0 }
buyselllist_end
Shop list. Where -
buyselllist_begin - start word for shop list definitions
SellList5 - name of buy/sell list
buyselllist_end - end word for shop list definitions
each property can have more then one shop list, but shoplist name must be unique in this property. Example,
Code:
buyselllist_begin SellList5
{3960; 20; 0.000000; 0 }
{3960; 20; 0.000000; 0 }
buyselllist_end
buyselllist_begin SellList6
{3960; 20; 0.000000; 0 }
buyselllist_end
where in '{3960; 20; 0.000000; 0 }'
3960 - item id. name=[Mercenary Posting Ticket (Sword/Stationary)]
20 -
Castle Town Tax Rate (in %). Example, full price for item in shop = default_price (in itemdata) + default_price * Castle Tax Rate% + default_price *
Castle Town Tax Rate%.
0.000000 - unknown
0 - unknown