![]() |
|
|
#4 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
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:
Same constants define and in npcdata.txt Code:
npc_ai={[silvia];{[fnHi]=[silvia001.htm]};...
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 Code:
06/18/2007 14:07:xx.xx2, Npc[silvia] doesn't have parameter[fnhi]. failed to set (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
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
{"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]..." Code:
buyselllist_begin SellList5
{3960; 20; 0.000000; 0 }
buyselllist_end
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
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 |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|